/* ============================================ */
/* INTERLINGO - style.css                       */
/* Estilos globales y componentes base          */
/* Paleta: Azul (#1771c4) + Amarillo (#FFC107) + Verde WhatsApp (#25D366) */
/* ============================================ */

:root {
    /* Colores principales - AZUL */
    --azul: #1771c4;
    --azul-claro: #42A5F5;
    --azul-oscuro: #124180;
    
    /* Colores secundarios - AMARILLO */
    --amarillo: #FFC107;
    --amarillo-oscuro: #FFA000;
    
    /* Verde exclusivo para WhatsApp y estados de éxito */
    --verde-whatsapp: #25D366;
    --verde-whatsapp-oscuro: #128C7E;
    
    /* Colores neutros */
    --negro: #212121;
    --gris-oscuro: #424242;
    --gris: #656C70;
    --gris-medio: #9E9E9E;
    --gris-claro: #F4F6F8;
    --gris-muy-claro: #FAFAFA;
    --blanco: #FFFFFF;
    
    /* Sombras con azul principal */
    --sombra-xs: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sombra-sm: 0 4px 12px rgba(23, 113, 196, 0.12);
    --sombra-md: 0 8px 24px rgba(23, 113, 196, 0.18);
    --sombra-lg: 0 12px 40px rgba(23, 113, 196, 0.22);
    --sombra-xl: 0 20px 50px rgba(23, 113, 196, 0.25);
    
    /* Bordes */
    --radio-sm: 8px;
    --radio-md: 12px;
    --radio-lg: 16px;
    --radio-xl: 20px;
    --radio-full: 50px;
    
    /* Transiciones */
    --trans-fast: 0.15s ease;
    --trans-normal: 0.3s ease;
    --trans-slow: 0.5s ease;
}

/* ============================================ */
/* RESET & BASE                                */
/* ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gris);
    background: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

ul, ol {
    list-style: none;
}

/* ============================================ */
/* TIPOGRAFÍA                                  */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--negro);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.3rem); }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/* UTILIDADES                                  */
/* ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================ */
/* TOP BAR                                     */
/* ============================================ */

.top-bar {
    background: var(--azul-oscuro);
    color: var(--blanco);
    font-size: 0.9rem;
    font-weight: 600;
}

.top-bar a {
    color: var(--amarillo);
    text-decoration: underline;
    font-weight: 700;
}

.top-bar a:hover {
    color: var(--blanco);
}

/* Ajustar espacio por el top bar */
.navbar {
    top: 0;
}

body {
    padding-top: 72px;
}

body:has(.top-bar) {
    padding-top: 72px;
}

/* ============================================ */
/* NAVBAR                                      */
/* ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--sombra-xs);
    border-bottom: 1px solid rgba(23, 113, 196, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 20px;
}

/* ============================================ */
/* BOTONES GLOBALES                            */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radio-full);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--trans-normal);
    white-space: nowrap;
    touch-action: manipulation;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.btn svg {
    flex-shrink: 0;
}

/* Botón Amarillo (CTA principal) */
.btn-amarillo {
    background: var(--amarillo);
    color: var(--negro);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-amarillo:hover:not(:disabled) {
    background: var(--amarillo-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Botón Azul (principal de marca) */
.btn-azul {
    background: var(--azul);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(23, 113, 196, 0.3);
}

.btn-azul:hover:not(:disabled) {
    background: var(--azul-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 113, 196, 0.4);
}

/* Botón Verde WhatsApp (exclusivo para WhatsApp) */
.btn-whatsapp {
    background: var(--verde-whatsapp);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover:not(:disabled) {
    background: var(--verde-whatsapp-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Botón Outline Blanco */
.btn-outline-blanco {
    background: transparent;
    color: var(--blanco);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-blanco:hover:not(:disabled) {
    background: var(--blanco);
    color: var(--azul);
    border-color: var(--blanco);
    transform: translateY(-2px);
}

/* Botón Outline Azul */
.btn-outline-azul {
    background: transparent;
    color: var(--azul);
    border: 2px solid var(--azul);
}

.btn-outline-azul:hover:not(:disabled) {
    background: var(--azul);
    color: var(--blanco);
    transform: translateY(-2px);
}

/* Loading state para botones */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-amarillo.loading::after {
    border-color: rgba(33, 33, 33, 0.3);
    border-top-color: var(--negro);
}

.btn-azul.loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: var(--blanco);
}

.btn-whatsapp.loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: var(--blanco);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================ */
/* ✅ HERO SECTION - CON IMAGEN DE FONDO + GRADIENTE */
/* ============================================ */

.hero {
    min-height: 720px;
    /* ✅ Imagen de fondo + gradiente overlay */
    background: 
        linear-gradient(rgba(15, 76, 129, 0.85), rgba(23, 113, 196, 0.85)),
        url('../images/hero/hero-background.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Efecto parallax opcional */
    padding: 80px 20px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decoración sutil sobre la imagen */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 193, 7, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2; /* ✅ Asegura que el contenido esté sobre el fondo */
    width: 100%;
}

.hero-text {
    color: var(--blanco);
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--blanco);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--amarillo);
    font-weight: 600;
    margin-bottom: 20px;
}

.subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95); /* ✅ Más contraste para leer sobre imagen */
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.contact-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.contact-info strong {
    color: var(--blanco);
    font-weight: 600;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radio-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2); /* ✅ Borde sutil para destacar */
}

/* ============================================ */
/* STATS BAR                                   */
/* ============================================ */

.stats-bar {
    background: var(--gris-claro);
    padding: 48px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--azul);
    letter-spacing: -0.02em;
}

.stat-number .azul {
    color: var(--azul-claro);
}

.stat-label {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--gris);
    font-weight: 500;
}

/* ============================================ */
/* SECTIONS BASE                               */
/* ============================================ */

section {
    padding: clamp(60px, 10vw, 100px) 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    background: rgba(23, 113, 196, 0.1);
    color: var(--azul);
    padding: 6px 20px;
    border-radius: var(--radio-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--negro);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--gris);
    line-height: 1.7;
}

/* ============================================ */
/* PROGRAMS SECTION                            */
/* ============================================ */

.programs-section {
    background: var(--gris-muy-claro);
}

.programs-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--blanco);
    border-radius: var(--radio-lg);
    overflow: hidden;
    box-shadow: var(--sombra-sm);
    transition: all var(--trans-normal);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-lg);
}

.program-header {
    background: var(--azul);
    color: var(--blanco);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.program-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.program-header h3 {
    font-size: 1.2rem;
    color: var(--blanco);
    margin-bottom: 6px;
    position: relative;
}

.program-age {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
    position: relative;
}

.program-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-body p {
    font-size: 0.95rem;
    color: var(--gris);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-features {
    margin-bottom: 24px;
}

.program-features li {
    padding: 6px 0;
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-features li::before {
    content: '✓';
    color: var(--azul);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program-cta {
    display: block;
    text-align: center;
    background: var(--azul);
    color: var(--blanco);
    padding: 12px 20px;
    border-radius: var(--radio-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--trans-fast);
}

.program-cta:hover {
    background: var(--azul-oscuro);
    transform: translateY(-2px);
}

/* ============================================ */
/* WHY SECTION                                 */
/* ============================================ */

.why-section {
    background: var(--blanco);
}

.why-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--gris-muy-claro);
    border-radius: var(--radio-lg);
    transition: all var(--trans-normal);
    border: 1px solid transparent;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-md);
    border-color: rgba(23, 113, 196, 0.15);
    background: var(--blanco);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: var(--azul);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(23, 113, 196, 0.25);
}

.why-card h4 {
    font-size: 1.1rem;
    color: var(--negro);
    margin-bottom: 12px;
    font-weight: 700;
}

.why-card p {
    color: var(--gris);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================ */
/* ABOUT SECTION - ✅ CORREGIDO PARA DOS COLUMNAS */
/* ============================================ */

.about-section {
    background: var(--gris-muy-claro);
}

/* ✅ GRID DE DOS COLUMNAS LADO A LADO */
.about-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ✅ COLUMNA DERECHA: VIDEO + REDES SOCIALES */
.about-visuals {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px; /* Se mantiene visible al hacer scroll */
}

/* ✅ VIDEO DE YOUTUBE - TAMAÑO REDUCIDO */
.about-main-video {
    position: relative;
    border-radius: var(--radio-lg);
    overflow: hidden;
    box-shadow: var(--sombra-md);
    background: var(--negro);
    width: 100%;
}

.about-main-video iframe {
    width: 100%;
    height: 240px; /* ✅ Altura reducida */
    display: block;
    border: 0;
}

/* ✅ TÍTULO DE PUBLICACIONES */
.about-visuals h4 {
    text-align: center;
    font-size: 1.1rem;
    color: var(--azul-oscuro);
    margin: 0;
    font-weight: 600;
}

/* ✅ CONTENEDOR DE PUBLICACIONES (FB + IG) */
.about-social-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ✅ TARJETA DE PUBLICACIÓN (Facebook/Instagram) */
.about-social-post {
    background: var(--blanco);
    border-radius: var(--radio-md);
    overflow: hidden;
    box-shadow: var(--sombra-sm);
    transition: all var(--trans-normal);
}

.about-social-post:hover {
    box-shadow: var(--sombra-md);
    transform: translateY(-2px);
}

/* ✅ IFRAMES DE REDES - TAMAÑOS CONTROLADOS */
.about-social-post iframe {
    width: 100% !important;
    display: block;
    border: 0;
}

/* Facebook post iframe */
.about-social-post.facebook-post iframe {
    height: 400px; /* ✅ Altura reducida para Facebook */
    max-width: 100%;
}

/* Instagram embed */
.about-social-post.instagram-post {
    padding: 0;
}

.about-social-post.instagram-post .instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* ✅ IMAGEN ANTIGUA (mantener por compatibilidad) */
.about-main-image {
    position: relative;
    border-radius: var(--radio-xl);
    overflow: hidden;
    box-shadow: var(--sombra-lg);
    aspect-ratio: 4/3;
}

.about-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

.about-main-image:hover img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: var(--radio-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--sombra-md);
}

.overlay-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--azul);
}

.badge-text {
    font-size: 0.85rem;
    color: var(--gris);
    line-height: 1.3;
    font-weight: 500;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radio-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--blanco);
    padding: 20px 12px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--trans-normal);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.about-content .section-label {
    margin-bottom: 16px;
}

.about-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--negro);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content > p {
    color: var(--gris);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.about-content > p strong {
    color: var(--negro);
    font-weight: 600;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(23, 113, 196, 0.05);
    border-radius: var(--radio-md);
    border-left: 3px solid var(--azul);
    transition: all var(--trans-fast);
}

.value-item:hover {
    background: rgba(23, 113, 196, 0.1);
    transform: translateX(4px);
}

.value-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.value-text strong {
    color: var(--negro);
    font-weight: 600;
    font-size: 0.95rem;
}

.value-text span {
    color: var(--gris);
    font-size: 0.9rem;
    line-height: 1.4;
}

.about-cta {
    margin-top: 8px;
}

/* ✅ FORMULARIO DENTRO DE ABOUT SECTION */
.about-content .contact-form-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--azul);
    border-radius: var(--radio-lg);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(23, 113, 196, 0.1);
    margin-top: 32px;
}

.about-content .contact-form-card h3 {
    color: var(--azul);
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.about-content .contact-form-card p {
    color: var(--gris);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.about-content .contact-form-card label {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.about-content .contact-form-card input,
.about-content .contact-form-card select,
.about-content .contact-form-card textarea {
    border: 2px solid #cbd5e1;
    border-radius: var(--radio-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
}

.about-content .contact-form-card input:focus,
.about-content .contact-form-card select:focus,
.about-content .contact-form-card textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(23, 113, 196, 0.15);
}

.about-content .contact-form-card .form-submit {
    background: linear-gradient(135deg, #1771c4 0%, #1e40af 100%);
    padding: 14px 24px;
    border-radius: var(--radio-sm);
    font-size: 1rem;
    font-weight: 600;
}

.about-content .contact-form-card .form-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #124180 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: var(--sombra-md);
}

.about-content .contact-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ============================================ */
/* TESTIMONIALS SECTION                        */
/* ============================================ */

.testimonials-section {
    background: var(--gris-claro);
}

.testimonials-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--blanco);
    padding: 32px;
    border-radius: var(--radio-lg);
    box-shadow: var(--sombra-sm);
    transition: all var(--trans-normal);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-md);
}

.testimonial-rating {
    color: var(--amarillo);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gris-oscuro);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gris-claro);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gris-claro);
}

.testimonial-name {
    font-weight: 700;
    color: var(--negro);
    font-size: 1rem;
}

.testimonial-role {
    color: var(--azul);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================ */
/* CTA SECTION                                 */
/* ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-inner h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--blanco);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-inner p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-inner p strong {
    color: var(--amarillo);
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-section .checkmarks {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================ */
/* CONTACT SECTION                             */
/* ============================================ */

.contact-section {
    background: var(--blanco);
}

.contact-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background: var(--gris-muy-claro);
    border-radius: var(--radio-xl);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--sombra-sm);
}

.contact-info-card h3,
.contact-form-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--negro);
    margin-bottom: 24px;
    font-weight: 700;
}

.contact-detail {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-detail .icon-box {
    width: 44px;
    height: 44px;
    background: var(--azul);
    color: var(--blanco);
    border-radius: var(--radio-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-detail .text {
    flex: 1;
}

.contact-detail .text strong {
    display: block;
    color: var(--negro);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-detail .text a {
    color: var(--gris);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--trans-fast);
}

.contact-detail .text a:hover {
    color: var(--azul);
}

/* ============================================ */
/* FORMULARIO DE CONTACTO                      */
/* ============================================ */

.contact-form-card .form-group {
    margin-bottom: 20px;
}

.contact-form-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 8px;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radio-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--negro);
    background: var(--blanco);
    transition: all var(--trans-fast);
    outline: none;
}

.contact-form-card input:hover,
.contact-form-card select:hover,
.contact-form-card textarea:hover {
    border-color: #ccc;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(23, 113, 196, 0.1);
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: var(--gris-medio);
}

.contact-form-card textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form-card select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23656C70' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--azul);
    color: var(--blanco);
    border: none;
    border-radius: var(--radio-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--trans-normal);
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover:not(:disabled) {
    background: var(--azul-oscuro);
    transform: translateY(-2px);
    box-shadow: var(--sombra-md);
}

.form-submit:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-submit.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--blanco);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ✅ FORM STATUS - Ahora soporta cualquier ID que empiece con formStatus */
[id^="formStatus"] {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 24px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--trans-normal), transform var(--trans-normal);
}

[id^="formStatus"].visible {
    opacity: 1;
    transform: translateY(0);
}

[id^="formStatus"].success {
    color: #155724;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    padding: 12px 16px;
    border-radius: var(--radio-sm);
}

[id^="formStatus"].error {
    color: #721c24;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    padding: 12px 16px;
    border-radius: var(--radio-sm);
}

[id^="formStatus"] a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================ */
/* FORMULARIO FLOTANTE (clase-gratis.html)     */
/* ============================================ */

.form-section {
    padding: 80px 20px;
    background: #f0f4f8;
    position: relative;
}

.floating-form-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px auto 60px;
}

.floating-form-card {
    background: #ffffff;
    width: 100%;
    max-width: 550px;
    padding: 40px 35px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(23, 113, 196, 0.15), 
                0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(23, 113, 196, 0.2), 
                0 15px 30px rgba(0,0,0,0.08);
}

.form-icon-top {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--amarillo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    border: 3px solid #ffffff;
}

.floating-form-card h3 {
    text-align: center;
    color: var(--negro);
    font-size: 1.5rem;
    margin: 15px 0 5px;
    font-weight: 800;
}

.form-subtitle {
    text-align: center;
    color: var(--gris);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-group-floating {
    margin-bottom: 20px;
    position: relative;
}

.form-group-floating label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 8px;
    margin-left: 4px;
}

.form-group-floating input,
.form-group-floating textarea,
.form-group-floating select {
    width: 100%;
    padding: 14px 16px;
    background: #F8F9FA;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--negro);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.form-group-floating input:hover,
.form-group-floating textarea:hover,
.form-group-floating select:hover {
    background: #ffffff;
    border-color: #e0e0e0;
}

.form-group-floating input:focus,
.form-group-floating textarea:focus,
.form-group-floating select:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--azul);
    box-shadow: 0 0 0 4px rgba(23, 113, 196, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gris);
    pointer-events: none;
    font-size: 0.8rem;
}

.form-submit-cta {
    width: 100%;
    padding: 16px;
    background: var(--azul);
    color: var(--blanco);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 113, 196, 0.3);
    margin-top: 10px;
}

.form-submit-cta:hover {
    background: var(--azul-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 113, 196, 0.4);
}

.form-submit-cta:active {
    transform: translateY(0);
}

.form-submit-cta.loading {
    opacity: 0.8;
    pointer-events: none;
}

.benefits-grid {
    max-width: 800px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--negro);
}

.benefit-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gris);
}

@media (max-width: 576px) {
    .floating-form-card {
        padding: 30px 20px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* FOOTER                                      */
/* ============================================ */

.footer {
    background: var(--negro);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    height: 42px;
    width: auto;
    margin-bottom: 8px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    transition: all var(--trans-fast);
}

.social-link:hover {
    background: var(--azul);
    transform: translateY(-2px);
}

.footer-col .footer-title {
    color: var(--blanco);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--azul);
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--trans-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--amarillo);
}

.footer-contacts {
    gap: 16px;
}

.footer-contact-link {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}

.contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding: 24px 20px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ============================================ */
/* WHATSAPP FLOAT - VERDE OFICIAL              */
/* ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--verde-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--trans-fast);
}

.whatsapp-float:hover {
    background: var(--verde-whatsapp-oscuro);
    transform: scale(1.1);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ============================================ */
/* TOAST NOTIFICATION                          */
/* ============================================ */

.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--blanco);
    border-radius: var(--radio-md);
    padding: 14px 20px;
    box-shadow: var(--sombra-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--negro);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 340px;
    pointer-events: auto;
    border-left: 4px solid var(--azul);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #e53e3e;
}

.toast .toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ============================================ */
/* SCROLL ANIMATIONS                           */
/* ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================ */
/* ACCESIBILIDAD                               */
/* ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--amarillo);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-up {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-contrast: high) {
    :root {
        --sombra-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
        --sombra-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .program-card,
    .why-card,
    .testimonial-card {
        border: 2px solid var(--gris-medio);
    }
}

/* ============================================ */
/* IMPRESIÓN                                   */
/* ============================================ */

@media print {
    .navbar,
    .whatsapp-float,
    .toast-container,
    .top-bar,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
        padding-top: 0;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .btn {
        border: 1px solid #000;
        background: none !important;
        color: #000 !important;
        box-shadow: none;
    }
}