/* 
 * PREPARACIÓN HSK - Estilos específicos
 * Programa de certificación internacional
 */

/* ===== COLOR DEL PROGRAMA ===== */
:root {
    --hsk-color: #047857; /* Verde jade oscuro */
    --hsk-color-dark: #065F46;
    --hsk-color-light: #059669;
    --hsk-teal: #0D9488;
}

/* ===== HERO - COLOR VERDE JADE PROFESIONAL ===== */
.hero-programa {
    background: linear-gradient(135deg, rgba(77, 121, 108, 0.95) 0%, rgba(6, 95, 70, 0.92) 100%) !important;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/Programas/Hero_educativo HSK.png') !important;
    background-size: cover;
   background-position: center 100% !important;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    padding: 7rem 0 3rem;
    margin-top: 145px; /* CORREGIDO: Consistente desde desktop */
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* CRITICAL: Full width */
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.hero-programa::before {
     content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(4, 120, 87, 0.98) 0%, 
        rgba(4, 120, 87, 0.88) 50%, 
        rgba(4, 120, 87, 0.4) 100%

     );
    z-index: -3;
}

.hero-programa .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-programa-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.hero-programa-text {
    max-width: 700px;
}

/* Badge del hero */
.hero-programa-badge {
     display: inline-block;
     background: rgba(5, 150, 105, 0.35) !important;
     backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem; 
    border: 2px solid rgba(16, 185, 129, 0.6) !important;
    
}

.hero-programa-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-black);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: var(--leading-tight);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-programa-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.98);
    line-height: var(--leading-relaxed);
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-programa-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ===== BOTONES DEL HERO ===== */
.btn-programa-primary {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
    color: var(--color-dark) !important;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5) !important;
    font-weight: 700;
}

.btn-programa-primary:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6) !important;
    transform: translateY(-3px);
}

.btn-programa-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
}

.btn-programa-secondary:hover {
    background: var(--color-white) !important;
    color: var(--hsk-color) !important;
}

/* ===== TABS - COLOR VERDE JADE ===== */
.tab-link.active {
    color: var(--hsk-color) !important;
    border-bottom-color: var(--hsk-color) !important;
    background: rgba(4, 120, 87, 0.08) !important;
}

.tab-link:hover {
    color: var(--hsk-color) !important;
}

/* ===== FORMULARIO - COLOR TEAL ACADÉMICO ===== */
.contact-form-card {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
    box-shadow: 0 25px 70px rgba(13, 148, 136, 0.4) !important;
}

.contact-form-title {
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== ICONOS DE BENEFICIOS - ACADÉMICOS Y CENTRADOS ===== */
.beneficio-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.2) !important;
}

.beneficio-icon span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Vocabulario HSK - Verde jade */
.beneficio-card:nth-child(1) .beneficio-icon {
    background: linear-gradient(135deg, #047857 0%, #065F46 100%) !important;
}


/* Gramática Estructurada - Verde esmeralda */
.beneficio-card:nth-child(2) .beneficio-icon {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}


/* Comprensión Auditiva - Teal */
.beneficio-card:nth-child(3) .beneficio-icon {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
}



/* Lectura Intensiva - Verde pino */
.beneficio-card:nth-child(4) .beneficio-icon {
    background: linear-gradient(135deg, #15803D 0%, #166534 100%) !important;
}



/* Simulacros de Examen - Verde bosque */
.beneficio-card:nth-child(5) .beneficio-icon {
    background: linear-gradient(135deg, #166534 0%, #14532D 100%) !important;
}



/* Certificación Internacional - Dorado */
.beneficio-card:nth-child(6) .beneficio-icon {
    background: linear-gradient(135deg, #CA8A04 0%, #A16207 100%) !important;
}



/* Material Oficial HSK - Verde jade claro */
.beneficio-card:nth-child(7) .beneficio-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
}



/* ===== TARJETA DESTACADA - COLOR VERDE JADE ===== */
.beneficio-card.beneficio-destacado {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.08) 0%, rgba(6, 95, 70, 0.08) 100%) !important;
    border-color: var(--hsk-color) !important;
    box-shadow: 0 10px 40px rgba(4, 120, 87, 0.2) !important;
}

.beneficio-card::before {
    background: linear-gradient(90deg, var(--hsk-color), var(--hsk-color-dark)) !important;
    height: 5px !important;
}

.beneficio-card:hover {
    border-color: var(--hsk-color) !important;
    box-shadow: 0 15px 50px rgba(4, 120, 87, 0.25) !important;
}

/* ===== METODOLOGÍA - ICONOS COLOR VERDE JADE ===== */
.metodologia-icon {
    background: var(--hsk-color) !important;
}

.metodologia-card {
    border-top: 4px solid var(--hsk-color) !important;
}

.metodologia-card:hover {
    border-top-color: var(--hsk-color-dark) !important;
}

/* ===== TABLA DE NIVELES - COLOR VERDE JADE ===== */
.tabla-titulo-header {
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
}

.tabla-cursos thead {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.tabla-cursos thead tr {
    border-bottom: 3px solid #065F46;
}

.tabla-cursos tbody td:last-child {
   color: #181717 !important;
    font-weight: 500 !important;
    /* AGREGA ESTA LÍNEA: */
    font-size: 1rem !important; 
}

/* ===== SECCIÓN RESULTADOS - COLOR VERDE JADE ===== */
.programa-resultados {
    background: linear-gradient(135deg, var(--hsk-color) 0%, var(--hsk-color-dark) 100%);
}

/* ===== COSTOS Y HORARIOS - COLOR VERDE JADE ===== */
.programa-inversion {
    background: linear-gradient(180deg, #ECFDF5 0%, var(--color-white) 100%) ;
}

/* Precio destacado - color VERDE JADE */
.plan-price {
    color: var(--hsk-color) !important;
    font-weight: 900 !important;
}

.plan-card:hover {
    border-color: var(--hsk-color) !important;
    box-shadow: 0 15px 50px rgba(4, 120, 87, 0.2) !important;
}

.plan-card.destacado {
    border-color: var(--hsk-color) !important;
    background: linear-gradient(180deg, #ECFDF5 0%, var(--color-white) 100%) !important;
    box-shadow: 0 15px 50px rgba(4, 120, 87, 0.25) !important;
}

.plan-badge {
    background: linear-gradient(135deg, var(--hsk-color) 0%, var(--hsk-color-dark) 100%) !important;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
}

.plan-features li::before {
    color: var(--hsk-color) !important;
}

.btn-plan {
    background: linear-gradient(135deg, var(--hsk-color) 0%, var(--hsk-color-dark) 100%) !important;
    font-weight: 700 !important;
}

.btn-plan:hover {
    background: linear-gradient(135deg, var(--hsk-color-dark) 0%, #065F46 100%) !important;
}

/* ===== CALENDARIO - COLOR VERDE JADE ===== */
.programa-calendario {
    background: linear-gradient(135deg, var(--hsk-color) 0%, var(--hsk-color-dark) 100%) !important;
}

.cupos-destacado {
    background: linear-gradient(135deg, var(--hsk-color) 0%, var(--hsk-color-dark) 100%) !important;
    box-shadow: 0 20px 60px rgba(4, 120, 87, 0.4) !important;
}

.calendario-tabla thead {
    background: var(--hsk-color) !important;
}

.cupos-badge {
    background: var(--hsk-color) !important;
}

/* ===== HIGHLIGHT BOX - COLOR VERDE JADE ===== */
.highlight-box {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%) !important;
    border-left: 5px solid var(--hsk-color) !important;
}

.highlight-box strong {
    color: var(--hsk-color) !important;
}

/* ===== CERTIFICACIÓN - COLOR VERDE JADE ===== */
.certificacion-benefits li::before {
    color: var(--hsk-color) !important;
}

/* ===== INFO CARDS - COLOR VERDE JADE ===== */
.info-card-icon {
    background: var(--hsk-color) !important;
}

.horario-item {
    border-left: 4px solid var(--hsk-color) !important;
}

.horario-item:hover {
    background: #ECFDF5 !important;
}

.requisitos-list li::before {
    color: var(--hsk-color) !important;
}

/* ===== FAQ - COLOR VERDE JADE ===== */
.faq-item.active {
    border-color: var(--hsk-color) !important;
}

.faq-question:hover {
    color: var(--hsk-color) !important;
}

.faq-icon {
    color: var(--hsk-color) !important;
}

/* ===== WHY CARDS - COLOR VERDE JADE ===== */
.why-card-programa:hover {
    border-color: var(--hsk-color) !important;
}

.why-card-programa.featured {
    border-color: var(--hsk-color) !important;
}

.why-icon-programa {
    background: var(--hsk-color) !important;
}

/* ===== INCLUYE CARDS - COLOR VERDE JADE ===== */
.incluye-card {
    border-left: 4px solid var(--hsk-color) !important;
}

.incluye-card:hover {
    background: #ECFDF5 !important;
}

/* ===== ESTILOS ACADÉMICOS ADICIONALES ===== */
.section-title {
    letter-spacing: -0.5px;
    font-weight: 800;
}

.section-subtitle {
    font-weight: 400;
}

/* ===== RESPONSIVE - Ajustes de color en móvil ===== */
@media screen and (max-width: 767px) {
    .hero-programa::before {
        background: linear-gradient(90deg, 
            rgba(4, 120, 87, 0.98) 0%, 
            rgba(4, 120, 87, 0.95) 70%, 
            rgba(4, 120, 87, 0.7) 100%
        ) !important;
    }
    
    .beneficio-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .hero-programa {
        min-height: 450px;
    }
}

@media screen and (max-width: 480px) {
    .beneficio-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .hero-programa {
        min-height: 400px;
    }
}

/* ===== HERO HSK — NUEVO ESTILO ===== */

.hero-hsk {
    background: linear-gradient(120deg, #065F46 0%, #047857 45%, #059669 100%);
}

.hero-hsk .hero-mand-hor-dia {
    color: var(--hsk-color);
}

.hero-hsk .hero-mand-btn {
    color: var(--hsk-color-dark);
}

.hero-hsk .hero-mand-asesor a {
    color: var(--hsk-color-light);
}

/* ===== CARD DE CONSULTA HSK (reemplaza card de precios) ===== */
.hsk-consulta-card {
    padding: 1.5rem !important;
}

.hsk-card-header {
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1.5px solid var(--color-gray-100);
    margin-bottom: 1.25rem;
}

.hsk-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hsk-card-titulo {
    font-size: var(--text-lg);
    font-weight: var(--font-black);
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.hsk-card-subtitulo {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin: 0;
}

/* Niveles en la card */
.hsk-niveles-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hsk-nivel-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hsk-nivel-badge {
    background: linear-gradient(135deg, var(--hsk-color), var(--hsk-color-dark));
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.hsk-nivel-badge.hsk-oral {
    background: linear-gradient(135deg, var(--hsk-teal), #0F766E);
}

.hsk-nivel-desc {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: 1.5;
    padding-top: 2px;
}

/* Destacados */
.hsk-destacados {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hsk-dest-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    line-height: 1.4;
}

.hsk-dest-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

/* Botón CTA en la card */
.hero-mand-cta.hsk-cta-btn {
    background: linear-gradient(135deg, var(--hsk-color), var(--hsk-color-dark)) !important;
    color: var(--color-white) !important;
}

.hero-mand-cta.hsk-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.35);
}

/* ===== PRETITLE COLOR HSK ===== */
.pagina-curso-hsk .section-pretitle {
    color: var(--hsk-color);
}

/* ===== NOTA BOX COLOR HSK ===== */
.pagina-curso-hsk .mand-nota-box {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-left-color: var(--hsk-color);
}

/* ===== RESULTADOS CARDS ===== */
.pagina-curso-hsk .mand-resultado-card:hover {
    border-color: var(--hsk-color);
}

/* ===== SECCIÓN CONSULTAR ===== */
.hsk-calendario thead {
    background: var(--hsk-color) !important;
}

.hsk-consulta-cta {
    background: linear-gradient(135deg, #065F46, #047857);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--color-white);
    margin-top: 3rem;
}

.hsk-consulta-cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hsk-consulta-cta h3 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: var(--font-black);
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.hsk-consulta-cta p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hsk-consulta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hsk-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    color: var(--hsk-color-dark);
    font-weight: var(--font-extrabold);
    font-size: var(--text-base);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all var(--transition-base);
}

.hsk-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.2);
    color: var(--hsk-color-dark);
}

.hsk-btn-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all var(--transition-base);
}

.hsk-btn-form:hover {
    background: rgba(255,255,255,0.25);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.8);
}

/* ===== TEXTO CONTACTO WHATSAPP MEJORADO ===== */
.hsk-consulta-sub {
    font-size: 0.95rem; 
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hsk-consulta-sub a {
    color: #FBBF24; /* Color ámbar/dorado para resaltar el número */
    text-decoration: none; /* Quitamos el subrayado feo */
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1); /* Fondo translúcido elegante */
    border-radius: var(--radius-full, 50px);
    transition: all 0.3s ease;
}

/* Efecto al pasar el mouse (Se vuelve verde WhatsApp) */
.hsk-consulta-sub a:hover {
    background: #25D366; /* Verde oficial de WhatsApp */
    color: #FFFFFF;
    transform: translateY(-2px); /* Se levanta un poquito */
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); /* Resplandor verde */
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 1024px) {
    .hsk-consulta-card {
        padding: 1.25rem !important;
    }
}

@media screen and (max-width: 767px) {
    .hsk-consulta-btns {
        flex-direction: column;
        align-items: center;
    }
    .hsk-btn-whatsapp,
    .hsk-btn-form {
        width: 100%;
        justify-content: center;
    }
    .hsk-consulta-cta {
        padding: 2rem 1.5rem;
    }
    .hsk-niveles-lista {
        gap: 0.6rem;
    }
}

/* Reemplaza .hero-programa-foto por la clase real que encontraste */
.hero-mand-foto img {
    /* translateY mueve elementos verticalmente. 
       Un número positivo lo mueve HACIA ABAJO */
    transform: translateY(15px); 
}


/* ===== SEPARAR FORMULARIO DE TEXTOS EN CELULAR ===== */
@media screen and (max-width: 767px) {
    
    /* Le da un empujón fuerte hacia abajo al contenedor del formulario */
    .column-sidebar,
    .hero-mand-right,
    .contact-form-card {
        margin-top: 1.5rem !important; /* Aproximadamente 50px de separación */
    }

    /* Si la tarjeta del "Nivel HSK" está arriba, también le damos margen hacia abajo por si acaso */
    .hsk-consulta-card,
    .hsk-consulta-cta {
        margin-bottom: 2rem !important;
    }
}