/* ===== BASE & VARIABLES - DISEÑO FINAL Y DEPURADO ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-text: #F5F5F5;
    --color-text-muted: #A0AEC0;
    --color-accent: #E53E3E;
    --color-accent-hover: #C53030;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-max-width: 1140px;
    --header-height: 80px;
    --radius-md: 8px;
    --transition-normal: 0.4s ease;
    --shadow-glow: 0 0 20px rgba(229, 62, 62, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

/* ===== ANIMACIONES DE SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-height); z-index: 1000;
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo img { height: 48px; width: auto; }
.nav-list { list-style: none; display: flex; gap: 2.8rem; }
.nav-link { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 1rem; transition: color var(--transition-normal); position: relative; padding-bottom: 5px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--color-accent); transition: width var(--transition-normal); }
.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; }

/* ===== SELECTOR DE IDIOMA CON BANDERAS ===== */
.language-selector { position: relative; }
.selected-lang { display: flex; align-items: center; gap: 0.6rem; background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.15); padding: 0.5rem 1rem; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-normal); }
.selected-lang:hover { border-color: var(--color-accent); background-color: var(--color-surface); }
.selected-lang span { font-weight: 500; font-size: 0.9rem; }
.flag-icon { width: 20px; border-radius: 3px; }
.lang-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background-color: var(--color-surface); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); list-style: none; padding: 0.5rem; z-index: 10; display: none; min-width: 150px; }
.lang-dropdown.active { display: block; }
.lang-option a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; color: var(--color-text); text-decoration: none; border-radius: 4px; transition: background-color var(--transition-normal); }
.lang-option a:hover { background-color: var(--color-background); }

/* ===== HERO ===== */
.hero { height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding: 0; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: brightness(0.4); z-index: -1; }
.hero-background::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at center, transparent 50%, var(--color-background) 95%); }
.hero-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(3.5rem, 10vw, 7.5rem); letter-spacing: 3px; line-height: 1.1; color: var(--color-text); }
.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.3rem); color: var(--color-text); margin-top: 1.5rem; letter-spacing: 1px; font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; }

/* ===== SECCIÓN PILARES ===== */
#pilares { background-color: var(--color-surface); }
.pilares-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: center; }
.pillar-card { padding: 2rem; }
.pillar-icon { width: 60px; height: 60px; margin-bottom: 1.5rem; color: var(--color-accent); }
.pillar-title { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 0.5rem; }
.pillar-text { color: var(--color-text-muted); }

/* ===== SECCIÓN "LA ACADEMIA" ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.about-text-box .section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.separator {
    border: 0;
    height: 3px;
    background-color: var(--color-accent);
    width: 70px;
    margin: 0 0 1.5rem 0;
    border-radius: 2px;
}
.instructor-title { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.25rem; }
.instructor-subtitle { color: var(--color-text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }
.achievements-list { list-style-type: none; padding-left: 0; }
.achievements-list li { margin-bottom: 0.75rem; padding-left: 2rem; position: relative; }
.achievements-list li::before { content: '›'; position: absolute; left: 0; color: var(--color-accent); font-weight: 900; font-size: 1.5rem; line-height: 1; }
.about-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* ===== CLASES ===== */
.classes { background-color: var(--color-surface); }
.classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.class-card { background-color: var(--color-background); padding: 2.5rem 2rem; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.1); transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.class-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-glow); }
.card-title { font-family: var(--font-heading); font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 1rem; color: var(--color-accent); }

/* ===== CTA PRINCIPIANTES ===== */
#principiantes { text-align: center; }
.cta-beginners-title { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 1rem; }
.cta-beginners-text { color: var(--color-text-muted); font-size: 1.2rem; max-width: 650px; margin: 0 auto 2.5rem; }
.cta-button { font-family: var(--font-heading); font-weight: 500; text-decoration: none; padding: 1rem 2.5rem; border: 2px solid var(--color-accent); color: var(--color-accent); font-size: 1.1rem; letter-spacing: 1px; border-radius: 50px; transition: all var(--transition-normal); background-color: transparent; display: inline-block; }
.cta-button:hover { background-color: var(--color-accent); color: var(--color-background); transform: translateY(-5px); box-shadow: var(--shadow-glow); }

/* ===== GALERÍA (2 FOTOS) ===== */
.gallery { background-color: var(--color-surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.gallery-image { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius-md); transition: transform 0.4s ease, filter 0.4s ease; }
.gallery-image:hover { transform: scale(1.05); filter: saturate(1.2); }

/* ===== CONTACTO Y FOOTER ===== */
.contact-title { font-family: var(--font-heading); font-size: 4rem; letter-spacing: 2px; }
.contact-subtitle { color: var(--color-text-muted); margin-bottom: 3rem; font-size: 1.3rem; }
.footer { padding: 4rem 0; background-color: #000; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-info, .footer-social { text-align: left; }
.footer-brand { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 0.5rem; }
.footer-address { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.social-links { display: flex; align-items: center; gap: 1.5rem; }
.social-links a { color: var(--color-text-muted); text-decoration: none; transition: all var(--transition-normal); }
.social-links a:hover { color: var(--color-accent); transform: translateY(-3px); }
.social-links svg { width: 28px; height: 28px; fill: currentColor; }
.footer-copy { width: 100%; text-align: center; margin-top: 3rem; color: #666; font-size: 0.85rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-copy a { color: #888; text-decoration: none; transition: color var(--transition-normal); }
.footer-copy a:hover { color: var(--color-accent); }

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 60px; height: 60px;
    background-color: #25D366;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all var(--transition-normal);
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1) rotate(10deg);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #FFF; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
    .about-visual { grid-row: 1; }
    .nav-list { display: none; }
    .nav-toggle { display: flex; flex-direction: column; justify-content: space-around; width: 28px; height: 28px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
    .hamburger-line { width: 100%; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
    .nav-toggle.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
    .nav-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; top: var(--header-height); right: -100%; width: 100%; height: calc(100vh - var(--header-height)); background: var(--color-background); transition: transform 0.4s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; }
    .nav-menu.active { transform: translateX(-100%); }
    .nav-menu .nav-list { display: flex; flex-direction: column; text-align: center; gap: 2rem; }
    .nav-link { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .section-title, .contact-title, .about-text-box .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .schedule { display: none; }
    .about-image { height: 400px; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-info, .footer-social { text-align: center; }
    .social-links { justify-content: center; }
}