/* ===== ESTILOS ESPECÍFICOS PARA SECCIONES ===== */

/* Reset específico para secciones */
.hero-seccion,
.objetivo-section-seccion,
.info-basica-section-seccion,
.galeria-section-seccion,
.cta-section-seccion {
    box-sizing: border-box;
}

/* Hero */
/* ==========================================================
   ESTILOS HERO PARA SECCIONES (MODIFICADO CON YOUTUBE)
   ========================================================== */

/* Hero */
.hero-seccion {
    position: relative;
    width: 100%;
    height: 70vh; /* Puedes ajustar esta altura (ej. 100vh) */
    overflow: hidden;
    display: flex; /* Añadido para centrar contenido */
    align-items: center; /* Añadido para centrar contenido */
    justify-content: center; /* Añadido para centrar contenido */
    
    /* Fallback por si el video no carga */
    background: linear-gradient(135deg, #65a3d4, #4a8bc5);
}

/* Contenedor del video de fondo (reemplaza .hero-video-container) */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Proporción 16:9 */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

.video-foreground iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Contenido sobre el video */
.hero-content-seccion {
    position: relative; /* Cambiado de absolute a relative */
    z-index: 2; /* Asegura que esté sobre el video */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-buttons-seccion {
    text-align: center;
}

.btn-ver-video-seccion {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 15px 35px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-ver-video-seccion:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    color: white;
}

/* Modal Video */
.video-modal-seccion .modal-dialog {
    max-width: 800px;
}

.video-modal-seccion video {
    width: 100%;
    height: auto;
    max-height: 70vh;
}

/* Sección Objetivo */
.objetivo-section-seccion {
    background: rgba(220, 53, 69, 0.8) !important;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.objetivo-content-seccion {
    position: relative;
    z-index: 2;
}

.objetivo-content-seccion .section-title-seccion {
    color: #ffffff !important;
    margin-bottom: 2rem;
}

.objetivo-text-seccion {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Títulos */
.section-title-seccion {
    color: #65a3d4 !important;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Indivisa', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
}

/* Información Básica */
.info-basica-section-seccion .section-title-seccion {
    color: #65a3d4 !important;
}

.info-card-seccion {
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    align-items: center;
    justify-content: center;
}

/* Tarjeta grande */
.card-grande-seccion {
    min-height: 200px !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.card-grande-seccion .info-card-content-seccion {
    flex: 1;
    text-align: center;
    width: 100%;
}

/* Contacto */
.contacto-contenido {
    width: 100%;
    text-align: center;
}

.contacto-contenido p {
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
}

.contacto-contenido p strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.contacto-contenido p:not(:first-child) {
    font-size: 1rem;
}

/* Colores de tarjetas */
.card-azul-seccion {
    background: linear-gradient(135deg, #2196F3, #1976D2) !important;
    color: #ffffff !important;
}

.card-blanco-seccion {
    background: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #e0e0e0 !important;
}

.card-dorado-seccion {
    background: linear-gradient(135deg, #FFD700, #FFC400) !important;
    color: #5D4037 !important;
}

.card-verde-seccion {
    background: linear-gradient(135deg, #4CAF50, #388E3C) !important;
    color: #ffffff !important;
}

.card-rojo-seccion {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    color: #ffffff !important;
}

/* Efectos hover */
.info-card-seccion:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Iconos */
.info-card-icon-seccion {
    margin-bottom: 1.5rem;
}

.info-card-icon-seccion i {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Colores de iconos */
.card-azul-seccion .info-card-icon-seccion i,
.card-verde-seccion .info-card-icon-seccion i,
.card-rojo-seccion .info-card-icon-seccion i {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.card-blanco-seccion .info-card-icon-seccion i {
    color: #2196F3 !important;
    background: rgba(33, 150, 243, 0.1) !important;
    border: 2px solid rgba(33, 150, 243, 0.2) !important;
}

.card-dorado-seccion .info-card-icon-seccion i {
    color: #5D4037 !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

/* Contenido */
.info-card-content-seccion {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.info-card-content-seccion p {
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Código de incorporación */
.incorporacion-code-seccion {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    margin: 0.5rem 0;
}

.card-azul-seccion .incorporacion-code-seccion,
.card-verde-seccion .incorporacion-code-seccion,
.card-rojo-seccion .incorporacion-code-seccion {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.card-blanco-seccion .incorporacion-code-seccion {
    color: #FF9800 !important;
    background: rgba(255, 152, 0, 0.1) !important;
    border: 1px solid rgba(255, 152, 0, 0.2) !important;
}

.card-dorado-seccion .incorporacion-code-seccion {
    color: #5D4037 !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Lista de requisitos */
.requisitos-list-seccion {
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.requisitos-list-seccion li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.requisitos-list-seccion li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.card-azul-seccion .requisitos-list-seccion li::before,
.card-verde-seccion .requisitos-list-seccion li::before,
.card-rojo-seccion .requisitos-list-seccion li::before {
    color: #ffffff !important;
}

.card-blanco-seccion .requisitos-list-seccion li::before,
.card-dorado-seccion .requisitos-list-seccion li::before {
    color: #F44336 !important;
}

/* Galería */
.galeria-section-seccion {
    background: #ffffff;
}

.galeria-section-seccion .section-title-seccion {
    color: #65a3d4 !important;
}

.galeria-img-seccion {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
    height: 400px;
    object-fit: cover;
}

.galeria-img-seccion:hover {
    transform: scale(1.02);
}

/* Modal de imagen */
#imagenAmpliadaSeccion {
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 70vh;
    transform-origin: center center;
}

/* Zoom para imágenes en modal */
.modal-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.modal-zoom-container.zoomed {
    cursor: zoom-out;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    display: flex;
    gap: 10px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Sección CTA */
.cta-section-seccion {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333333;
    text-align: center;
    padding: 4rem 0;
}

.cta-content-seccion h2 {
    color: #65a3d4 !important;
    margin-bottom: 1rem;
    font-family: 'Indivisa', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
}

.cta-content-seccion p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: 'Indivisa', sans-serif;
}

.cta-buttons-seccion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-action-seccion {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    width: 100%;
    max-width: 350px;
    min-height: 60px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Botón azul */
.btn-inscribete-seccion {
    background: linear-gradient(135deg, #2196F3, #1976D2) !important;
    color: #ffffff !important;
    border: 2px solid #1976D2 !important;
}

.btn-inscribete-seccion:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    color: #ffffff !important;
}

/* Botón rojo */
.btn-regresar-seccion {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    color: #ffffff !important;
    border: 2px solid #d32f2f !important;
}

.btn-regresar-seccion:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-seccion {
        height: 50vh;
    }
    
    .video-modal-seccion .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .info-card-seccion {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    .card-grande-seccion {
        min-height: 180px !important;
    }
    
    .btn-action-seccion {
        max-width: 300px;
        min-height: 55px;
    }
    
    .galeria-img-seccion {
        height: 300px;
    }
    
    .section-title-seccion {
        font-size: 2rem;
    }
    
    .zoom-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-seccion {
        height: 40vh;
    }
    
    .info-card-seccion {
        padding: 1.2rem;
        min-height: 260px;
    }
    
    .card-grande-seccion {
        min-height: 160px !important;
    }
    
    .btn-action-seccion {
        max-width: 280px;
        min-height: 50px;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .galeria-img-seccion {
        height: 250px;
    }
    
    .section-title-seccion {
        font-size: 1.8rem;
    }
}

/* Espaciado */
.section-spacing {
    padding: 4rem 0;
}