@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf');
}

@font-face {
    font-family: 'Poppins Bold';
    src: url('../fonts/Poppins-Bold.ttf');
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


/* Estilos del resto del menú (ya tienes esto) */

.logo {
    font-size: 30px;
    font-weight: bold;
}

.logoicsc {
    display: flex;
    align-items: center;
    /* Alinea verticalmente el logo y el texto */
    justify-content: flex-start;
    padding: 10px;
    margin-top: 2px;
}

.logoicsc .logo {
    margin-right: 10px;
    vertical-align: middle;
    /* Asegura que la imagen se alinee con el centro del texto */
    margin-top: 2px;
}

.logo-text {
    display: inline-block;
    /* Para que margin-top funcione correctamente */
    margin-top: 2px;
    /* Ajusta el valor a tu preferencia */
}


/* --- Estilos Generales --- */

body {
    background-color: #e1f7c573;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


/* --- Menú de Navegación --- */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #18836fad;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    margin-top: 2px;
    height: 85px;
    font-family: 'Poppins', sans-serif;
}


/* Oculta el menú moviéndolo fuera de la pantalla */

.hidden-header {
    transform: translateY(-100%);
}


/* --- Menú de Escritorio --- */

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 10px;
    margin-top: 5px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffcc00;
}


/* --- Botón de Menú Hamburguesa --- */

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}


/* --- Estilos para el icono del idioma --- */

.leng img {
    width: 40px;
    /* Ajusta el tamaño del icono (puedes cambiarlo según necesites) */
    height: auto;
    /* Mantiene la proporción */
    display: inline-block;
    /* Asegura que se alinee bien con el texto */
    vertical-align: middle;
    /* Lo centra verticalmente con respecto al texto */
    transition: transform 0.2s ease-in-out;
    /* Efecto suave al pasar el mouse */
    margin-top: -7px;
}

.leng img:hover {
    transform: scale(1.1);
    /* Hace un pequeño zoom */
}


/* --- Menú de Móvil (Responsivo) --- */


/* --- Sección Hero --- */

.hero {
    position: relative;
    height: 100vh;
    background: url('../img/portada.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-text {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeIn 1.5s ease-in-out;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 20px;
    font-weight: 300;
}


/* --- Animaciones --- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsividad --- */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    width: 150%;
    right: 0;
    z-index: 1;
    background-color: #18836f8f;
    padding: 10px 10px;
    min-width: 100px;
    list-style: none;
    justify-items: center;
}

.dropdown:hover .dropdown-menu {
    display: block;
    list-style: none;
}

.enlace {
    padding: 20px 50px;
}

.logo {
    margin-top: 35px;
    height: 75px;
}

.checkbtn {
    font-size: 1.5em;
    color: #fff;
    float: right;
    line-height: 110px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

.checkbtn a {
    list-style: none;
    text-decoration: none;
    color: white;
    font-size: 0.9em;
}

#check {
    display: none;
}

footer {
    height: 35%;
    /* Fija la altura a 6 cm */
    width: 100%;
    /* Ocupa el 100% del ancho */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0e4b40fa;
    /* Color de fondo */
    position: relative;
    /* Mantiene su posición */
    overflow: hidden;
    /* Evita scroll innecesario */
}


/* Contenedor de los elementos */

.parentf {
    display: flex;
    flex-direction: row;
    /* Mantiene en una sola fila */
    justify-content: space-evenly;
    /* Distribución uniforme */
    align-items: center;
    /* Asegura que los elementos se alineen en la misma línea */
    width: 100%;
    /* Ocupa todo el ancho disponible */
    height: 100%;
    /* Ocupa toda la altura del footer */
    padding: 10px;
    flex-wrap: nowrap;
    /* Evita que los elementos bajen */
}


/* Estilo de cada div */

.parentf>div {
    flex: 1;
    text-align: center;
    padding: 7px;
    border-radius: 5px;
    color: #fff;
    font-size: 12.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
}


/* Asegurar que div6 esté alineado con los demás */


/* Íconos y enlaces */

.imgf {
    width: 14px;
    height: auto;
    vertical-align: middle;
}

.div1f a,
.div2f a,
.div3f a,
.div4f a,
.div5f a,
.div6f a {
    text-decoration: none;
    margin: 0 3px;
    color: #ffcc00;
}

.div6f a i {
    width: 25px;
    color: #ffcc00;
}

.div6f p {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
}

.email-icon i {
    font-size: 14px;
    /* Tamaño ajustable del ícono */
    color: #ffcc00;
    /* Color institucional */
    transition: color 0.3s ease, transform 0.3s ease;
}

.email-icon i:hover {
    color: #ffffff;
    /* Cambio de color al pasar el cursor */
    transform: scale(1.2);
    /* Efecto de aumento */
}

.div6f p1 {
    text-align: center;
    /* Centra todo el contenido */
    padding: 7px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    justify-content: center;
    /* Centra los íconos horizontalmente */
    align-items: center;
    /* Alinea verticalmente todos los íconos */
    padding: 7px;
    /* Espacio uniforme entre íconos */
}

.social-icons a i {
    font-size: 24px;
    /* Tamaño uniforme para todos los íconos */
    color: #ffcc00;
    /* Color institucional */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a i:hover {
    color: #ffffff;
    /* Color al hacer hover */
    transform: scale(1.2);
    /* Efecto de aumento al pasar el mouse */
}


/* Responsividad: En pantallas pequeñas se apilan en columna */


/* Hover behavior for desktops */

@media screen and (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}


/* Responsive styles for mobile */

.nav-links li a {
    font-size: 16px;
    /* Ajusta 8ste valor según lo que desees */
    padding: 15px;
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #18836fea;
        position: absolute;
        margin-top: 3px;
        right: 0;
        width: 200px;
        text-align: center;
        padding: 5px;
        z-index: 2;
    }
    .nav-links.active {
        display: flex;
    }
    /* ✅ Reduce el tamaño de letra en los enlaces del menú */
    .nav-links li a {
        font-size: 13px;
        /* Ajusta según lo que necesites */
        padding: 3px 0;
        /* Reduce el espacio vertical */
    }
    .hamburger {
        display: block;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 900px) {
    .parentf {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
    .parentf>div {
        width: 90%;
        max-width: 270px;
    }
}