/*
 * ============================================================
 *  VR CLOSET — style.css
 *  Aesthetic direction: Luxury editorial — dark ivory & warm
 *  black palette, Cormorant Garamond headline serif paired
 *  with Jost geometric grotesque. Generous negative space,
 *  diagonal accents, grain overlay for tactile depth.
 *
 *  Table of contents:
 *   01. CSS Custom Properties (design tokens)
 *   02. CSS Reset & Base
 *   03. Typography Utilities
 *   04. Loader Overlay
 *   05. Custom Cursor
 *   06. Navigation / Header
 *   07. Mobile Menu Drawer
 *   08. Hero Section
 *   09. Marquee Strip
 *   10. Section Shared Styles
 *   11. Collection Carousel
 *   12. Lookbook Grid
 *   13. About Section
 *   14. Contact / Store Info
 *   15. Map Embed
 *   16. Footer
 *   17. Buttons
 *   18. Scroll Animations (Intersection Observer hooks)
 *   19. Responsive Breakpoints
 * ============================================================
 */

/* ── 01. CSS CUSTOM PROPERTIES ───────────────────────────── */
/* ── 01. CSS CUSTOM PROPERTIES ───────────────────────────── */
:root {
    /* Colour palette - Monocromática */
    --clr-bg:         #000000;   /* Fondo negro puro */
    --clr-bg-alt:     #0f0f0f;   /* Gris ultra oscuro para contraste */
    --clr-surface:    #1a1a1a;   /* Fondo de tarjetas y paneles */
    --clr-border:     #333333;   /* Divisores y líneas en gris oscuro */
    --clr-text:       #cccccc;   /* Texto de lectura en gris claro */
    --clr-text-muted: #777777;   /* Texto secundario en gris medio */
    --clr-accent:     #ffffff;   /* Acento (botones, hovers) en blanco puro */
    --clr-accent-dim: #b3b3b3;   /* Acento secundario (gris claro) */
    --clr-white:      #ffffff;   /* Blanco puro para títulos principales */

    /* Typography scale */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Jost', 'Helvetica Neue', sans-serif;

    /* Font sizes (fluid clamp) */
    --fs-xs:   clamp(0.65rem,  1vw,  0.75rem);
    --fs-sm:   clamp(0.75rem,  1.2vw, 0.875rem);
    --fs-base: clamp(0.875rem, 1.5vw, 1rem);
    --fs-md:   clamp(1rem,     2vw,   1.25rem);
    --fs-lg:   clamp(1.25rem,  3vw,   1.75rem);
    --fs-xl:   clamp(1.75rem,  4vw,   2.5rem);
    --fs-2xl:  clamp(2.5rem,   6vw,   4rem);
    --fs-3xl:  clamp(3.5rem,   9vw,   7rem);

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  7rem;
    --space-2xl: 12rem;

    /* Motion */
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
    --dur-fast:     220ms;
    --dur-base:     420ms;
    --dur-slow:     800ms;

    /* Layout */
    --max-w:       1320px;
    --nav-h:       72px;
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
}

/* ── 02. CSS RESET & BASE ────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Smooth scroll governed by JS to allow offset for fixed nav */
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    /* Grain texture as a pseudo-element on body for tactile depth */
    position: relative;
}

/* Global grain overlay — CSS-only noise texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
}

img, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

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

/* ── 03. TYPOGRAPHY UTILITIES ────────────────────────────── */
.italic { font-style: italic; }

/* .reveal-line: clip wrapper for the slide-up text animation.
   The inner <span> is what actually translates up. */
.reveal-line {
    overflow: hidden;
    display: block;
}

.reveal-line span {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    /* JS adds .in-view to parent section, which triggers this */
    transition: transform var(--dur-slow) var(--ease-out),
                opacity  var(--dur-slow) var(--ease-out);
}

/* When JS adds .revealed to the .reveal-line, text slides up */
.reveal-line.revealed span {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger delays for sequential reveal (applied via JS data-attr) */
.reveal-line:nth-child(1) span { transition-delay: 0ms; }
.reveal-line:nth-child(2) span { transition-delay: 120ms; }
.reveal-line:nth-child(3) span { transition-delay: 240ms; }
.reveal-line:nth-child(4) span { transition-delay: 360ms; }

/* ── 04. LOADER OVERLAY ──────────────────────────────────── */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--dur-slow) var(--ease-out),
                visibility var(--dur-slow);
}

/* JS adds .hidden to dismiss the loader */
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-white);
}

/* Thin progress bar below the wordmark */
.loader-bar {
    width: 180px;
    height: 1px;
    background: var(--clr-border);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--clr-accent);
    width: 0%;
    /* JS animates this width to 100% then fires .hidden on #loader */
    transition: width 1.2s var(--ease-out);
}

/* ── 05. CUSTOM CURSOR ───────────────────────────────────── */
/* Only visible on non-touch devices */
#cursor-dot,
#cursor-ring {
    pointer-events: none;
    position: fixed;
    z-index: 9998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--dur-fast);
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--clr-accent);
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 169, 110, 0.5);
    /* Ring follows with a slight lag — handled by JS lerp */
}

/* Hide default cursor when custom cursor is active */
body.has-custom-cursor,
body.has-custom-cursor * {
    cursor: none !important;
}

/* Expand ring on hoverable elements */
body.has-custom-cursor a:hover     ~ #cursor-ring,
body.has-custom-cursor button:hover ~ #cursor-ring {
    transform: translate(-50%, -50%) scale(1.6);
}

/* ── 06. NAVIGATION / HEADER ─────────────────────────────── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-h);
    /* Transparent initially; JS adds .scrolled for backdrop */
    transition: background var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
    border-bottom: 1px solid transparent;
}

/* .scrolled state added by JS on window scroll */
#site-header.scrolled {
    background: rgba(14, 13, 11, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--clr-border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;

    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Brand wordmark */
.nav-logo {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-white);
    flex-shrink: 0;
    margin-right: auto;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--dur-fast);
}

/* Underline slide animation on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-accent);
    transition: width var(--dur-base) var(--ease-out);
}

.nav-link:hover {
    color: var(--clr-white);
}

.nav-link:hover::after {
    width: 100%;
}

/* Instagram CTA pill */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    padding: 6px 14px;
    border-radius: 999px;
    transition: color var(--dur-fast), border-color var(--dur-fast);
}

.nav-cta:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

/* Hamburger button — visible only on mobile */
#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    margin-left: auto;
    
    /* Agregamos esto para que no lo tape el nuevo menú */
    z-index: 3000 !important; 
    position: relative;
    background: transparent;
    border: none;
}

#menu-toggle span {
    display: block;
    height: 1px;
    
    /* AQUÍ ESTÁ LA MAGIA: Forzamos el color blanco puro */
    background: #ffffff !important; 
    
    transform-origin: center;
    transition: transform var(--dur-base) var(--ease-out),
                opacity   var(--dur-base);
}

/* Animate to × when .menu-open is on <body> */
body.menu-open #menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.menu-open #menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.menu-open #menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ============================================== */
    /* RESCATAR EL HEADER (BARRA SUPERIOR)            */
    /* ============================================== */
    header, 
    .header-nav, 
    #site-header {
        position: relative !important;
        z-index: 9999 !important; /* Manda toda la barra superior hasta el frente */
    }

/* ── 07. MOBILE MENU DRAWER ──────────────────────────────── */
/* ============================================== */
/* MENÚ MÓVIL (TIPO COLECCIÓN - DESDE ARRIBA)     */
/* ============================================== */

#mobile-menu {
    position: fixed; /* O fixed / absolute dependiendo de tu header */
    top: var(--nav-h, 60px); /* Empieza justo debajo de la barra */
    left: 0;
    right: auto;
    bottom: auto; /* Quitamos que llegue hasta abajo */
    width: 100%; /* Ocupa todo el ancho */
    background: #0a0a0a; /* Fondo negro sólido y oscuro */
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    
    /* En lugar de moverlo de lado, lo ocultamos reduciendo su altura a 0 */
    max-height: 0; 
    transform: none; /* Anulamos el efecto lateral */
    border-left: none; 
    
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.9);
    z-index: 2000;
}

/* Cuando se presiona la hamburguesa, el menú crece hacia abajo */
body.menu-open #mobile-menu {
    max-height: 400px; 
    transform: none; 
    border-top: 1px solid #222;
}

.mobile-link {
    padding: 14px 20px;
    width: 100%;
    text-align: center; /* Texto centrado igual que en la colección */
    display: block;
    box-sizing: border-box;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 0.8rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff; 
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Efecto al tocar o pasar el cursor */
.mobile-link:hover, 
.mobile-link:active {
    background: #161616;
    color: #d4af37; /* Toque dorado */
    padding-left: 20px; /* Evitamos que el texto se mueva de lado */
}

/* ── 08. HERO SECTION ────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--space-md) var(--space-xl);
    overflow: hidden;
}

/* Diagonal gradient background — no image dependency */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(201, 169, 110, 0.07) 0%, transparent 65%),
        linear-gradient(160deg, var(--clr-bg-alt) 0%, var(--clr-bg) 60%);
    z-index: 0;
}

/* Decorative large italic letter — purely atmospheric */
#hero::after {
    content: 'VR';
    position: absolute;
    top: 50%;
    right: -2%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(14rem, 30vw, 28rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(201, 169, 110, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--space-sm);
}

/* Main hero headline — massive Cormorant Garamond */
.hero-title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 300;
    line-height: 1.0;
    color: var(--clr-white);
    margin-bottom: var(--space-md);
}

.hero-title .italic {
    color: var(--clr-accent);
    margin-left: clamp(2rem, 8vw, 8rem);
}

.hero-sub {
    font-size: var(--fs-sm);
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--clr-text-muted);
    max-width: 420px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Scroll indicator — bottom-right corner */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--clr-accent), transparent);
    /* Animate up/down pulsing */
    animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── 09. MARQUEE STRIP ───────────────────────────────────── */
.marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--space-sm) 0;
    display: flex;
    background: var(--clr-bg-alt);
}

/* Two tracks: both animate leftward; second starts at +100% offset
   so combined they give a seamless loop */
.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 28s linear infinite;
    will-change: transform;
}

.marquee-track:nth-child(2) {
    /* Offset second track by its own width so no gap on loop */
}

.marquee-item {
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    padding: 0 var(--space-md);
    flex-shrink: 0;
}

/* Gold star/diamond items */
.marquee-item:nth-child(even) {
    color: var(--clr-accent);
    font-size: 0.6rem;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* Pause on hover for accessibility */
.marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

/* ── 10. SECTION SHARED STYLES ───────────────────────────── */
.section {
    padding: var(--space-xl) var(--space-md);
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Dark-bg sections span full width by overriding max-width on inner */
.section--dark {
    max-width: 100%;
    background: var(--clr-bg-alt);
    padding-left: 0;
    padding-right: 0;
}

.section--dark > * {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-eyebrow {
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 300;
    color: var(--clr-white);
    line-height: 1.05;
}

/* ── 11. COLLECTION CAROUSEL ─────────────────────────────── */
.carousel-outer {
    overflow: hidden;
    cursor: grab;
    /* Allow momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

.carousel-outer.is-dragging {
    cursor: grabbing;
}

/* The track holds all slides in a row; JS moves it via transform */
.carousel-track {
    display: flex;
    gap: var(--space-md);
    /* Prevent layout shift when transitioning */
    will-change: transform;
    transition: transform var(--dur-slow) var(--ease-out);
    padding: var(--space-xs) 4px; /* small breathing room */
}

/* Each slide — fixed width so they peek-ahead */
.carousel-slide {
    flex: 0 0 clamp(280px, 38vw, 520px);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.slide-img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
}

.slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
}

/* Zoom on hover */
.carousel-slide:hover .slide-img-wrap img {
    transform: scale(1.04);
}

/* Category badge — top-left chip */
.slide-category {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(14, 13, 11, 0.75);
    backdrop-filter: blur(8px);
    color: var(--clr-accent);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201, 169, 110, 0.25);
}

/* Meta row below the image */
.slide-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.slide-index {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    letter-spacing: 0.12em;
}

.slide-name {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--clr-white);
}

/* Controls row: prev button — dots — next button */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* Arrow buttons */
.carousel-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    transition: color var(--dur-fast),
                border-color var(--dur-fast),
                background var(--dur-fast);
}

.carousel-btn:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    background: rgba(201, 169, 110, 0.06);
}

/* Dot indicators */
.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-border);
    transition: background var(--dur-base),
                transform var(--dur-base) var(--ease-out);
}

.carousel-dot.active {
    background: var(--clr-accent);
    transform: scale(1.4);
}

/* ── 12. LOOKBOOK GRID ───────────────────────────────────── */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

/* Tiles with span-2 class stretch across two columns */
.lookbook-item {
    grid-column: span var(--span, 1);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--clr-surface);
    /* Force 4:3 aspect unless overridden */
    aspect-ratio: 4 / 5;
}

.lookbook-item.span-2 {
    aspect-ratio: 16 / 9;
}

.lookbook-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out),
                filter 0.7s var(--ease-out);
}

/* Caption overlay — slides up from bottom on hover */
.lookbook-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm);
    background: linear-gradient(to top, rgba(14, 13, 11, 0.85), transparent);
    transform: translateY(100%);
    transition: transform var(--dur-base) var(--ease-out);
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-accent);
}

.lookbook-item:hover img {
    transform: scale(1.06);
}

.lookbook-item:hover .lookbook-caption {
    transform: translateY(0);
}

/* ── 13. ABOUT SECTION ───────────────────────────────────── */
.about-section {
    position: relative;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* The .section-title inside about gets an italic em tag */
.about-text .section-title em {
    font-style: italic;
    color: var(--clr-accent);
}

.about-body {
    color: var(--clr-text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.about-body strong {
    color: var(--clr-text);
    font-weight: 400;
}

/* Floating stat cards column */
.about-visual {
    position: relative;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Individual stat cards — floating glass tiles */
.stat-card {
    position: absolute;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.stat-num {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 300;
    color: var(--clr-accent);
    line-height: 1;
}

.stat-label {
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}

/* Stagger positioning of the three cards */
.stat-card--a { top: 10%;  left: 10%;  }
.stat-card--b { top: 38%;  right: 5%;  }
.stat-card--c { bottom: 8%; left: 25%; }

/* Subtle bob animations */
.stat-card--a { animation: floatA 6s ease-in-out infinite; }
.stat-card--b { animation: floatB 7s ease-in-out infinite 0.5s; }
.stat-card--c { animation: floatC 5.5s ease-in-out infinite 1s; }

@keyframes floatA {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50%       { transform: translateY(-10px) rotate(1deg); }
}
@keyframes floatC {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* ── 14. CONTACT / STORE INFO ────────────────────────────── */
.contact-section {
    border-top: 1px solid var(--clr-border);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
    align-items: start;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Individual info block (address, hours, social) */
.info-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--clr-border);
}

.info-block:last-child {
    border-bottom: none;
}

.info-label {
    font-size: var(--fs-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-accent);
    font-weight: 400;
    margin-bottom: 4px;
}

.info-value {
    color: var(--clr-text);
    line-height: 1.7;
}

.info-value small {
    color: var(--clr-text-muted);
    font-size: var(--fs-sm);
}

/* "Ver en Google Maps" link */
.map-link {
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--dur-fast);
    width: fit-content;
}

.map-link:hover { color: var(--clr-accent); }

/* Hours list — two-column label + time layout */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-sm);
    gap: var(--space-md);
}

.hours-list .day {
    color: var(--clr-text-muted);
    min-width: 100px;
}

.hours-list .time {
    color: var(--clr-text);
    text-align: right;
}

.hours-list .closed {
    color: var(--clr-text-muted);
    font-style: italic;
}

/* Social link with icon */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--clr-text);
    transition: color var(--dur-fast);
    width: fit-content;
}

.social-link:hover {
    color: var(--clr-accent);
}

/* Google Plus code small label */
.plus-code {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    letter-spacing: 0.08em;
    margin-top: var(--space-xs);
}

/* ── 15. MAP EMBED ───────────────────────────────────────── */
.map-embed-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    /* Apply a slight sepia filter to match the warm palette */
    filter: grayscale(30%) sepia(15%);
    transition: filter var(--dur-base);
    aspect-ratio: 4 / 3;
}

.map-embed-wrap:hover {
    filter: grayscale(0%) sepia(0%);
}

.map-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── 16. FOOTER ──────────────────────────────────────────── */
#site-footer {
    border-top: 1px solid var(--clr-border);
    background: var(--clr-bg-alt);
    padding: var(--space-lg) var(--space-md);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-white);
}

.footer-tagline {
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    width: 100%;
}

.footer-nav a {
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    transition: color var(--dur-fast);
}

.footer-nav a:hover { color: var(--clr-accent); }

.footer-copy {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    letter-spacing: 0.06em;
}

/* ── 17. BUTTONS ─────────────────────────────────────────── */
/* Primary filled gold button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--clr-accent);
    color: var(--clr-bg);
    padding: 14px 28px;
    border-radius: 2px;
    transition: background var(--dur-fast), transform var(--dur-fast);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--clr-accent-dim);
    transform: translateY(-1px);
}

/* Ghost outline button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: 14px 28px;
    border-radius: 2px;
    transition: border-color var(--dur-fast),
                color var(--dur-fast),
                transform var(--dur-fast);
    white-space: nowrap;
}

.btn-ghost:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    transform: translateY(-1px);
}

/* ── 18. SCROLL ANIMATIONS ───────────────────────────────── */
/*
 * .fade-up: sections/elements start invisible 30px below
 * their rest position. JS IntersectionObserver adds .visible
 * when they enter the viewport.
 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children when parent gets .visible */
.fade-up-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
}

.fade-up-children.visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.fade-up-children.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: none; }
.fade-up-children.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: none; }
.fade-up-children.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: none; }
.fade-up-children.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: none; }

/* ── 19. RESPONSIVE BREAKPOINTS ─────────────────────────── */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {

    :root {
        --space-xl:  5rem;
        --space-2xl: 8rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-visual {
        height: 260px;
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-card {
        position: static;
        animation: none;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

    :root {
        --space-xl: 4rem;
        --nav-h:    60px;
    }
    
    #menu-toggle {
        display: flex;
    }

    /* === INICIO MENÚ MÓVIL PREMIUM === */
    .btn-hamburguesa { 
        display: block; 
        font-size: 1.3rem; 
    }
    
    .nav-links { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: #0a0a0a; /* Fondo oscuro sólido */
        flex-direction: column; 
        padding: 0; 
        overflow: hidden; 
        max-height: 0; 
        transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
        box-shadow: 0 10px 25px rgba(0,0,0,0.9); /* Sombra 3D */
        z-index: 2000;
        border-top: 1px solid transparent;
    }
    
    .nav-links.mostrar-menu { 
        max-height: 400px; 
        border-top: 1px solid #222; 
    }
    
    .nav-links a { 
        padding: 14px 20px; 
        width: 100%; 
        text-align: center; 
        display: block; 
        box-sizing: border-box; 
        font-size: 0.8rem; 
        letter-spacing: 2px; /* Letras más separadas (elegante) */
        border-bottom: 1px solid #1a1a1a; 
    }
    
    .nav-links a:last-child {
        border-bottom: none; 
    }

    .nav-links a:hover, 
    .nav-links a:active {
        background: #161616;
        color: #d4af37; /* Toque dorado */
    }
    /* === FIN MENÚ MÓVIL PREMIUM === */

    /* Hero adjustments */
    #hero {
        padding-bottom: var(--space-lg);
    }

    #hero::after {
        display: none; /* hide giant VR letters on small screens */
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Lookbook: 2 columns on tablet / 1 on mobile */
    .lookbook-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lookbook-item.span-2 {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }

    /* Carousel full-width slides on mobile */
    .carousel-slide {
        flex: 0 0 85vw;
    }
}



/* ============================================================
   ESTILOS PARA LA PÁGINA DE COLECCIÓN (DISEÑO CENTRADO PREMIUM)
   ============================================================ */

/* 1. Contenedor principal (Toolbar) */
.toolbar {
    display: flex;
    flex-direction: column;   
    align-items: center;      
    gap: 1.5rem;              
    margin: 2rem auto var(--space-xl); /* Añadimos margen superior para separarla del título */
    width: 100%;
}

/* 2. Estilo de la Barra de Búsqueda */
.search-box {
    width: 90%;               /* ¡EL TRUCO!: 90% evita que choque con las orillas en el celular */
    max-width: 500px;         /* Evita que se estire demasiado en PC */
    position: relative;
}

.search-box input {
    width: 100%;
    background: var(--clr-surface); 
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: 1rem 1.5rem;
    border-radius: 50px;      
    font-family: var(--font-body);
    font-size: var(--fs-base);
    text-align: center;       
    outline: none;
    transition: all var(--dur-fast) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

/* 3. Contenedor de Botones de Filtro */
.filter-box {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;          /* Permite que los botones bajen de línea en celulares */
    justify-content: center;  /* Centra los botones siempre */
}

/* 4. Estilos de los Botones */
.filter-btn {
    background: transparent;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 1.5px;
    border-radius: 30px;      /* Botones redondeados para combinar con la búsqueda */
    transition: all var(--dur-fast) ease;
}

/* Al pasar el mouse */
.filter-btn:hover {
    color: var(--clr-white);
    border-color: var(--clr-text-muted);
}

/* Botón Activo (El que está seleccionado) */
.filter-btn.active {
    color: var(--clr-bg);
    background: var(--clr-white);
    border-color: var(--clr-white);
    font-weight: 500;
}
.container{
	text-align: center;
}

/* ============================================================
   ESTILO E-COMMERCE (TIPO MERCADO LIBRE / AMAZON)
   ============================================================ */

/* 1. Cuadrícula Principal (Desktop) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem; /* ¡Aquí está la separación del footer! */
}

/* 2. El recuadro (La tarjeta del producto) */
.product-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
    border-color: var(--clr-text-muted);
    transform: translateY(-5px);
}

/* 3. Contenedor de la imagen */
.product-img-wrapper {
    aspect-ratio: 1 / 1; 
    width: 100%;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* 4. Zona de texto */
.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column-reverse; 
    gap: 0.4rem;
    text-align: left;
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--clr-white);
    font-weight: 600;
    margin: 0;
}

.product-name {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── 5. AJUSTES ESTRICTOS PARA CELULAR (4 COLUMNAS) ─── */
@media (max-width: 600px) {
    .catalog-grid {
        /* ¡EL TRUCO!: Forzamos 4 columnas en lugar de 2 */
        grid-template-columns: repeat(4, 1fr);
        
        /* Reducimos los espacios para que las 4 tarjetas puedan entrar sin apretarse demasiado */
        gap: 0.5rem; 
        padding: 0 0.5rem; 
        margin-bottom: 4rem; 
    }

    .product-info {
        /* Relleno súper mínimo porque las tarjetas serán muy estrechas */
        padding: 0.5rem 0.2rem; 
    }

    .product-price {
        /* Letra del precio más pequeña para que no se corte */
        font-size: 0.85rem; 
    }

    .product-name {
        /* Letra del nombre diminuta y elegante */
        font-size: 0.65rem; 
    }
}
