/* OPTIMIZED BUILD */
:root {
    --color-bg-dark: #020b26;
    --color-bg-light: #0a1945;
    --color-primary: #38bdf8; /* Cyan claro */
    --color-primary-glow: #0ea5e9;
    --color-secondary: #4f46e5;
    --color-text: #ffffff;
    --color-text-muted: #94a3b8;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-card-border: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Inter', system-ui, sans-serif;
    
    --max-width: 1200px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* === Layout & Utils === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden { display: none !important; }
.text-highlight { color: var(--color-primary); }

/* === Navbar === */
.navbar {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}
.logo i { font-size: 2rem; color: var(--color-primary); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:not(.btn) {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.nav-links a:not(.btn):hover { opacity: 1; }

/* === Hero Section === */
.hero {
    min-height: 105vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, #1e3a8a 0%, var(--color-bg-dark) 40%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: 0;
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-glow) 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-secondary:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

/* === Hero Image & Decor === */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.globe-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.float-item {
    position: absolute;
    color: var(--color-primary);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}
.float-1 { top: 10%; right: 10%; animation-delay: 0s; }
.float-2 { bottom: 20%; left: 0%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* === Courses Section === */
.courses-section {
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-light) 100%);
    margin-top: -2px; /* Fix gap */
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.course-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.course-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.course-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 60px;
}

/* === Anglia Section === */
.anglia-section {
    padding: 4rem 0;
    background: var(--color-bg-light);
    text-align: center;
}

.anglia-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--color-card-border);
    max-width: 800px;
    margin: 0 auto;
}

.anglia-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #ffd700; /* Gold */
}
.anglia-logo i { font-size: 2.5rem; }
.anglia-logo h3 { font-size: 1.5rem; color: white; }

.link-anglia {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.link-anglia:hover { text-decoration: underline; }

/* === Footer === */
.footer {
    padding: 4rem 0 2rem;
    background: #000;
    border-top: 1px solid #1e293b;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-brand h4 { color: white; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; }

.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-socials a {
    color: var(--color-text-muted);
    font-size: 1.5rem;
    transition: color 0.2s;
}
.footer-socials a:hover { color: var(--color-primary); }

/* === Modal === */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.modal.hidden { opacity: 0; pointer-events: none; }
.modal-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    background: #0f172a;
    border: 1px solid var(--color-card-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1001;
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.modal.hidden .modal-content { transform: translateY(20px); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: transparent; border: none; color: white;
    font-size: 1.5rem; cursor: pointer;
}
.w-full { width: 100%; }

/* === Utilities === */
.skeleton {
    background: rgba(255,255,255,0.05);
    height: 300px;
    border-radius: var(--radius-lg);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}
.admin-trigger {
    opacity: 0.1; font-size: 12px; text-decoration: none; color: white;
    position: fixed; bottom: 5px; right: 5px;
}
.helix-powered {
    text-align: center; padding-top: 2rem;
}
.helix-powered a {
    color: #475569; font-size: 0.7rem; text-decoration: none; letter-spacing: 1px;
    text-transform: uppercase;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-image-container { margin-top: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
}
/* === SECCIÓN WHY US === */
.why-us-section {
    padding: 5rem 0;
    background: var(--color-bg-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    font-weight: 700;
}
.text-center { text-align: center; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.icon-box {
    width: 60px; height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 { color: white; margin-bottom: 0.5rem; font-size: 1.2rem; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; }


/* === SECCIÓN TESTIMONIOS (VITRINA) === */
.testimonials-showcase {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0f172a 100%);
    overflow: hidden;
    position: relative;
}

.showcase-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.showcase-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.showcase-track:hover { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px;
    flex-shrink: 0;
    user-select: none;
}

.t-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.t-avatar {
    width: 40px; height: 40px;
    background: var(--color-primary);
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.t-name { font-weight: 600; color: white; }
.t-comment { color: #cbd5e1; font-size: 0.9rem; line-height: 1.5; font-style: italic; }

.btn-leave-review { margin-top: 2rem; text-align: center; }

/* Estilos para el Formulario del Modal */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; color: white; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem;
    background: rgba(0,0,0,0.3); border: 1px solid #333;
    color: white; border-radius: 8px;
    font-family: inherit;
}

/* === BOTÓN FLOTANTE WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: bounceIn 1s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 28px; }
}

/* === LOGO === */
/* Reemplaza la clase .logo anterior con esta ajuste para imagen */
.nav-logo-img {
    height: 50px; /* Ajusta según prefieras */
    width: auto;
    object-fit: contain;
    display: block;
}

/* === VITRINA DE TESTIMONIOS (Carrusel Infinito) === */
.testimonials-showcase {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0f172a 100%);
    overflow: hidden; /* Vital para ocultar lo que sale de pantalla */
    position: relative;
}

.showcase-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Máscara de desvanecimiento a los lados */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.showcase-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Animación lenta y continua */
    animation: scroll 40s linear infinite;
}

/* Pausar al pasar el mouse para leer tranquilo */
.showcase-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve la mitad (el set original) */
}

.testimonial-card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px; /* Ancho fijo para el carrusel */
    flex-shrink: 0;
    user-select: none;
}

.t-header {
    display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
}
.t-avatar {
    width: 40px; height: 40px;
    background: var(--color-primary);
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.t-name { font-weight: 600; color: white; }
.t-comment { color: #cbd5e1; font-size: 0.9rem; line-height: 1.5; font-style: italic; }

/* Botón para dejar comentario */
.btn-leave-review {
    margin-top: 2rem;
    text-align: center;
}

/* Modal Form Styles (Adicionales) */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; color: white; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem;
    background: rgba(0,0,0,0.3); border: 1px solid #333;
    color: white; border-radius: 8px;
}
/* === SECCIÓN CONTACTO === */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0f172a 0%, var(--color-bg-dark) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(10px);
}

.contact-info h3 { font-size: 1.8rem; margin-bottom: 1rem; color: white; }
.contact-info p { color: var(--color-text-muted); margin-bottom: 2.5rem; line-height: 1.6; font-size: 1.05rem; }

.whatsapp-btn {
    display: inline-flex; width: 100%; font-size: 1.1rem; padding: 1.2rem;
    background: #25D366; color: white; border: none; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    justify-content: center;
}
.whatsapp-btn:hover { 
    background: #1ebc59; 
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); 
    transform: translateY(-3px); 
    color: white;
}
.whatsapp-btn i { font-size: 1.5rem; }

.contact-form-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
}

.contact-form-container h3 { font-size: 1.5rem; margin-bottom: 2rem; color: white; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info, .contact-form-container { padding: 2rem; }
}
/* === SECCIÓN ACERCA DE === */
.about-section {
    padding: 6rem 0 3rem 0;
    background: var(--color-bg-light);
    position: relative;
}

.about-grid {
    display: grid;
    /* CAMBIO: Le damos 1.6 fracciones a la imagen y 1 fracción al texto.
       La carta se queda fija en 300px. */
    grid-template-columns: 1.6fr 1fr 300px; 
    
    /* Reducimos un poco el espacio entre columnas para ganar área útil */
    gap: 1.5rem; 
    
    align-items: center;
}

/* Ajuste para pantallas medianas (Tablets): Pasar a 2 filas si no cabe */
@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; /* Imagen y Texto arriba */
    }
    /* La carta bajará automáticamente si es el tercer hijo, 
       o podemos forzarla a ocupar todo el ancho abajo */
}

.about-image {
    position: relative;
}

.glass-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.badge-text {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.about-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.teacher-profile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.teacher-avatar {
    width: 60px; height: 60px; flex-shrink: 0;
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}

/* === SECCIÓN CÓMO TRABAJAMOS (Metodología) === */
.how-it-works-section {
    padding: 4rem 0 6rem 0;
    background: var(--color-bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

/* Línea conectora de fondo para desktop */
@media (min-width: 1024px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent);
        z-index: 0;
    }
}

.step-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

.step-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsivo */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .experience-badge { bottom: -10px; right: 10px; padding: 1rem; }
    .badge-number { font-size: 2rem; }
}
/* === Ajuste de Textos Metodología === */
.step-highlight {
    color: var(--color-primary); /* Color destacado */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* Ajuste para que el número se vea como en la imagen (1., 2., 3.) */
.step-number {
    font-family: var(--font-primary); /* Usar la misma fuente, no decorativa */
    font-size: 4rem; /* Más grande */
    opacity: 0.1; /* Sutil */
    top: 0rem;
    right: 1rem;
}
/* === BOTÓN VOLVER ARRIBA === */
.scroll-top-btn {
    position: fixed;
    bottom: 100px; /* Encima del WhatsApp */
    right: 30px;
    width: 50px; height: 50px;
    background: rgba(15, 23, 42, 0.8); /* Fondo oscuro semitransparente */
    color: var(--color-primary);
    border: 1px solid var(--color-card-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 99; /* Debajo del WhatsApp (z-100) pero encima del resto */
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-top-btn:hover {
    background: var(--color-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.scroll-top-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

@media (max-width: 768px) {
    .scroll-top-btn { 
        bottom: 80px; 
        right: 20px; 
        width: 40px; height: 40px; 
        font-size: 1.2rem;
    }
}
/* === TEACHER CARD 3D (POKÉMON STYLE) === */
.teacher-card-scene {
    width: 100%;
    max-width: 350px; /* Ancho fijo ideal */
    height: 420px;
    perspective: 1000px;
    /* Eliminamos margin auto para que obedezca a la grilla */
    margin: 0; 
    cursor: pointer;
    /* Aseguramos que no se salga del contenedor en responsive */
    justify-self: center; 
}

/* En móvil, volvemos a centrarla */
@media (max-width: 1200px) {
    .teacher-card-scene {
        grid-column: 1 / -1; /* Ocupar todo el ancho disponible abajo */
        margin: 2rem auto 0; /* Separación superior y centrado */
    }
}

.teacher-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
    border-radius: 20px;
}

/* Clase que activa el giro */
.teacher-card.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Oculta la cara trasera al girar */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* === CARA FRONTAL === */
.card-front {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Efecto holográfico sutil */
.card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
    animation: holo-spin 10s linear infinite;
    z-index: 0;
}

@keyframes holo-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.card-image-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 85%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teacher-full-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen sin cortarla */
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}

.teacher-card:hover .teacher-full-img {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    text-align: center;
}

.card-label {
    background: var(--color-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.card-content h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.tap-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* === CARA TRASERA === */
.card-back {
    background: linear-gradient(135deg, var(--color-bg-light), #000);
    transform: rotateY(180deg); /* Ya está girada para esperar el flip */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--color-primary); /* Borde destacado al revelar */
}

.back-content h3 { color: var(--color-primary); margin-bottom: 1.5rem; }

.stats-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 12px;
}

.stat { display: flex; flex-direction: column; }
.stat-val { font-size: 1.2rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; }

.back-content p {
    font-size: 0.9rem; color: #ccc; line-height: 1.6; margin-bottom: 1rem;
}