/* =========================================
   1. CONFIGURACIÓN GLOBAL & VARIABLES
   ========================================= */
:root {
    --bg-color: #050505;      /* Fondo Principal */
    --card-bg: #111111;       /* Fondo Tarjetas */
    --text-main: #e0e0e0;     /* Texto Principal */
    --text-accent: #999999;   /* Texto Secundario */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave */
}

* {
    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;
    cursor: none; /* Ocultamos cursor default en Desktop para usar el personalizado */
}

/* Ajuste para que el menú fijo no tape el título 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: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

/* =========================================
   2. NAVEGACIÓN
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    position: fixed; /* Fijo al hacer scroll */
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85); /* 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 (Icono) --- */
.burger-menu {
    display: none; /* Oculto en escritorio */
    cursor: pointer;
    z-index: 101;
}

.burger-menu div {
    width: 25px;
    height: 2px;
    background-color: white; /* LÍNEAS BLANCAS */
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Menú Móvil (Overlay Pantalla Completa) --- */
.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%); /* Oculto a la derecha */
    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 Icono Hamburguesa a "X" */
.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: 2rem;
}

.italic {
    font-style: italic;
    font-weight: 400;
    color: #b3b3b3;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    cursor: pointer;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.4s ease;
}

.cta-btn:hover {
    background-color: 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 (Bio + Grid + Timeline)
   ========================================= */
.experience-section {
    padding: 8rem 4rem;
    background: #080808;
}

/* Contenedor Bio e Imagen */
.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-header {
    margin-bottom: 0;
    text-align: left;
}

.exp-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-accent);
    margin-top: 1.5rem;
}

/* Grid de 3 tarjetas (Arte, Piel, Ambiente) */
.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);
}

/* Línea de Tiempo (Antes - Durante - Después) */
.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 (Grid con Imágenes)
   ========================================= */
.services-section {
    padding: 6rem 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 4rem;
    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;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.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%);
}

.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;
    min-height: 40px;
}

.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;
}

.three-columns {
    grid-template-columns: 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;
}

.text-link {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
}

/* =========================================
   7. EVENTOS
   ========================================= */
.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;
}

/* =========================================
   8. FAQ
   ========================================= */
.faq-section {
    padding: 6rem 4rem;
    background-color: #0c0c0c;
}

.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;
}

/* =========================================
   9. CONTACTO
   ========================================= */
.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;
}

/* =========================================
   10. FOOTER
   ========================================= */
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;
}

/* =========================================
   11. ANIMACIONES
   ========================================= */
.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);
    }
}

/* =========================================
   12. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablets (900px) */
@media (max-width: 900px) {
    .services-grid, .exp-grid, .events-gallery, .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; }
}

/* Móviles (768px e inferior) */
@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; } /* Aparece hamburguesa */

    /* 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 reducido */
    .experience-section, .services-section, .info-section, .faq-section, .contact-section, .events-section { 
        padding: 4rem 1.5rem; 
    }
    
    /* REGLA CLAVE: Todo en 1 sola columna (Apilado) */
    .services-grid, 
    .exp-grid, 
    .events-gallery, 
    .three-columns { 
        grid-template-columns: 1fr; 
    }
    
    /* Experiencia Bio Vertical */
    .exp-intro { flex-direction: column; }
    .exp-bio-image, .exp-bio-content { width: 100%; }
    .exp-bio-image { height: 300px; margin-bottom: 1rem; }

    /* Timeline Vertical */
    .process-timeline { flex-direction: column; gap: 2rem; align-items: flex-start; text-align: left; }
    .step { width: 100%; }
    .step-separator { display: none; }

    /* Contacto Vertical */
    .contact-wrapper { flex-direction: column; }
    .contact-image-container { width: 100%; height: 250px; }
    .contact-form { width: 100%; }
}
/* =========================================
   GALERÍA MODAL (SLIDER)
   ========================================= */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 10000; /* Encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Fondo negro casi total */
    backdrop-filter: blur(5px);
}

.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}
}

/* Botón Cerrar */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}
.close-modal:hover { color: #bbb; }

/* Botones Navegación */
.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    pointer-events: none; /* Para dar click a través del contenedor */
}

.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: all 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;
}

/* Ajuste cursor pointer en tarjetas */
.service-card { cursor: pointer; }

/* RESPONSIVE MODAL */
@media (max-width: 768px) {
    .close-modal { top: 10px; right: 20px; font-size: 30px; }
    .prev-btn, .next-btn { padding: 0.8rem; font-size: 1rem; }
    .modal-nav { padding: 0 10px; }
}
