/* ===== HEADER FIJO Y ESTILO GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;  
}

/* Opcional pero muy recomendado */
body {
    min-height: 100vh;     /* por si acaso */
}



.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGO ===== */
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* ===== MENÚ PRINCIPAL ===== */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #003087; /* Azul oscuro del sitio */
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

/* Subrayado verde al hover */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #00A88E; /* Verde característico */
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #00A88E;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== BOTÓN BOLETÍN ===== */
.btn-boletin {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #003087;
    border-radius: 30px;
    color: #003087;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-boletin:hover {
    background-color: #003087;
    color: white;
    border-color: #003087;
}

/* ===== ICONOS SOCIALES ===== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.social-icons a {
    color: #003087;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #00A88E;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    .main-nav ul {
        justify-content: center;
    }
    .header-right {
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        gap: 15px;
        font-size: 13px;
    }
    .btn-boletin {
        padding: 6px 15px;
        font-size: 13px;
    }
    .social-icons a {
        font-size: 16px;
    }
}


/* ===== SECCIÓN DE REGISTRO ===== */
.registro-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/fondo-hero.jpg') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.registro-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0, 168, 142, 0.85), rgba(0, 48, 135, 0.75)); /* Verde-azul overlay */
    z-index: 1;
}

.registro-container {
    padding-top: 5%;
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER DEL FORMULARIO ===== */
.registro-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, #00A88E, #003087);
    color: white;
}

.program-logo {
    margin-bottom: 15px;
}

.program-logo img {
    height: 100px;
}

.registro-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.highlight {
    color: #00E6C3;
}

.subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-style: italic;
}

/* ===== CONTENEDOR DEL FORMULARIO ===== */
.form-container {
    padding: 0 30px 30px;
}

.form-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== BOTÓN DE VOLVER ===== */
.back-link {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
}

.btn-back {
    display: inline-block;
    color: #003087;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #003087;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #003087;
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .registro-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .registro-header {
        padding: 30px 20px 15px;
    }
    
    .registro-header h1 {
        font-size: 28px;
    }
    
    .form-container {
        padding: 0 20px 20px;
    }
    
    .form-container iframe {
        height: 700px;
    }
}

@media (max-width: 480px) {
    .registro-header h1 {
        font-size: 24px;
    }
    
    .form-container iframe {
        height: 600px;
    }
}
