* {
    margin: 0%;
    font-family: "Segoe UI";
    box-sizing: border-box;
}

:root {
    --bg-color:#F3E6D3;
    --bg2-color:#616F5F;
    --all-color:#fff; 
}

/*NAVBAR SECTION*/

.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: var(--bg-color);
    padding: 0;
}

.logo {
    width: 110px;
}

.lista-links {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    text-decoration: none;
}

.link {
    color: brown;
    font-size: 1.2em;
    text-decoration: none;
    padding: 10px;
}

.link:hover {
    text-decoration: underline;
    background-color: #F3E6D355;
}

/*HEADER SECTION*/

.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #F3E6D388;
    padding: 30px;
    height: 50vh;
    gap: 20px;
}

.titulo-principal {
    font-size: 4em;
    font-weight: 300;
}

.subtitulo-principal {
    font-size: 1.5em;
    text-align: center;
    font-weight: 100;
}

/*MAIN SECTION*/

.main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.primer-apartado, .apartado {
    display: flex;
    align-items: stretch; 
    width: 100%; 
    padding:0;
    box-sizing: border-box;
}

.primer-apartado {
    margin-top: 10px;
}

.section-contenido {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%; 
}


.contacto {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 20px;
    border-right: 3px solid var(--bg2-color);
    gap: 15px; 
    margin: 20px 0;
}


.nombre-apellido {
    display: flex;
    gap: 15px; 
    width: 100%; 
}

/* Contenedor general de cada input */
.input-container {
    display: flex;
    flex-direction: column;
    width: 100%; /* Permite que cada input ocupe la mitad del espacio en .nombre-apellido */
}

.input-container label {
    font-weight: bold;
    margin-bottom: 5px;
}

.input, .mensaje {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 100%; 
    box-sizing: border-box;
}


.mensaje {
    resize: vertical;
}

.boton-enviar {
    background-color: var(--bg2-color);
    color: var(--all-color);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    align-self: center; 
    width: 50%;
    max-width: 200px;
    transition: background-color .3s ease;
}

.boton-enviar:hover {
    background-color: #4b584b;
}

.direccion-container {
    width: 50%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redes-sociales {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.redes-sociales h2 {
    font-size: 2em; 
    margin-bottom: 30px;
    color: var(--bg2-color);
}

.iconos-grid {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.grid-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--bg2-color);
    background-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.grid-item a:hover {
    background-color: var(--bg2-color);
    transform: scale(1.1);
}

.grid-item a .material-symbols-outlined {
    font-size: 32px;
    color: var(--bg2-color);
    transition: all 0.3s ease;
}

.grid-item a:hover .material-symbols-outlined {
    color: var(--all-color); 
}

.texto {
    padding-top: 10px;
    font-weight: 100;
    font-size: 1.1em;
}

.mapa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #ccc;
    height: 30vh;
}


.tiempo-real {
    text-align: center;
    font-size: 1.8em;
}

.contacto-footer {
    background-color: var(--bg2-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    text-align: center;
    gap: 20px;
    color: var(--all-color);
    padding: 35px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.red {
    font-size: 1.8em;
}

.descripcion-informativa {
    font-size: 1.1em;
}

.link-familia {
    color: var(--all-color);
    font-size: 1.09em;
}

.redes {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    font-size: 2.5em;
    font-weight: 700;
}

.link-red {
    color: var(--all-color);
    text-decoration: none;
}

.link-red:hover {
    text-decoration: underline;
}

.titulo-formulario {
    text-align: center;
    font-size: 1.8em;
    color: var(--bg2-color);
}

/*FOOTER SECTION*/

.footer {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.nota-link {
    color: #25D366; /* El verde oficial de WhatsApp, es más vibrante y moderno */
    text-decoration: underline; 
    font-weight: 900;
    font-size: 0.9rem;
    transition: all 0.3s ease; /* Para que el cambio de color sea suave */
    display: inline-block;
    margin-top: 10px;
}

.nota-link:hover {
    color: #128C7E; /* Un verde más oscuro cuando pasas el mouse */
    transform: scale(1.05); /* Crece un poquito, dando sensación de interactividad */
}

::-webkit-scrollbar {
    width: 8px; /* Hazla más delgada */
    height: 8px;
}

/* Pista (fondo) - Casi transparente o muy claro */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1); /* Un gris muy tenue y transparente */
    border-radius: 10px;
}

/* Pulgar - Con poca opacidad */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3); /* Un gris más oscuro pero con transparencia */
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.0); /* Borde totalmente transparente */
}

/* Pulgar al pasar el ratón (se hace un poco más visible) */
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5); /* Se vuelve más visible al hacer hover */
}

/* Esquina */
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Media Queries para la nueva sección de redes sociales */
@media (max-width: 900px) {
    .iconos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .iconos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/*MEDIA QUERIES SECTION*/
@media screen and (max-width: 768px) {
    .section-contenido {
        flex-direction: column; 
    }

    .logo {
        display: none;
    }

    .navbar {
        padding: 20px;
    }

    .header {
        height: 30vh;
    }

    .titulo {
        font-size: 1.7em;
    }

    .direccion-container {
        width: 100%;
    }

    .input {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .iconos-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-direction: column;
        width: 100%;
    }

    .contacto {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid var(--bg2-color); 
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .nombre-apellido {
        flex-direction: column;
        gap: 10px;
    }

    .boton-enviar {
        width: 100%;
        max-width: none;
    }

    .footer {
        padding: 10px;
    }
}

