/* =========================================
   1. CONFIGURACIÓN GLOBAL & VARIABLES
   ========================================= */
:root {
    --bg-color: #050505;      /* Negro profundo */
    --card-bg: #111111;       /* Gris muy oscuro para tarjetas */
    --text-main: #e0e0e0;     /* Blanco hueso para texto */
    --text-accent: #999999;   /* Gris para subtítulos */
    --brand-red: #b10000;     /* Rojo de marca (Lichmond) */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave al navegar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden; /* Evita scroll lateral */
    cursor: none; /* Ocultamos el cursor por defecto para usar el personalizado */
}

/* Ajuste para que el menú fijo no tape los títulos al bajar */
section {
    scroll-margin-top: 80px; 
}

/* --- Cursor Personalizado (Círculo) --- */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999; /* ¡IMPORTANTE! Muy alto para verse sobre la galería */
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference; /* Efecto de inversión de color */
}

/* =========================================
   2. NAVEGACIÓN
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.9); /* Fondo semi-transparente */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú Hamburguesa (Móvil) */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.burger-menu div {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Menú Móvil Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 99;
}

.mobile-nav-overlay.active {
    transform: translateX(0%);
}

.mobile-links {
    list-style: none;
    text-align: center;
}

.mobile-links li {
    margin: 2rem 0;
    opacity: 0;
    transition: opacity 0.5s 0.3s;
}

.mobile-nav-overlay.active .mobile-links li {
    opacity: 1;
}

.mobile-links a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: white;
    text-decoration: none;
}

/* Animación Hamburguesa */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    position: relative;
}

.hero-content {
    z-index: 2;
    width: 50%;
}

.subtitle {
    color: var(--text-accent);
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 5.5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.italic {
    font-style: italic;
    font-weight: 400;
    color: #b3b3b3;
}

.hero-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.5;
}

/* Botones CTA */
.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid white;
    cursor: pointer;
}

.primary-btn {
    background-color: white;
    color: black;
    font-weight: bold;
}

.primary-btn:hover {
    background-color: #ddd;
    border-color: #ddd;
}

.secondary-btn {
    background: transparent;
    color: white;
}

.secondary-btn:hover {
    background: white;
    color: black;
}

.hero-image-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    opacity: 0.6;
}

/* =========================================
   4. EXPERIENCIA
   ========================================= */
.experience-section {
    padding: 8rem 4rem;
    background: #080808;
}

.exp-intro {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.exp-bio-image {
    width: 35%;
    height: 400px;
    overflow: hidden;
}

.exp-bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(10%) brightness(0.9);
}

.exp-bio-content {
    width: 65%;
}

.exp-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-accent);
    margin-top: 1.5rem;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.exp-card {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 1.5rem;
}

.exp-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.exp-card p {
    font-size: 0.9rem;
    color: var(--text-accent);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
    text-align: center;
}

.step { width: 30%; }

.step-label {
    display: block;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: white;
}

.step p {
    color: var(--text-accent);
    font-size: 0.9rem;
}

.step-separator {
    height: 1px;
    background: #333;
    flex-grow: 1;
    margin: 0 1rem;
}

.process-note {
    text-align: center;
    margin-top: 4rem;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* =========================================
   5. SERVICIOS
   ========================================= */
.services-section {
    padding: 6rem 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: white;
}

.text-center { text-align: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: grayscale(80%);
}

.service-card:hover .card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Etiqueta "Ver Galería" sobre la foto */
.gallery-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.card-content ul {
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.card-content li {
    font-size: 0.8rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.card-content li::before {
    content: '•';
    margin-right: 8px;
    color: white;
}

/* =========================================
   6. ACADEMY (CURSOS)
   ========================================= */
.info-section {
    padding: 6rem 4rem;
    background: #080808;
}

/* Asegura 3 columnas en escritorio */
.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.courses-grid {
    display: grid;
    gap: 2rem;
}

.course-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    background: var(--bg-color);
    text-align: center;
    transition: all 0.3s;
}

.course-card:hover {
    background-color: #151515;
}

.course-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.course-card p {
    color: var(--text-accent);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    min-height: 60px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}

/* =========================================
   7. EVENTOS & TESTIMONIOS
   ========================================= */
.events-section {
    padding: 6rem 4rem;
}

.events-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.event-item {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.event-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: brightness(0.7);
}

.event-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.event-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    z-index: 2;
}

/* Testimonios */
.testimonials-section {
    padding: 6rem 4rem;
    background: #0c0c0c;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ddd;
}

.author {
    font-family: var(--font-serif);
    color: #888;
    letter-spacing: 1px;
}

/* =========================================
   8. FAQ & CONTACTO
   ========================================= */
.faq-section {
    padding: 6rem 4rem;
    background-color: #080808;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #222;
    padding-bottom: 2rem;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: white;
}

.faq-item p {
    color: var(--text-accent);
    line-height: 1.5;
    font-size: 0.95rem;
}

.contact-section {
    padding: 6rem 4rem;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.contact-image-container {
    width: 40%;
    height: 500px;
}

.contact-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    border-radius: 2px;
}

.contact-form {
    width: 60%;
}

.form-intro {
    margin-bottom: 2rem;
    color: var(--text-accent);
}

.form-group {
    margin-bottom: 2.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-bottom: 1px solid white;
}

footer {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 2rem;
}

footer h2 {
    font-family: var(--font-serif);
    margin-bottom: 1rem;
}

footer p {
    color: #666;
    font-size: 0.8rem;
}

/* =========================================
   9. ELEMENTOS FLOTANTES & MODAL
   ========================================= */

/* A. BOTÓN WHATSAPP (Base de la pila) */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 35px; /* Tamaño del icono */
    z-index: 10000;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}

.float-whatsapp:hover {
    transform: scale(1.1);
}

/* B. BOTÓN BACK TO TOP (Encima del WhatsApp) */
#backToTop {
    position: fixed;
    bottom: 100px; /* 30px (base) + 60px (btn whats) + 10px (espacio) */
    right: 35px;   /* Alineado al centro del botón de abajo (60-50)/2 + 30 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    
    /* Estado inicial: Oculto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: white;
    color: var(--brand-red);
    transform: translateY(-3px);
}

/* C. MODAL GALERÍA */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    cursor: auto; /* Cursor normal para navegar */
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
}

#modal-img {
    max-height: 80vh;
    max-width: 90%;
    object-fit: contain;
    border: 1px solid #333;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0} 
    to {transform:scale(1); opacity:1}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.prev-btn, .next-btn {
    pointer-events: auto;
    background: rgba(0,0,0,0.5);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: white;
    color: black;
}

#modal-caption {
    margin-top: 1rem;
    color: var(--text-accent);
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* Animaciones Scroll */
.reveal-text { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards; }
.reveal-scroll { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal-scroll.active { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   10. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

@media (max-width: 900px) {
    /* Tablets: 2 columnas */
    .services-grid, .exp-grid, .events-gallery, .testimonials-grid, .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .exp-intro { flex-direction: column; gap: 2rem; }
    .exp-bio-image, .exp-bio-content { width: 100%; }
    .exp-bio-image { height: 350px; }
}

@media (max-width: 768px) {
    .cursor { display: none; } /* Quitar cursor en touch */
    
    /* Nav */
    nav { padding: 1rem 1.5rem; }
    .desktop-menu { display: none; }
    .burger-menu { display: block; } 

    /* Hero */
    .hero { flex-direction: column; padding: 0 1.5rem; justify-content: center; }
    .hero-content { width: 100%; margin-top: 7rem; text-align: left; }
    .main-title { font-size: 3.5rem; }
    .hero-image-container { position: relative; width: 100%; height: 350px; margin-top: 2rem; opacity: 0.4; }

    /* Padding General */
    .experience-section, .services-section, .info-section, .faq-section, .contact-section, .events-section, .testimonials-section { 
        padding: 4rem 1.5rem; 
    }
    
    /* REGLA MÓVIL: Todo a 1 columna (Hileras) */
    .services-grid, 
    .exp-grid, 
    .events-gallery, 
    .testimonials-grid, 
    .three-columns { 
        grid-template-columns: 1fr; 
    }
    
    .exp-intro, .process-timeline, .contact-wrapper { flex-direction: column; }
    .exp-bio-image, .exp-bio-content, .step, .contact-image-container, .contact-form { width: 100%; }
    .exp-bio-image { height: 300px; margin-bottom: 1rem; }
    .step-separator { display: none; }
    .contact-image-container { height: 250px; margin-bottom: 2rem; }

    /* Ajustes Modal Móvil */
    .close-modal { top: 10px; right: 20px; font-size: 30px; }
    .prev-btn, .next-btn { padding: 0.8rem; font-size: 1rem; }
    .modal-nav { padding: 0 10px; }
    
    /* Ajuste botones flotantes (Stack Móvil) */
    .float-whatsapp { 
        width: 55px; height: 55px; 
        bottom: 20px; right: 20px; 
        font-size: 30px; 
    }
    #backToTop { 
        width: 45px; height: 45px; 
        bottom: 85px; /* 20 + 55 + 10 */
        right: 25px; /* Centrado */
        font-size: 1rem; 
    }
}