/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header.main-header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
}

.logo {
    height: 60px;
    width: auto;
}

.convenio-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: #004080;
    text-align: right;
}

/* Hero */
.hero {
    background-color: #0066cc;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Contenedor principal */
.container {
    max-width: 70%;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Video full width */
.video-full {
    width: 100%;
    margin: 2rem 0;
}

.video-full iframe {
    width: 100%;
    height: 500px; /* más grande y vistoso */
    border: none;
}

/* Modulo contenido */
.modulo-content h2 {
    margin-top: 1.5rem;
    color: #004080;
    font-size: 2rem;
}

.modulo-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.modulo-content ul li {
    margin-bottom: 0.8rem;
}

.modulo-content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.modulo-content a:hover {
    text-decoration: underline;
}

.formulario-cuadro {
    border: 2px solid #004080;
    padding: 1rem;
    border-radius: 8px;
    background-color: #e6f0ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
    max-width: 800px;  /* Hace que el formulario sea más estrecho */
    margin-left: auto; /* Centra el formulario */
    margin-right: auto; /* Centra el formulario */
}
.formulario-cuadro p {
    font-weight: 500;
    margin: 0;
    flex: 1;
}

.formulario-cuadro .btn-form {
    flex-shrink: 0;
}

/* Botones módulo (Regresar y Siguiente) */
.modulo-botones {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-form,
.btn-siguiente,
.btn-regresar {
    display: inline-block;
    background-color: #004080;
    color: white !important;
    font-weight: 700;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
    
}

.btn-eva{
    display: inline-block;
    background-color: #723700;
    color: white !important;
    font-weight: 700;
    padding: 0.7rem 5.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
}
.btn-eva:hover{
    background-color: rgb(170, 73, 3);
}
.btn-form:hover,
.btn-siguiente:hover {
    background-color: #0059b3;
}

.btn-regresar {
    background-color: #666666;
}

.btn-regresar:hover {
    background-color: #444444;
}

/* Footer full width */
footer {
    background-color: #003366;
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1rem; /* menos padding para hacerlo más compacto */
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 0.3rem 0; /* márgenes más pequeños para que no se vea tan alto */
}

/* Agregar separación ligera entre contacto y copyright */
footer p:first-child {
    margin-bottom: 0.5rem;
}

/* Responsive */

/* Tablet */
@media (max-width: 1024px) {
    .video-full iframe {
        height: 400px;
    }

    .logo {
        height: 80px;
        width: auto;
        margin: 0 auto; /* Centra la imagen horizontalmente */

    }

    .convenio-text {
        text-align: center;
    }

    /* Centrar el logo en dispositivos móviles */
    .header-content {
        justify-content: center; /* Centra los elementos en el header */
        text-align: center; /* Asegura que el logo se centre si hay texto */
    }
}

/* Celular */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .convenio-text {
        text-align: center;
    }

    /* Centrar el logo en dispositivos móviles */
    .header-content {
        justify-content: center; /* Centra los elementos en el header */
        text-align: center; /* Asegura que el logo se centre si hay texto */
    }

    .logo {
        height: 60px;
        width: auto;
        margin: 0 auto; /* Centra la imagen horizontalmente */
    }

    .btn-form,
    .btn-siguiente,
    .btn-regresar {
        width: 100%;
        margin-top: 0.5rem;
    }

    .modulo-botones {
        flex-direction: column;
    }

    .formulario-cuadro {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-full iframe {
        height: 250px;
    }

    footer {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }
}



.materiales-cuadro {
    display: flex;
    justify-content: center; 
    gap: 1rem; 
    background-color: #cfecd6; 
    padding: 1rem;
    border-radius: 8px;
    flex-wrap: wrap; 
    margin: 1rem auto; 
    max-width: 800px; 
}

.materiales-cuadro a {
    background-color: #2c723c; 
    color: white;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.materiales-cuadro a:hover {
    background-color: #3baf54;
}

@media (max-width: 600px) {
    .materiales-cuadro {
        flex-direction: column;
        align-items: center; 
    }
    
    .materiales-cuadro a {
        width: 100%;
        text-align: center;
    }
}
