/* ==========================================================================
   CSS PRINCIPAL - ONCE:ONCE PILATES STUDIO (SANTUARIO ETÉREO)
   Optimizado para Instagram WebView & iOS Native Experience
   ========================================================================== */

/* variables del sistema de diseño (tokens) */
:root {
    /* colores principales */
    --color-bg-base: hsl(160, 46%, 7%);       /* verde bosque profundo #0A1C16 */
    --color-bg-stone: hsl(160, 3%, 11%);       /* piedra oscuro #1B1D1C */
    --color-gold: hsl(35, 50%, 78%);           /* dorado mas claro y visible */
    --color-gold-hover: hsl(35, 55%, 85%);     /* dorado hover */
    --color-text-light: hsl(40, 31%, 96%);     /* blanco roto #F9F6F0 */
    --color-text-muted: hsla(40, 31%, 96%, 0.6); /* texto con opacidad */
    
    /* colores de tarjetas (paquetes) */
    --color-sapphire: hsl(215, 51%, 11%);      /* azul zafiro profundo #0E1A2B */
    --color-emerald: hsl(155, 62%, 10%);       /* verde esmeralda profundo #0A2B1D */
    
    /* cristales para glassmorphism */
    --glass-bg: hsla(160, 3%, 11%, 0.65);
    --glass-border: hsla(0, 0%, 100%, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    
    /* fuentes */
    --font-serif: 'Cinzel', Playfair Display, serif;
    --font-sans: 'Plus Jakarta Sans', Inter, sans-serif;
    
    /* transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* safe areas para iphone */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* 1. RESET & NATIVE OPTIMIZATIONS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* elimina caja gris táctil en iOS */
}

html, body {
    width: 100%;
    min-height: 100%;
    height: auto;
    background-color: var(--color-bg-base);
    color: var(--color-text-light);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: auto !important; /* requerido para lenis */
}

body {
    overscroll-behavior-y: auto; /* Permitir scroll y rebote natural de la página en móvil */
    position: relative;
    font-weight: 300;
}

/* tipografía global */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    outline: none;
}

/* 2. LENIS SMOOTH SCROLL RECOMMENDATIONS */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* 3. HEADER PERSISTENTE */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 28, 22, 0.9) 0%, rgba(10, 28, 22, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.03);
    padding-top: calc(var(--safe-top) + 0.75rem); /* ajuste safe area notch */
    padding-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: var(--header-scrolled-bg, hsla(160, 46%, 7%, 0.95));
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo .logo-link {
    display: flex;
    align-items: center;
}

/* Logo de Once:Once en cabecera */
.header-logo-img {
    height: clamp(28px, 6vw, 36px);
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    will-change: transform;
}

.logo-link:hover .header-logo-img {
    transform: scale(1.04);
    opacity: 0.9;
}

.logo-link:active .header-logo-img {
    transform: scale(0.95);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 2.5vw, 1.25rem);
}

/* targets táctiles >= 44px */
.nav-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-light);
    transition: var(--transition-fast);
    position: relative;
}

.nav-icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 100%, 0.05);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.nav-icon-btn:active::before,
.nav-icon-btn:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav-icon-btn svg {
    transition: var(--transition-fast);
}

.nav-icon-btn:hover svg {
    transform: scale(1.08);
    color: var(--color-gold);
}

.nav-icon-btn:active svg {
    transform: scale(0.9);
}

.whatsapp-btn {
    color: hsl(142, 70%, 45%);
}

.whatsapp-btn:hover svg {
    color: hsl(142, 75%, 50%);
}

.nav-cta-btn {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
    display: block;
    min-height: 40px; /* touch height */
    line-height: 24px;
    will-change: transform;
}

.nav-cta-btn:hover {
    transform: translateY(-1px) scale(1.02);
    background-color: var(--color-gold-hover);
    box-shadow: 0 6px 15px rgba(197, 168, 128, 0.35);
}

.nav-cta-btn:active {
    transform: translateY(0) scale(0.96);
}

.nav-text-link {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(249, 246, 240, 0.2);
    background-color: rgba(249, 246, 240, 0.03);
    transition: var(--transition-fast);
    min-height: 40px;
    display: flex;
    align-items: center;
    line-height: 1;
    will-change: transform;
}

.nav-text-link:hover {
    transform: translateY(-1px) scale(1.02);
    background-color: rgba(249, 246, 240, 0.1);
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

.nav-text-link:active {
    transform: translateY(0) scale(0.96);
}

@media (max-width: 576px) {
    .header-container {
        width: 94%; /* Ancho óptimo para dar aire a los lados */
        display: flex;
        justify-content: space-between; /* Distribuye los 6 elementos de forma totalmente uniforme */
        align-items: center;
    }
    
    /* Promover todos los elementos hijos (Logo + 5 botones) al contenedor principal */
    .header-logo, 
    .header-nav {
        display: contents;
    }
    
    .header-logo-img {
        height: 20px; /* Logo sutil y del mismo peso visual que el resto */
    }
    
    .nav-cta-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.62rem;
        min-height: 32px;
        line-height: 16px;
        letter-spacing: 0.05em;
    }
    
    .nav-text-link {
        display: flex;
        padding: 0.4rem 0.6rem;
        font-size: 0.62rem;
        min-height: 32px;
        line-height: 16px;
        letter-spacing: 0.05em;
    }
    
    .nav-icon-btn {
        width: 32px;
        height: 32px;
    }
}

/* 4. MENÚ OVERLAY LATERAL */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 200;
    background-color: rgba(10, 28, 22, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 360px;
    height: 100%;
    background-color: var(--color-bg-stone);
    border-left: 1px solid var(--glass-border);
    padding: calc(var(--safe-top) + 2rem) 2rem calc(var(--safe-bottom) + 2rem) 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

.close-menu-btn {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: hsla(0, 0%, 100%, 0.05);
    margin-bottom: 2rem;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-link-item {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-text-light);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.03);
    padding-bottom: 0.5rem;
}

.menu-link-item:hover, .menu-link-item:active {
    color: var(--color-gold);
    padding-left: 8px;
}

.menu-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

/* 5. HERO SECTION CINEMÁTICO */
.hero-section {
    position: relative;
    isolation: isolate; /* Sella el contexto de apilamiento: nada de aquí dentro se escapa hacia el body */
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0; /* Ya no necesita ser negativo: isolation lo contiene */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}

.hero-carousel-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: var(--color-bg-base); /* Respaldo mientras carga la primera imagen */
}

.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: etherealCrossfade 48s infinite;
}

/* Clase dinámica gestionada por JS para optimizar GPU en Safari */
.carousel-img.is-animating {
    will-change: transform, opacity;
}

/* Retrasos escalonados para cada imagen (6s de diferencia para 8 imágenes) */
.carousel-img:nth-child(1) { animation-delay: 0s; }
.carousel-img:nth-child(2) { animation-delay: 6s; }
.carousel-img:nth-child(3) { animation-delay: 12s; }
.carousel-img:nth-child(4) { animation-delay: 18s; }
.carousel-img:nth-child(5) { animation-delay: 24s; }
.carousel-img:nth-child(6) { animation-delay: 30s; }
.carousel-img:nth-child(7) { animation-delay: 36s; }
.carousel-img:nth-child(8) { animation-delay: 42s; }

/* La animación controlada por GPU (Crossfade + Ken Burns) para 8 imágenes en 48s total */
@keyframes etherealCrossfade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    12.5% { opacity: 1; transform: scale(1.03); }
    17.5% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(3, 4, 3, 0.1) 0%,         /* Casi transparente abajo para dejar brillar la luz verde */
        rgba(3, 4, 3, 0) 30%,        /* Centro transparente para lucir las fotos */
        rgba(3, 4, 3, 0) 60%,        /* Centro transparente para lucir las fotos */
        rgba(3, 4, 3, 0.6) 100%      /* Header oscuro para legibilidad del menú */
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 2; /* Por encima del fondo y del overlay */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-badge {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2rem, 7.5vw, 4.2rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-text-light);
}

.highlight-serif {
    color: var(--color-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

.hero-actions {
    margin-top: 1rem;
}

/* CTA principal micro-animado */
.primary-cta-btn {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    padding: 1.05rem 2.1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-height: 48px;
    overflow: hidden;
    will-change: transform;
}

.primary-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.primary-cta-btn:hover::before,
.primary-cta-btn:active::before {
    left: 100%;
}

.primary-cta-btn:active {
    transform: scale(0.96) translate3d(0, 2px, 0);
    background-color: var(--color-gold-hover);
}

.cta-arrow {
    transition: var(--transition-fast);
}

.primary-cta-btn:hover .cta-arrow,
.primary-cta-btn:active .cta-arrow {
    transform: translate3d(4px, 0, 0);
}

/* safe-area indicator */
.safe-area-indicator {
    position: absolute;
    bottom: calc(var(--safe-bottom) + 1.5rem);
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.safe-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 50%;
    animation: blinkIndicator 1.5s infinite alternate ease-in-out;
}

/* 6. SECCIÓN DE DISCIPLINAS (Fotos Reales de Once:Once) */
.disciplines-section {
    padding: 6rem 1.5rem;
    background-color: var(--color-bg-stone);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.disciplines-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media(min-width: 768px) {
    .disciplines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media(min-width: 1024px) {
    .disciplines-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem; /* Ajustado para que quepan las 5 disciplinas perfectamente */
    }
}

.discipline-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--glass-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.discipline-card:hover {
    transform: translate3d(0, -8px, 0);
    border-color: rgba(197, 168, 128, 0.2);
}

.discipline-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Mantiene exactamente la proporción del crop vertical del usuario */
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.discipline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.discipline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(27, 29, 28, 0.7) 0%, transparent 60%);
    z-index: 1;
}

.discipline-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    z-index: 2;
    text-transform: uppercase;
}

.discipline-info {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: space-between;
}

.discipline-name {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.discipline-tagline {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-gold);
    font-style: italic;
    margin-top: -4px;
}

.discipline-text {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0.5rem 0 1rem 0;
}

.discipline-cta-btn {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-gold);
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
    text-transform: uppercase;
    min-height: 40px;
    line-height: 20px;
}

.discipline-cta-btn:active, .discipline-cta-btn:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
}

/* 7. FILOSOFÍA Y BENEFICIOS */
.philosophy-section {
    padding: 6rem 1.5rem;
    background-color: var(--color-bg-base);
    position: relative;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

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

/* Tarjetas de beneficio - Patrón de content-card cálido */
.benefit-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(197, 168, 128, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 28px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(187, 138, 95, 0.05);
    transition: var(--transition-smooth);
    will-change: transform, opacity;
}

.benefit-card:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(197, 168, 128, 0.35);
    box-shadow: 0 15px 35px rgba(187, 138, 95, 0.08);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(199, 220, 150, 0.25); /* Butterfly green translúcido */
    border: 1px solid rgba(197, 168, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C4C3B; /* verde oscuro cálido */
    margin-bottom: 1.5rem;
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #3A3128; /* marrón oscuro cálido, no gris frío */
}

.benefit-text {
    color: rgba(58, 49, 40, 0.85); /* marrón oscuro translúcido */
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Patrón de tarjetas generales de contenido para coherencia del sitio */
.content-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid rgba(197, 168, 128, 0.15);
    color: #3A3128;
    box-shadow: 0 10px 30px rgba(187, 138, 95, 0.05);
}

.content-card .card-title {
    color: #3A3128;
}

.content-card .card-text {
    color: rgba(58, 49, 40, 0.85);
}

.content-card--dark {
    background: #3A3128; /* marrón oscuro cálido, no gris frío */
    color: #FFFDFB;
}

.content-card--dark .card-title {
    color: var(--color-gold);
}

.content-card--dark .card-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Bloque Detalle de Estudio */
.studio-detail-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 4rem;
}

@media(min-width: 768px) {
    .studio-detail-block {
        grid-template-columns: 1.2fr 1fr;
    }
}

.studio-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* Cambiado a 4/5 para lucir perfecto con la foto vertical real */
    border: 1px solid var(--glass-border);
}

.studio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-image-wrapper:hover .studio-img {
    transform: scale(1.04);
}

.studio-text-card {
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
}

/* Glass panel global */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--glass-shadow);
}

.card-tag {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 8. SECCIÓN PAQUETES Y PRECIOS */
.packages-section {
    padding: 6rem 1.5rem;
    background-color: var(--color-bg-stone);
    position: relative;
}

/* Pestañas de Paquetes */
.packages-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.packages-tabs .tab-btn {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    background-color: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.packages-tabs .tab-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.packages-tabs .tab-btn.active {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg-base);
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.packages-grid.hidden {
    display: none !important;
}

@media(min-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width: 1200px) {
    .packages-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        max-width: 1200px;
    }
}

/* Tarjeta Paquete */
.package-card {
    position: relative;
    border-radius: 24px;
    padding: 3.5rem 2.5rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35); /* Cristal traslúcido leve */
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.45); /* Borde de cristal brillante */
    box-shadow: 0 15px 35px rgba(10, 30, 20, 0.03);
    transition: var(--transition-smooth);
    will-change: transform;
    color: #0A1C16; /* Verde oscuro profundo de la marca para legibilidad extrema */
}

.package-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 20px 45px rgba(10, 30, 20, 0.07);
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.65);
}

/* Sapphire Card - Variante Oscura de Contraste */
.sapphire-card {
    background: rgba(10, 28, 22, 0.45); /* Cristal oscuro traslúcido */
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border-color: rgba(255, 255, 255, 0.12);
    color: #FFFDFB;
}

.sapphire-card:hover {
    border-color: rgba(197, 168, 128, 0.45);
    box-shadow: 0 20px 45px rgba(58, 49, 40, 0.2);
}

.sapphire-card .package-name,
.sapphire-card .price-amount,
.sapphire-card .package-features li {
    color: #FFFDFB;
}

.sapphire-card .price-currency {
    color: var(--color-gold);
}

.sapphire-card .price-period,
.sapphire-card .price-sub {
    color: rgba(255, 255, 255, 0.7);
}

.sapphire-card .package-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
    border-color: rgba(255, 255, 255, 0.15);
}

.sapphire-card .check-icon {
    color: var(--color-gold);
}

.sapphire-card .btn-sapphire {
    background-color: var(--color-gold);
    color: #3A3128;
    border-color: var(--color-gold);
}

.sapphire-card .btn-sapphire:hover,
.sapphire-card .btn-sapphire:active {
    background-color: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* Emerald Card - Variante Clara con Acentos Verdes */
.emerald-card {
    background: rgba(255, 255, 255, 0.35); /* Cristal traslúcido leve */
    border-color: rgba(255, 255, 255, 0.45);
    color: #0A1C16;
}

.emerald-card:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(199, 220, 150, 0.65);
    box-shadow: 0 20px 45px rgba(10, 30, 20, 0.07);
}

.emerald-card .package-name,
.emerald-card .price-amount,
.emerald-card .package-features li {
    color: #3A3128;
}

.emerald-card .price-currency {
    color: #2C4C3B;
}

.emerald-card .price-period,
.emerald-card .price-sub {
    color: rgba(58, 49, 40, 0.7);
}

.emerald-card .package-badge {
    background-color: rgba(199, 220, 150, 0.25);
    color: #2C4C3B;
    border-color: rgba(199, 220, 150, 0.4);
}

.emerald-card .check-icon {
    color: #2C4C3B;
}

.emerald-card .package-btn {
    background-color: #2C4C3B;
    color: #FFFDFB;
    border-color: #2C4C3B;
}

.emerald-card .package-btn:hover,
.emerald-card .package-btn:active {
    background-color: transparent;
    color: #2C4C3B;
    border-color: #2C4C3B;
}

/* Gold Card - Variante Clara con Acentos Rosas */
.gold-card {
    background: rgba(255, 255, 255, 0.35); /* Cristal traslúcido leve */
    border-color: rgba(255, 255, 255, 0.45);
    color: #0A1C16;
}

.gold-card:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(243, 175, 192, 0.65);
    box-shadow: 0 20px 45px rgba(10, 30, 20, 0.07);
}

.gold-card .package-name,
.gold-card .price-amount,
.gold-card .package-features li {
    color: #3A3128;
}

.gold-card .price-currency {
    color: #C57E8F;
}

.gold-card .price-period,
.gold-card .price-sub {
    color: rgba(58, 49, 40, 0.7);
}

.gold-card .package-badge {
    background-color: rgba(243, 175, 192, 0.25);
    color: #C57E8F;
    border-color: rgba(243, 175, 192, 0.4);
}

.gold-card .check-icon {
    color: #C57E8F;
}

.gold-card .package-btn {
    background-color: #C57E8F;
    color: #FFFDFB;
    border-color: #C57E8F;
}

.gold-card .package-btn:hover,
.gold-card .package-btn:active {
    background-color: transparent;
    color: #C57E8F;
    border-color: #C57E8F;
}


.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.package-card:hover .card-glow {
    transform: translate3d(10%, 10%, 0);
}

.package-header {
    margin-bottom: 2rem;
}

.package-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    background-color: hsla(0, 0%, 100%, 0.06);
    color: var(--color-gold);
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.package-name {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-currency {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-gold);
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.price-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.8;
    margin-top: 0.25rem;
    display: block;
}

.package-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.check-icon {
    color: var(--color-gold);
    flex-shrink: 0;
}

.package-action {
    width: 100%;
}

.package-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    min-height: 44px;
    display: block;
    line-height: 20px;
}

.btn-sapphire {
    background-color: transparent;
    border: 1px solid rgba(197, 168, 128, 0.5);
    color: var(--color-text-light);
}

.btn-sapphire:active, .btn-sapphire:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    border-color: var(--color-gold);
}

.btn-emerald {
    background-color: var(--color-gold);
    color: var(--color-bg-base);
}

.btn-emerald:active, .btn-emerald:hover {
    background-color: var(--color-gold-hover);
}

/* 9. SECCIÓN MERCH */
.merch-section {
    padding: 6rem 1.5rem;
    background-color: var(--color-bg-base);
}

.merch-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 2rem;
}

.merch-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 1rem;
    cursor: grab;
}

.merch-carousel::-webkit-scrollbar {
    display: none; /* Safari / Chrome */
}

.merch-card {
    flex: 0 0 85%;
    max-width: 380px;
    scroll-snap-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--glass-shadow);
    transition: var(--transition-smooth);
}

@media(min-width: 768px) {
    .merch-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

.merch-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.merch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.merch-tag-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background-color: rgba(10, 28, 22, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-gold);
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.merch-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    color: var(--color-text-light);
}

.product-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-gold);
}

.buy-cta-btn {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 12px;
    transition: var(--transition-fast);
    min-height: 38px;
    line-height: 20px;
}

.buy-cta-btn:active, .buy-cta-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-base);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.indicator {
    width: 6px;
    height: 6px;
    background-color: hsla(0, 0%, 100%, 0.15);
    border-radius: 50%;
    transition: var(--transition-fast);
    cursor: pointer;
}

.indicator.active {
    width: 20px;
    background-color: var(--color-gold);
    border-radius: 4px;
}

/* 10. SECCIÓN CONTACTO */
.contact-section {
    padding: 6rem 1.5rem;
    background-color: var(--color-bg-stone);
    border-top: 1px solid var(--glass-border);
}

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

@media(min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.contact-intro {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: hsla(0, 0%, 100%, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    flex-shrink: 0;
}

.contact-text h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.contact-link {
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: hsla(0, 0%, 100%, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.social-icon-btn:active, .social-icon-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translate3d(0, -3px, 0);
    background-color: hsla(160, 46%, 10%, 0.5);
}

/* Mapa Estilizado */
.contact-map {
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(92%) contrast(110%) brightness(85%) hue-rotate(110deg);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.map-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(10, 28, 22, 0.6) 0%, rgba(27, 29, 28, 0.85) 100%);
    position: absolute;
    top: 0;
    left: 0;
    padding: 2rem;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.map-circle-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.08) 0%, transparent 70%);
    animation: mapPulse 3s infinite ease-in-out;
}

.map-marker {
    margin-bottom: 1rem;
    animation: bounceMarker 2s infinite ease-in-out;
}

.map-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.map-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    transition: var(--transition-fast);
    pointer-events: auto;
}

.map-btn:active, .map-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-base);
}

.main-footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 3rem 1.5rem calc(var(--safe-bottom) + 2rem) 1.5rem; /* safe-area bottom para barra de inicio iOS */
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45) !important;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media(min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.45) !important;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.25) !important;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--color-gold) !important;
}

/* 12. CONTENEDORES MODALES - CRITICAL WebView iOS */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* dvh evita ser tapado por barras de control */
    z-index: 300;
    display: flex;
    align-items: flex-end; /* Abre desde abajo tipo bottom-sheet */
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

@media(min-width: 768px) {
    .modal-wrapper {
        align-items: center; /* En tablet/desktop centrado tradicional */
    }
}

.modal-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 28, 22, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.modal-container {
    width: 100%;
    max-height: 85dvh; /* altura máxima del modal */
    background-color: var(--color-bg-stone);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    transform: translate3d(0, 100%, 0); /* entra desde abajo */
    transition: var(--transition-smooth);
    
    /* PREVENCIÓN DE SCROLL CHAINING (FUGA) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* suavidad tactil */
    overscroll-behavior: contain; /* detiene la cadena */
    
    padding-bottom: calc(var(--safe-bottom) + 1.5rem); /* espacio para barra de inicio */
}

@media(min-width: 768px) {
    .modal-container {
        width: 90%;
        max-width: 680px;
        border-radius: 28px;
        border-bottom: 1px solid var(--glass-border);
        transform: translate3d(0, 40px, 0);
        padding-bottom: 2rem;
    }
}

.modal-wrapper.active .modal-container {
    transform: translate3d(0, 0, 0);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background-color: var(--color-bg-stone);
    z-index: 10;
}

.modal-tag {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    font-weight: 600;
}

.modal-title {
    font-size: 1.4rem;
    margin-top: 0.25rem;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: hsla(0, 0%, 100%, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.close-modal-btn:active {
    transform: scale(0.9);
    background-color: hsla(0, 0%, 100%, 0.08);
}

.modal-body {
    padding: 1.25rem 1rem;
    flex-grow: 1;
}

@media(min-width: 576px) {
    .modal-body {
        padding: 1.5rem 2rem;
    }
}

/* Pestañas de Reserva (Reformer / Tapetes) */
.booking-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.booking-tab-btn {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background-color: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.booking-tab-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.booking-tab-btn.active {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg-base);
}

/* 12. RESERVAS / WEEKLY CALENDAR GRID */
.week-selector {
    margin-bottom: 2rem;
    width: 100%;
}

.week-days {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.week-days::-webkit-scrollbar {
    display: none;
}

.week-day-btn {
    flex: 1;
    min-width: 48px;
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    background-color: hsla(0, 0%, 100%, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.week-day-btn:active {
    transform: scale(0.95);
}

.day-name {
    font-size: 0.6rem;
    color: var(--color-text-muted);
}

.day-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.week-day-btn.active {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.week-day-btn.active .day-name {
    color: var(--color-bg-base);
    font-weight: 700;
}

.week-day-btn.active .day-num {
    color: var(--color-bg-base);
}

/* Días pasados de la semana — bloqueados visualmente */
.week-day-btn.day-past {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
}
.week-day-btn.day-past .day-name,
.week-day-btn.day-past .day-num {
    color: var(--color-text-muted);
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-slot {
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

@media(min-width: 576px) {
    .session-slot {
        padding: 1.25rem 1.5rem;
        gap: 1.5rem;
    }
}

.session-slot:hover {
    border-color: rgba(197, 168, 128, 0.15);
}

.slot-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.time-hour {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-light);
    line-height: 1;
}

.time-ampm {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.slot-info {
    flex-grow: 1;
}

.class-name {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.instructor-name {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.availability-badge {
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-block;
}

.availability-badge.available {
    color: hsl(142, 60%, 45%);
}

.availability-badge.warning {
    color: hsl(38, 85%, 50%);
}

.availability-badge.full {
    color: hsl(355, 70%, 50%);
}

.availability-badge.past {
    color: hsla(0, 0%, 100%, 0.3);
    font-style: italic;
}

.action-btn-agendar {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    min-height: 38px;
    line-height: 20px;
    white-space: nowrap;
}

@media(min-width: 576px) {
    .action-btn-agendar {
        font-size: 0.75rem;
        padding: 0.6rem 1.2rem;
    }
}

.action-btn-agendar:active {
    transform: scale(0.95);
    background-color: var(--color-gold-hover);
}

.action-btn-agendar.disabled {
    background-color: hsla(0, 0%, 100%, 0.05) !important;
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted) !important;
    cursor: not-allowed;
}

/* Clase horario pasado (ya no disponible hoy) */
.session-slot.past-class {
    opacity: 0.45;
    filter: grayscale(0.4);
    pointer-events: none; /* bloquea cualquier interacción */
    position: relative;
}
.session-slot.past-class::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        hsla(0, 0%, 0%, 0.06) 8px,
        hsla(0, 0%, 0%, 0.06) 9px
    );
    pointer-events: none;
}

/* 13. COMPRA MERCH MODAL DESIGN */
.merch-modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 576px) {
    .merch-modal-body {
        grid-template-columns: 1fr 1.2fr;
    }
}

.merch-modal-gallery {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--glass-border);
}

.merch-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merch-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.modal-product-price {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.modal-product-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.merch-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.talla-selector {
    display: flex;
    gap: 8px;
}

.talla-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-color: hsla(0, 0%, 100%, 0.02);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.talla-btn.active, .talla-btn:active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background-color: hsla(35, 39%, 64%, 0.05);
}

.checkout-btn {
    width: 100%;
    padding: 1.1rem;
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
}

.checkout-btn:active {
    transform: scale(0.97);
    background-color: var(--color-gold-hover);
}

.checkout-hint {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* 14. TOAST NOTIFICATION (GPU) */
.toast-notification {
    position: fixed;
    top: calc(var(--safe-top) + 1.5rem);
    left: 50%;
    transform: translate3d(-50%, -100px, 0); /* oculto arriba */
    z-index: 400;
    width: 90%;
    max-width: 380px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.toast-notification.active {
    transform: translate3d(-50%, 0, 0);
    opacity: 1;
}

.toast-content {
    background: rgba(10, 28, 22, 0.95);
    border: 1px solid var(--color-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-text h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-text p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   15. ANIMATIONS & REVEAL SYSTEM (Intersection Observer)
   ========================================================================== */

/* fade up en hero */
.animate-fade-up {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up-delayed {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.animate-fade-up-more {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* slow zoom hero bg */
@keyframes slowZoom {
    to {
        transform: scale(1.01);
    }
}

@keyframes blinkIndicator {
    to {
        opacity: 0.3;
    }
}

@keyframes mapPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

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

/* Revelación por scroll (Intersection Observer) */
.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   16. AUTHENTICATION & ACCOUNT DASHBOARD MODALS
   ========================================================================== */

/* Formularios de Autenticación */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem 0;
}

.auth-form.hidden {
    display: none !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--color-text-base);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    outline: none;
    background-color: rgba(255, 255, 255, 0.07);
}

.form-group textarea {
    resize: none;
}

.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 2.75rem !important; /* dejar espacio para el ojito */
}

.toggle-password-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted, #888);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: var(--transition-fast);
    opacity: 0.7;
    z-index: 5;
}

.toggle-password-btn:hover {
    opacity: 1;
    color: var(--color-gold, #C5A880);
}

.toggle-password-btn svg {
    display: block;
}

.auth-submit-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background-color: var(--color-gold);
    color: var(--color-bg-base);
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    background-color: #dcbfa0;
    transform: translateY(-2px);
}

.auth-switch {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.auth-switch a {
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: underline;
}

/* Panel de Cuenta y Dashboard Admin */
.account-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-panel.hidden {
    display: none !important;
}

.user-profile-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-profile-summary p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.user-profile-summary strong {
    color: var(--color-text-base);
}

.panel-section-title {
    font-family: var(--font-title);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

/* Tabla de Reservas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.account-table th,
.account-table td {
    padding: 0.9rem 0.75rem;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-table th {
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.account-table td {
    color: var(--color-text-base);
}

.table-loading {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    padding: 2rem 0 !important;
}

.no-bookings-msg {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 0 !important;
}

/* Badges de Pago */
.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-badge.pending {
    background-color: rgba(220, 160, 50, 0.12);
    color: #e0a540;
    border: 1px solid rgba(220, 160, 50, 0.2);
}

.status-badge.confirmed {
    background-color: rgba(197, 168, 128, 0.12);
    color: var(--color-gold);
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.status-badge.rejected {
    background-color: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Botones del Tablero */
.action-confirm-btn {
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-confirm-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-base);
}

.action-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

#admin-link-container {
    display: contents;
}

.admin-dashboard-btn {
    background-color: #2C4C3B; /* Verde oliva elegante de la marca */
    border: 1px solid #2C4C3B;
    color: #FFFDFB;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
    text-align: center;
    line-height: 1; /* Nivelar con el botón de logout */
}

.admin-dashboard-btn:hover {
    background-color: #3e6852;
    border-color: #3e6852;
    transform: translateY(-1px);
}

.logout-btn {
    background-color: rgba(200, 60, 60, 0.1);
    border: 1px solid rgba(200, 60, 60, 0.2);
    color: #ff5050;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1; /* Nivelar con el botón de admin */
}

.logout-btn:hover {
    background-color: rgba(200, 60, 60, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   PALETA "NUDES" (Tono Tierra / Crema Reversible)
   ========================================================================== */
.theme-nude {
    /* Mapeo de variables principales */
    --color-bg-base: transparent;
    --color-bg-stone: transparent;
    
    --color-text-light: #1A1A1A;
    --color-text-muted: rgba(26, 26, 26, 0.7);
    
    --color-gold: #BB8A5F;
    --color-gold-hover: #D5A277;
    
    --glass-bg: rgba(255, 246, 235, 0.55); /* Un blanco/nude muy translúcido */
    --glass-border: rgba(197, 168, 128, 0.3); /* Un borde dorado sutil */
    --glass-shadow: rgba(187, 138, 95, 0.15);
    
    --header-scrolled-bg: rgba(255, 237, 215, 0.95);
    --menu-panel-bg: #F3D4B5;
    --modal-container-bg: rgba(255, 246, 235, 0.85); /* Glassmorphism para el modal */

    /* EL DEGRADADO DE SCROLL PURE CSS */
    background: linear-gradient(
        to bottom,
        #FFEDD7 0%,    /* Inicio: Muy claro */
        #F3D4B5 20%,
        #E7BC91 50%,   /* Medio: Tono intermedio */
        #D5A277 80%,
        #BB8A5F 100%   /* Final de la página: Oscuro/Tierra */
    ) !important;
    
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: scroll; 
    color: #1A1A1A;
}

/* Modificadores específicos para contraste en modo Nude */
.theme-nude .scroll-reveal h2,
.theme-nude .scroll-reveal p,
.theme-nude .section-title,
.theme-nude .section-description,
.theme-nude .discipline-name,
.theme-nude .discipline-text,
.theme-nude .benefit-title,
.theme-nude .benefit-text,
.theme-nude .card-title,
.theme-nude .card-text,
.theme-nude .contact-info h3,
.theme-nude .contact-info p,
.theme-nude .contact-info a,
.theme-nude .footer-legal,
.theme-nude .footer-rights {
    color: #1A1A1A !important;
}

.theme-nude .section-tag,
.theme-nude .card-tag {
    color: #BB8A5F !important;
}

.theme-nude .map-iframe {
    filter: grayscale(40%) contrast(100%) brightness(95%) !important;
    opacity: 0.75 !important;
}

.theme-nude .map-overlay {
    background: radial-gradient(circle at center, rgba(255, 237, 215, 0.1) 0%, rgba(213, 162, 119, 0.45) 100%) !important;
}

/* Tarjetas de Membresía (Glassmorphism en Nude) */
.theme-nude .package-card {
    background: rgba(255, 246, 235, 0.55) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 168, 128, 0.3) !important;
    color: #1A1A1A !important;
    box-shadow: 0 15px 35px rgba(187, 138, 95, 0.1) !important;
}

.theme-nude .package-card .package-name,
.theme-nude .package-card .price-amount,
.theme-nude .package-card .price-currency,
.theme-nude .package-card .package-features li {
    color: #1A1A1A !important;
}

.theme-nude .package-card .price-period,
.theme-nude .package-card .price-sub {
    color: rgba(26, 26, 26, 0.7) !important;
}

.theme-nude .package-card .package-badge {
    background-color: rgba(187, 138, 95, 0.15) !important;
    color: #BB8A5F !important;
    border-color: rgba(187, 138, 95, 0.3) !important;
}

.theme-nude .package-card .check-icon {
    color: #BB8A5F !important;
}

.theme-nude .package-card .package-btn {
    background-color: #1A1A1A !important;
    color: #F9F6F0 !important;
    border-color: #1A1A1A !important;
}

.theme-nude .package-card .package-btn:hover,
.theme-nude .package-card .package-btn:active {
    background-color: transparent !important;
    color: #1A1A1A !important;
    border-color: #1A1A1A !important;
}

/* Tarjeta de Contacto (Glassmorphism en Nude) */
.theme-nude .contact-info {
    background: rgba(255, 246, 235, 0.55) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 168, 128, 0.3) !important;
    color: #1A1A1A !important;
    padding: 2.5rem 2rem !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(187, 138, 95, 0.1) !important;
}

/* Ajustes de menú lateral en Nude */
.theme-nude .menu-panel {
    background-color: var(--menu-panel-bg) !important;
    color: #1A1A1A !important;
}

.theme-nude .menu-link {
    color: #1A1A1A !important;
}

.theme-nude .menu-link:hover {
    color: #BB8A5F !important;
}

/* Ajustes de modales en Nude (Glassmorphism) */
.theme-nude .modal-container {
    background: rgba(255, 246, 235, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 168, 128, 0.3) !important;
    color: #1A1A1A !important;
    box-shadow: 0 -15px 40px rgba(187, 138, 95, 0.25) !important;
}

.theme-nude .modal-title,
.theme-nude .class-name,
.theme-nude .instructor-name,
.theme-nude .time-hour,
.theme-nude .time-ampm,
.theme-nude .availability-badge,
.theme-nude .modal-body label,
.theme-nude .auth-switch-text {
    color: #1A1A1A !important;
}

.theme-nude .modal-body input {
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: #1A1A1A !important;
    border-color: rgba(197, 168, 128, 0.5) !important;
}

.theme-nude .modal-body input:focus {
    border-color: #BB8A5F !important;
    box-shadow: 0 0 8px rgba(187, 138, 95, 0.25) !important;
}

.theme-nude .btn-profile {
    color: #1A1A1A !important;
}

.theme-nude .btn-profile.logged-in {
    background-color: #BB8A5F !important;
    color: #FFEDD7 !important;
}

/* Ajustes de contraste para botones y selectores en Nude */
.theme-nude .nav-cta-btn,
.theme-nude .primary-cta-btn,
.theme-nude .booking-tab-btn,
.theme-nude .week-day-btn,
.theme-nude .action-btn-agendar,
.theme-nude .package-btn,
.theme-nude .tab-btn,
.theme-nude .discipline-cta-btn,
.theme-nude .auth-submit-btn,
.theme-nude .map-btn {
    --color-bg-base: #1A1A1A;
    color: #1A1A1A;
}

/* Forzar contraste en hover/active/estados de seleccion */
.theme-nude .nav-cta-btn:hover,
.theme-nude .primary-cta-btn:hover,
.theme-nude .primary-cta-btn:active,
.theme-nude .booking-tab-btn:hover,
.theme-nude .booking-tab-btn.active,
.theme-nude .week-day-btn:hover,
.theme-nude .week-day-btn.active,
.theme-nude .week-day-btn.active .day-name,
.theme-nude .week-day-btn.active .day-num,
.theme-nude .action-btn-agendar:hover,
.theme-nude .action-btn-agendar:active,
.theme-nude .tab-btn:hover,
.theme-nude .tab-btn.active,
.theme-nude .discipline-cta-btn:hover,
.theme-nude .discipline-cta-btn:active,
.theme-nude .auth-submit-btn:hover,
.theme-nude .auth-submit-btn:active,
.theme-nude .map-btn:hover,
.theme-nude .map-btn:active {
    background-color: #C5A880 !important;
    color: #1A1A1A !important;
    border-color: #C5A880 !important;
    transition: all 0.3s ease;
}

/* Sileo Notifications Override */
.sileo-viewport { z-index: 99999 !important; }


/* Coming Soon Styles - Estilo Glass Panel */
.merch-coming-soon {
    width: 100%;
    text-align: center;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(180, 140, 150, 0.12);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 800px;
    color: #3A3128;
}
.coming-soon-title {
    font-family: var(--font-primary);
    color: #BB8A5F;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}
.coming-soon-desc {
    color: rgba(58, 49, 40, 0.85);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === SISTEMA DE CONTENCIÓN GLASS PANEL === */
.glass-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(180, 140, 150, 0.12);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  z-index: 1;
  color: #3A3128;
}

/* Forzar legibilidad de los textos dentro de un glass-panel claro */
.glass-panel .section-title,
.glass-panel .section-description,
.glass-panel .contact-title,
.glass-panel .contact-intro,
.glass-panel .contact-details,
.glass-panel .contact-item,
.glass-panel .contact-info,
.glass-panel h2,
.glass-panel h4,
.glass-panel p,
.glass-panel a,
.glass-panel .contact-intro p,
.glass-panel .contact-item p,
.glass-panel .contact-text h4,
.glass-panel .contact-text p,
.glass-panel .contact-link {
    color: #3A3128 !important;
}

.glass-panel .section-tag {
    color: #BB8A5F !important;
}

/* Estilo de iconos y tabs dentro de un glass-panel para evitar invisibilidad */
.glass-panel .contact-icon {
    background-color: rgba(199, 220, 150, 0.25) !important; /* Butterfly green */
    border-color: rgba(197, 168, 128, 0.3) !important;
    color: #2C4C3B !important;
}

.glass-panel .packages-tabs .tab-btn {
    border-color: rgba(58, 49, 40, 0.25) !important;
    color: rgba(58, 49, 40, 0.6) !important;
}

.glass-panel .packages-tabs .tab-btn:hover {
    border-color: #3A3128 !important;
    color: #3A3128 !important;
}

.glass-panel .packages-tabs .tab-btn.active {
    background-color: #3A3128 !important;
    border-color: #3A3128 !important;
    color: #FFFDFB !important;
}

/* Variante para texto sobre fondos oscuros (ej. sección "RITUAL") */
.glass-panel--on-dark {
  background: rgba(20, 24, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: var(--color-text-light);
}

.glass-panel--on-dark .section-title,
.glass-panel--on-dark .section-description,
.glass-panel--on-dark h2,
.glass-panel--on-dark p {
    color: var(--color-text-light) !important;
}

.glass-panel--on-dark .section-tag {
    color: var(--color-gold) !important;
}

/* Reset/Override para glass-panel dentro de modal-container (zona oscura del modal) */
.modal-container .glass-panel,
.modal-container .session-slot.glass-panel {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    color: var(--color-text-light) !important;
    padding: 1rem 0.75rem !important; /* Respetar padding del slot */
    border-radius: 16px !important;
}

@media(min-width: 576px) {
    .modal-container .glass-panel,
    .modal-container .session-slot.glass-panel {
        padding: 1.25rem 1.5rem !important;
    }
}

.modal-container .glass-panel .class-name,
.modal-container .glass-panel .time-hour,
.modal-container .glass-panel .time-ampm,
.modal-container .session-slot.glass-panel .class-name,
.modal-container .session-slot.glass-panel .time-hour,
.modal-container .session-slot.glass-panel .time-ampm {
    color: var(--color-text-light) !important;
}

.modal-container .glass-panel .instructor-name,
.modal-container .session-slot.glass-panel .instructor-name {
    color: var(--color-text-muted) !important;
}

.modal-container .glass-panel .availability-badge.available,
.modal-container .session-slot.glass-panel .availability-badge.available {
    color: hsl(142, 60%, 45%) !important;
}

.modal-container .glass-panel .availability-badge.warning,
.modal-container .session-slot.glass-panel .availability-badge.warning {
    color: hsl(38, 85%, 50%) !important;
}

.modal-container .glass-panel .availability-badge.full,
.modal-container .session-slot.glass-panel .availability-badge.full {
    color: hsl(355, 70%, 50%) !important;
}

/* === CORRECCIÓN CORTE DURO EN TRANSICIONES === */
.section-dark {
  position: relative;
}
.section-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* === FONDOS TRANSPARENTES PARA DEJAR VER EL PARALLAX === */
.disciplines-section, 
.philosophy-section, 
.packages-section, 
.merch-section, 
.contact-section, 
footer.main-footer { 
    background: transparent !important; 
}


/* === REMOVER BORDES BLANCOS ENTRE SECCIONES === */
.disciplines-section, .philosophy-section, .packages-section, .merch-section, .contact-section, footer.main-footer { border-top: none !important; border-bottom: none !important; }


/* === Z-INDEX FIX PARA SILEO === */
[data-sileo-viewport] { z-index: 999999 !important; }


/* === FONDO AURA CINEMÁTICA CANVAS === */
.main-background {
    position: absolute; /* Evita repintados forzados al cambiar viewport en scroll */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background-color: #030403; /* Color oscuro base de respaldo */
}

.main-background-image {
    position: absolute;
    top: -10vh; /* Centrado relativo al viewport con margen para el parallax */
    left: 0;
    width: 100%;
    height: 120vh; /* Alto fijo relativo al viewport para centrar la imagen en la pantalla inicial */
    background-image: url('./assets/fondo-oficial-estudio.webp');
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    
    /* === RUTA DE COMPOSICIÓN GPU OPTIMIZADA === */
    will-change: transform;
}

/* Capa superpuesta para difuminar perfectamente los bordes rectos de la imagen (laterales y top/bottom) */
.main-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, #030403 0%, #030403 10%, transparent 45%),
        linear-gradient(-90deg, #030403 0%, #030403 10%, transparent 45%),
        linear-gradient(180deg, #030403 0%, transparent 15%),
        linear-gradient(0deg, #030403 0%, transparent 15%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .main-background-image {
        background-size: 130% auto; /* Da holgura (slack) para que el parallax respire en móviles */
    }
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    z-index: -1;
    
    /* === OPTIMIZACIÓN DE RENDIMIENTO (GPU) === */
    will-change: transform;
    transform: translateZ(0);
}

/* === CORRECCION TRANSPARENCIA PARA MESH === */
body, html, main, section, .hero-section, .disciplines-section, .philosophy-section, .packages-section, .merch-section, .contact-section, footer.main-footer {
    background: transparent !important;
}

/* ============================================================
   ADMIN DATE PICKER - ESTILO PREMIUM
   ============================================================ */
.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-header-row .panel-section-title {
    margin-bottom: 0.25rem;
}

.panel-section-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

.admin-date-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--color-gold);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
    min-height: 40px;
    min-width: 130px;
}

.admin-date-input:hover {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.08);
}

.admin-date-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.15);
}

/* Icono del calendario en iOS/Android */
.admin-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.7) sepia(1) saturate(0.3) hue-rotate(5deg);
    opacity: 0.6;
    padding: 4px;
}

.admin-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Para Firefox */
.admin-date-input::-moz-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.7) sepia(1) saturate(0.3) hue-rotate(5deg);
    opacity: 0.6;
}

/* En móviles, el input ocupa todo el ancho */
@media (max-width: 480px) {
    .panel-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-date-input {
        width: 100%;
        min-width: unset;
    }
}
