/*CUERPO Y HEADER*/
:root {
    --color-primary: #174de0;
    --color-secondary: #90e0ef;
    --color-background: #aedef1;
    --color-text: #03045e;
    --color-white: #ffffff;
}
#menu-toggle {
    display: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 5px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 10;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    width: 125px; 
    height: 75px; 
    margin-left: 25px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.menu-icon {
    display: none;
    font-size: 36px; 
    cursor: pointer;
    color: #110b0b;
    margin-right: 40px; 
    
}

.menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 30px;
    position: relative; 
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
    display: block; /* Asegura que el área clickeable cubra todo el espacio */
}

.menu a:hover {
    color: #eceaf1;
    background-color: #1283ec;
}

/* Estilos para el submenú */
.menu .dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 5px;
}

.menu .dropdown:hover .submenu,
.menu .dropdown:focus-within .submenu {
    display: block;
}

.menu .dropdown .submenu li {
    margin: 0;
}

.menu .dropdown .submenu a {
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.menu .dropdown .submenu a:hover {
    background-color: #1283ec;
    color: #eceaf1;
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background-color: #ffffff;
        flex-direction: column;
        padding: 14px;
        box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .menu li {
        margin: 15px 0;
    }

    .menu a {
        display: block; /* Hace que el área clickeable sea más grande */
    }

    #menu-toggle:checked ~ .menu {
        display: flex;
        transform: translateX(0);
    }

    #menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(7, 5, 5, 0.5);
        z-index: 999;
    }

    #menu-toggle:checked ~ #menu-overlay {
        display: block;
    }

    .menu .dropdown .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
    }

    .menu .dropdown.active .submenu {
        display: block;
    }

    .menu .dropdown > a::after {
        content: '\25BC';
        margin-left: 5px;
        font-size: 0.8em;
    }

    .menu .dropdown .submenu a {
        padding-left: 30px;
    }
}
/*CUERPO Y HEADER*/
/* MODAL*/

/*MODAL*/

/*SECCION SOBRE NOSOTROS BIENVENIDO A LA FAMILIA WEB3*/

.video-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}
#sobre-nosotros {
    padding: 4rem 2rem;

}

#sobre-nosotros {
    padding: 2rem;
    background-color: #aedef1;

}
.acerca_text {
    text-align: justify; 
    margin-bottom: 1rem;
}

#sobre-nosotros .about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#sobre-nosotros .video-container {
    flex: 1 1 100%;
    max-width: 700px;
    margin-bottom: 2rem;
}

#sobre-nosotros .aboutusvideo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#sobre-nosotros .text-container {
    flex: 1 1 100%;
    max-width: 700px;
}

#sobre-nosotros .acerca {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

#sobre-nosotros .acerca_text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

@media (min-width: 768px) {
    #sobre-nosotros .about-container {
        flex-wrap: nowrap;
    }

    #sobre-nosotros .video-container {
        flex: 0 0 50%;
        margin-bottom: 0;
        margin-right: 2rem;
    }

    #sobre-nosotros .text-container {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    #sobre-nosotros .acerca {
        font-size: 2rem;
    }

    #sobre-nosotros .acerca_text {
        font-size: 0.9rem;
    }
}
/*SECCION SOBRE NOSOTROS BIENVENIDO A LA FAMILIA WEB3*/

/*CSS DE CADA SECCIÓN*/
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

h1, h2 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
}
/*CSS DE CADA SECCIÓN*/


/*SECCION DE ATERRIZAJE A LA PAGINA*/   
  
.carrusel { 
    width: 100vw;
    height: calc(100vh - 25px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0; /* Ajustado */
    padding: 0;
    margin-top: 0; 
}

.carrusel-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.titulo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
}

.titulo-overlay h1 {
    color: #1c5be4;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.2;
    margin: 0 auto 20px;
    padding: 0 20px;
    font-weight: bold;
    -webkit-text-stroke: 1px #1c5be4;
    text-stroke: 1px #1c5be4;
}

.titulo-overlay h3 {
    color: rgb(13, 11, 17);
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.6); /* Más transparencia */
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    max-width: 90%;
}

@media (max-width: 768px) {
    .carrusel {
        height: calc(100vh - 105px);
        margin-top: 0; 
    }
    
    .titulo-overlay h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin-bottom: 15px;
    }

    .titulo-overlay h3 {
        font-size: clamp(1rem, 3vw, 1.8rem);
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .carrusel {
        height: calc(100vh - 105px);
    }

    .titulo-overlay h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 10px;
    }

    .titulo-overlay h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.5rem);
        padding: 8px 15px;
    }
}

.contenido-galeria {
    margin-top: 180px;
    text-align: justify;
    background-color: #E6F3FF;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
    border: 3px solid rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 180px auto 0 auto;
}

.seccion-fondo {
    background-image: url('imgs/fondo\ inicio\ mascota.jpg'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding: 2rem;
    color: #020101; 
}

.caja {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.caja.derecha {
    align-self: flex-end;
    margin-right: 20px;
    text-align: center;
}

.caja.izquierda {
    align-self: flex-start;
    margin-left: 20px;
    text-align: center;
}

.caja h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.caja p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center;
}


@media (max-width: 768px) {
    .contenido-galeria {
        margin-top: 100px;
    }
    
    .caja {
        width: 85%;
        margin: 0 auto;
    }
    
    .caja.derecha,
    .caja.izquierda {
        align-self: center;
        margin: 0;
    }
    
    .caja h2 {
        font-size: 1.5em;
    }
}

/*SECCION DE ATERRIZAJE A LA PAGINA*/

/*SECCION DE MATERIAS*/
#materias{
    background-image: url(imgs/fondo3.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.materias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    
}

.materia {
    display: block;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2), 
        0 6px 20px rgba(0, 0, 0, 0.19); 
    border: 3px solid rgba(0, 0, 0, 0.3); 
    overflow: hidden; 
}

.materia:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.materia h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.materia p {
    margin: 0;
}
/*SECCION DE MATERIAS*/

/* SECCION DE FORMULARIO*/
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2), 
        0 6px 20px rgba(0, 0, 0, 0.19); 
    border: 3px solid rgba(0, 0, 0, 0.3); 
    overflow: hidden; 
}

form input, form select, form button {
    margin-bottom: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    background-color: var(--color-background);
    color: var(--color-text);
    font-size: 1rem;
}

form button {
    background-color: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

form button:hover {
    background-color: var(--color-secondary);
}
#inscripcion{
    background-color: #aedef1;
    background-image: url(imgs/fondo3.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*SECCIÓN DE FORMULARIO/*
/* SECCION DE BUSQUEDA DE CERTIFICADOS */

.search-container {
    display: flex;
    flex-wrap: wrap;  
    justify-content: center;
    align-items: stretch; 
    width: 100%;
    min-height: 100vh; 
    background: #ffffff;  
}

/* Estilo del lado izquierdo (imagen) */
.left-side {
    flex: 1;  
    background-image: url('imgs2/graduated.png'); 
    background-size: cover;
    background-position: center;
    min-height: 400px;  
}

/* Estilo del lado derecho (formulario de búsqueda) */
.right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #aedef1;
    padding: 40px;
}

.right-side form {
    width: 100%;
    max-width: 400px;  
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.right-side h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.right-side form button {
    width: 100%;
    padding: 15px;
    background-color: #0078d4;  
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.right-side form button:hover {
    background-color: #005ea3;  
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 1024px) {
    .search-container {
        flex-direction: column;
        align-items: center;
        min-height: auto;  
        padding: 10px;
    }

    .left-side {
        width: 100%;
        height: 300px;  
        background-size: contain; 
        background-repeat: no-repeat;
    }

    .right-side {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .left-side {
        height: 220px; 
    }

    .right-side form {
        max-width: 90%; 
        padding: 20px;
    }

    .right-side h2 {
        font-size: 1.5rem; 
    }

    .right-side form button {
        font-size: 0.9rem; 
        padding: 12px;
    }
}

/* Ajuste global para evitar scroll horizontal */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* SECCION DE BUSQUEDA DE CERTIFICADOS */

/*SECCION DE FOOTER*/
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
}
#contacto {
    background-image: url(imgs/fondo2.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Reducido de 20px */
    margin-top: 10px; /* Reducido de 20px */
    padding: 10px; /* Reducido de 20px */
}

.social-link {
    text-decoration: none;
    display: inline-block;
}

.social-logo {
    width: 58px; /* Reducido de 40px */
    height: 58px; /* Reducido de 40px */
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 4px; /* Reducido de 8px */
}




/* SECCION DE FOOTER*/