/* ==========================================================================
   Aurea — sitio público
   Paleta tomada del catálogo impreso: crema satinado, champán, oro y espresso.
   Tokens de marca → tokens semánticos → variables de Bootstrap. Nunca colores sueltos en componentes.
   ========================================================================== */

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/cormorant-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/cormorant-italic-latin.woff2') format('woff2');
}

:root {
    /* Marca */
    --brand-ivory: #FBF7F1;
    --brand-cream: #F6EEE3;
    --brand-sand: #EADBC6;
    --brand-champagne: #D9C3A0;
    --brand-gold: #B08443;
    --brand-gold-ink: #8A6530;
    --brand-gold-light: #E6CB92;
    --brand-espresso: #2A2119;
    --brand-cocoa: #4A3B2B;
    --brand-blush: #F6DEDA;
    --brand-rose: #B9706A;
    --gold-grad: linear-gradient(100deg, #8A6530 0%, #C9A05E 28%, #F3DFAE 50%, #C9A05E 72%, #8A6530 100%);

    /* Semánticos */
    --bg: var(--brand-cream);
    --bg-alt: var(--brand-ivory);
    --surface: #FFFCF7;
    --surface-2: #F0E4D3;
    --text: #2E2419;
    --muted: #776652;
    --line: #E3D3BD;
    --accent: var(--brand-gold);
    --accent-hover: var(--brand-gold-ink);
    --primary: var(--brand-gold-ink);
    --on-accent: #FFFAF2;
    --header-bg: rgb(246 238 227 / .82);
    --shadow-sm: 0 1px 2px rgb(74 59 43 / .06), 0 4px 14px rgb(74 59 43 / .05);
    --shadow-md: 0 18px 40px -18px rgb(74 59 43 / .35);
    --shadow-gold: 0 22px 50px -22px rgb(176 132 67 / .55);

    /* Páginas del catálogo: siempre papel claro, como el impreso */
    --paper: #F7EFE4;
    --paper-ink: #3A2C1D;
    --paper-gold: #B48A4C;
    --velvet-1: #2B2119;
    --velvet-2: #15100C;

    --font-display: 'Cormorant', 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
    --radius: 20px;
    --radius-sm: 12px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-silk: cubic-bezier(.65, .05, .36, 1);

    /* Bootstrap */
    --bs-body-font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-size: 1.0625rem;
    --bs-body-font-weight: 300;
    --bs-body-line-height: 1.65;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-link-color-rgb: 138, 101, 48;
    --bs-focus-ring-color: rgb(176 132 67 / .35);
}

[data-bs-theme="dark"] {
    --bg: #14100C;
    --bg-alt: #19140F;
    --surface: #211A13;
    --surface-2: #2B2219;
    --text: #F2E8DA;
    --muted: #B4A38C;
    --line: #3A2F23;
    --accent: #D4B276;
    --accent-hover: #E9CC95;
    --primary: #E0C089;
    --on-accent: #1A140E;
    --header-bg: rgb(20 16 12 / .78);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 20px 44px -18px rgb(0 0 0 / .75);
    --shadow-gold: 0 24px 60px -24px rgb(212 178 118 / .35);
    --paper: #EFE5D6;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-link-color-rgb: 224, 192, 137;
    color-scheme: dark;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; line-height: 1.08; color: var(--text); }
a { color: var(--primary); text-underline-offset: .2em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-gold-light); color: var(--brand-espresso); }
.theme-anim, .theme-anim * { transition: background-color .5s ease, color .5s ease, border-color .5s ease !important; }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 2000;
    background: var(--brand-espresso); color: var(--brand-ivory); padding: 10px 16px; border-radius: 10px; text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }
main:focus { outline: none; }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.0625rem; max-width: 560px; }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------- Botones ---------- */
.btn { font-weight: 500; border-radius: 999px; letter-spacing: .06em; padding: .72rem 1.6rem; font-size: .9375rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-gold {
    position: relative; overflow: hidden; isolation: isolate;
    --bs-btn-color: var(--on-accent); --bs-btn-hover-color: var(--on-accent); --bs-btn-active-color: var(--on-accent);
    --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent;
    background: var(--gold-grad); background-size: 220% 100%; background-position: 100% 0;
    box-shadow: var(--shadow-gold); transition: background-position .9s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s;
}
[data-bs-theme="dark"] .btn-gold { --bs-btn-color: #1A140E; --bs-btn-hover-color: #1A140E; }
.btn-gold:hover { background-position: 0 0; transform: translateY(-2px); }
.btn-outline-gold {
    --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-hover-color: var(--on-accent);
    --bs-btn-active-bg: var(--accent-hover); --bs-btn-active-color: var(--on-accent);
}
.btn-link-gold { color: var(--text); text-decoration: none; border: 0; padding-inline: .5rem; }
.btn-link-gold i { display: inline-block; transition: transform .3s var(--ease-out); }
.btn-link-gold:hover { color: var(--accent); }
.btn-link-gold:hover i { transform: translateX(5px); }

.icon-btn {
    position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
    border: 1px solid var(--line); background: transparent; color: var(--text); transition: border-color .3s, color .3s, background .3s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-light { display: none; }
[data-bs-theme="dark"] .theme-toggle .icon-light { display: inline; }
[data-bs-theme="dark"] .theme-toggle .icon-dark { display: none; }

/* ---------- Logo y ornamentos ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--accent); line-height: 1; }
.logo-gem { width: 1.15em; height: .9em; margin-bottom: .28em; }
.logo-word { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .26em; margin-right: -.26em; font-size: 1em; }
.logo-tag { font-size: .22em; letter-spacing: .24em; text-transform: uppercase; margin-top: .9em; font-weight: 400; white-space: nowrap; }
.logo-sm { font-size: 1.55rem; flex-direction: row; gap: .45em; }
.logo-sm .logo-gem { margin: 0; }
.logo-lg { font-size: clamp(2.6rem, 5vw, 3.6rem); }

.ornament { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
.ornament svg { width: 18px; height: 18px; flex: none; }
.ornament-line { width: 64px; height: 1px; background: currentColor; opacity: .6; }
.ornament-left { justify-content: flex-start; }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1030; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.site-brand { text-decoration: none; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
    position: relative; color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 400;
    letter-spacing: .24em; text-transform: uppercase; padding: 6px 0;
}
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.bag-count {
    position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 600; display: grid; place-items: center;
}
.bag-count.is-bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.45); } }
.nav-burger { display: none; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: currentColor; transition: transform .35s var(--ease-out); }
.nav-burger span:first-child { transform: translateY(-3px); }
.nav-burger span:last-child { transform: translateY(3px); }
.nav-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 860px) {
    .nav-burger { display: inline-grid; }
    .nav-links {
        position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: center; gap: 4px;
        padding: 18px 16px 26px; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease-out), visibility 0s .5s;
    }
    .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-out); }
    .nav-links a { display: block; padding: 12px; }
    .site-header:has(.nav-links.is-open) { background: var(--header-bg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; overflow: hidden; }
.hero-satin {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 18% 20%, rgb(255 255 255 / .65), transparent 70%),
        radial-gradient(50% 60% at 85% 70%, rgb(217 195 160 / .45), transparent 70%),
        linear-gradient(160deg, var(--brand-ivory), var(--brand-cream) 45%, var(--brand-sand));
}
.hero-satin::after {
    content: ''; position: absolute; inset: -20%;
    background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .35) 50%, transparent 60%);
    animation: satin 14s ease-in-out infinite;
}
[data-bs-theme="dark"] .hero-satin {
    background:
        radial-gradient(60% 50% at 18% 20%, rgb(212 178 118 / .10), transparent 70%),
        radial-gradient(50% 60% at 85% 70%, rgb(176 132 67 / .14), transparent 70%),
        linear-gradient(160deg, #1B1510, #14100C 50%, #0F0B08);
}
[data-bs-theme="dark"] .hero-satin::after { background: linear-gradient(115deg, transparent 40%, rgb(230 203 146 / .06) 50%, transparent 60%); }
@keyframes satin { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
    font-size: clamp(4rem, 10.5vw, 8.4rem); font-weight: 300; line-height: .9; letter-spacing: -.01em; margin: 22px 0 26px;
    background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 9s linear infinite; padding-bottom: .08em;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; }
.js .hero-title.is-split { background: none; animation: none; color: inherit; }
.js .hero-title.is-split .char {
    background: var(--gold-grad); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(8px);
    animation: char-in 1.1s var(--ease-out) forwards, shimmer-char 9s linear 1.4s infinite;
    animation-delay: calc(var(--i) * 55ms + 150ms), calc(var(--i) * 55ms + 1.4s);
}
@keyframes char-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer-char { from { background-position: calc(var(--i) * -14%) 0; } to { background-position: calc(var(--i) * -14% - 400%) 0; } }
.hero-ornament .ornament-line { width: clamp(60px, 10vw, 120px); }
.js .hero-ornament .ornament-line { transform: scaleX(0); animation: line-in 1.2s var(--ease-out) .3s forwards; }
.js .hero-ornament .ornament-line:first-child { transform-origin: right; }
.js .hero-ornament .ornament-line:last-child { transform-origin: left; }
.js .hero-ornament svg { opacity: 0; animation: fade-in .8s ease .9s forwards; }
.hero-ornament-heart { margin-bottom: 26px; }
@keyframes line-in { to { transform: scaleX(1); } }
@keyframes fade-in { to { opacity: 1; } }
.hero-lead { color: var(--muted); max-width: 440px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }
.arch { position: relative; margin: 0; overflow: hidden; border-radius: 999px 999px 18px 18px; isolation: isolate; }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-arch { aspect-ratio: 4 / 5.3; box-shadow: var(--shadow-md); outline: 1px solid rgb(176 132 67 / .35); outline-offset: 12px; }
.hero-arch img { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.0) translate(-1%, 1%); } }
.js .hero-arch { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); animation: arch-in 1.6s var(--ease-silk) .2s forwards; }
@keyframes arch-in { to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); } }

/* Destello que cruza las fotos */
.glint { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.glint::before {
    content: ''; position: absolute; top: -50%; bottom: -50%; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgb(255 250 235 / .55), transparent);
    transform: skewX(-18deg);
}
.hero-arch .glint::before { animation: glint 7s ease-in-out 2.2s infinite; }
@keyframes glint { 0% { left: -60%; } 22%, 100% { left: 130%; } }

.hero-seal { position: absolute; left: -42px; bottom: 28px; width: 132px; height: 132px; color: var(--accent); background: var(--bg); border-radius: 50%; box-shadow: var(--shadow-sm); padding: 4px; }
.hero-seal text { font-family: 'Outfit', sans-serif; font-size: 12.5px; letter-spacing: 3.2px; fill: currentColor; }
.hero-seal text, .hero-seal textPath { transform-origin: 100px 100px; }
.hero-seal text { animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sparkle {
    position: absolute; width: 22px; height: 22px; pointer-events: none;
    background: var(--brand-gold-light);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    animation: twinkle 3.6s ease-in-out infinite;
}
.sparkle.s1 { top: 8%; right: -6%; }
.sparkle.s2 { top: 44%; right: -12%; width: 12px; height: 12px; animation-delay: 1.2s; }
.sparkle.s3 { bottom: -4%; left: 18%; width: 16px; height: 16px; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

.hero-scroll { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 40px; border: 1px solid var(--accent); border-radius: 999px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--accent); animation: scroll-dot 2s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 860px) {
    .hero { padding-top: 100px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { width: min(82%, 380px); order: -1; }
    .hero-seal { width: 96px; height: 96px; left: -22px; bottom: 12px; }
    .hero-scroll { display: none; }
}

/* ---------- Cinta de palabras ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-alt); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 34px; animation: marquee 46s linear infinite; }
.marquee span { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--muted); white-space: nowrap; }
.marquee svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.chip {
    border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px;
    padding: .5rem 1.2rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
    transition: background .35s, color .35s, border-color .35s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips-dark .chip { color: #E9DCC8; border-color: rgb(233 220 200 / .25); }
.chips-dark .chip:hover, .chips-dark .chip.is-active { color: #1A140E; background: #D4B276; border-color: #D4B276; }

/* ---------- Colección ---------- */
.collection { background: var(--bg-alt); }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px) clamp(14px, 2vw, 28px); }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card.is-hidden { display: none; }
.product-card.is-entering { animation: card-in .7s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.product-media {
    position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2);
    aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 14px 14px; cursor: zoom-in;
    box-shadow: var(--shadow-sm); transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.product-media:hover, .product-media:focus-visible { box-shadow: var(--shadow-gold); transform: translateY(-6px); }
.product-media:hover img, .product-media:focus-visible img { transform: scale(1.08); }
.product-media:hover .glint::before, .product-media:focus-visible .glint::before { animation: glint 1.4s ease-out; }
.product-media::after { content: ''; position: absolute; inset: 8px; border-radius: inherit; border: 1px solid rgb(255 250 240 / .55); pointer-events: none; opacity: 0; transition: opacity .5s; }
.product-media:hover::after { opacity: 1; }
.product-code {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3;
    font-size: .68rem; letter-spacing: .2em; padding: 4px 12px; border-radius: 999px;
    background: rgb(255 250 242 / .82); color: var(--brand-espresso); backdrop-filter: blur(6px);
}
.product-badge {
    position: absolute; top: 22%; left: 0; z-index: 3; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
    background: var(--accent); color: var(--on-accent); padding: 4px 12px 4px 14px; border-radius: 0 999px 999px 0;
}
.product-body { text-align: center; padding: 16px 6px 0; }
.product-name { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-style: italic; font-weight: 500; margin-bottom: 4px; }
.product-meta { color: var(--muted); font-size: .8rem; letter-spacing: .08em; margin-bottom: 6px; }
.product-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); margin: 0; font-weight: 600; }
.product-price del { color: var(--muted); font-size: .95rem; margin-left: 6px; font-weight: 400; }
.price-label { font-family: 'Outfit', sans-serif; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-right: 4px; vertical-align: middle; }
.product-card.is-blush .product-media { background: var(--brand-blush); }

.fav-btn {
    position: absolute; top: 12%; right: 6%; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0;
    display: grid; place-items: center; background: rgb(255 250 242 / .88); color: var(--brand-gold-ink); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease-out), background .3s, color .3s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn[aria-pressed="true"] { background: var(--brand-gold); color: #fff; }
.fav-btn[aria-pressed="true"] i::before { content: '\f415'; }
.fav-btn.is-pop { animation: heart-pop .6s var(--ease-out); }
@keyframes heart-pop { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }

@media (max-width: 991px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fav-btn { width: 34px; height: 34px; font-size: .85rem; }
    .product-code { font-size: .58rem; padding: 3px 8px; }
}

/* ---------- Editorial ---------- */
.editorial-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.editorial-arch { aspect-ratio: 2 / 3; max-width: 430px; outline: 1px solid rgb(176 132 67 / .35); outline-offset: 12px; box-shadow: var(--shadow-md); }
.editorial-title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 300; margin-bottom: 22px; }
.editorial-title em { font-style: italic; color: var(--accent); }
.editorial-facts { list-style: none; padding: 0; margin: 34px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.editorial-facts li { padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.editorial-facts li + li { border-left: 1px solid var(--line); }
.editorial-facts strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; color: var(--accent); }
.editorial-facts span { font-size: .85rem; color: var(--muted); }
.promo-card {
    display: inline-flex; align-items: center; gap: 22px; padding: 22px 30px; position: relative; background: var(--surface);
    border: 1px solid var(--accent); box-shadow: var(--shadow-sm);
}
.promo-card::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgb(176 132 67 / .4); pointer-events: none; }
.promo-value { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--accent); }
.promo-text { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; max-width: 190px; color: var(--text); }
.promo-card .ornament-line { width: 26px; }
@media (max-width: 860px) {
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-arch { max-width: 320px; margin-inline: auto; }
    .editorial-copy { text-align: center; }
    .editorial-facts { grid-template-columns: 1fr; }
    .editorial-facts li + li { border-left: 0; border-top: 1px solid var(--line); }
    .promo-card { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Catálogo hojeable ---------- */
.catalog { color: #EFE3D1; overflow: hidden; background: var(--velvet-2); }
.catalog-velvet {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(70% 55% at 50% 45%, rgb(176 132 67 / .22), transparent 70%),
        radial-gradient(40% 40% at 10% 90%, rgb(176 132 67 / .1), transparent 70%),
        linear-gradient(180deg, var(--velvet-1), var(--velvet-2));
}
/* Posicionado para quedar sobre .catalog-velvet; si no, el fondo tapa el texto al terminar el reveal. */
.catalog > .container-xl { position: relative; }
.catalog .section-title { color: #F5EADB; }
.catalog .section-lead { color: #BDAA90; }
.catalog .eyebrow { color: #D4B276; }

.flipbook { position: relative; }
.fb-stage { position: relative; display: flex; justify-content: center; padding: 26px 0 34px; overflow: clip; overflow-clip-margin: 40px; touch-action: pan-y; user-select: none; }
/* El libro no es preserve-3d: así el z-index ordena las hojas; cada hoja sí lo es para sus dos caras. */
.fb-book { position: relative; perspective: 2800px; transition: transform .9s var(--ease-silk); }
.fb-book::after { /* sombra sobre la mesa */
    content: ''; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 40px;
    background: radial-gradient(50% 50% at 50% 50%, rgb(0 0 0 / .55), transparent 70%); filter: blur(6px); z-index: -1;
    transition: left .9s var(--ease-silk), right .9s var(--ease-silk);
}
.fb-book.is-double.at-start { transform: translateX(-25%); }
.fb-book.is-double.at-start::after { left: 52%; }
.fb-book.is-double.at-end { transform: translateX(25%); }
.fb-book.is-double.at-end::after { right: 52%; }

.fb-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform var(--fb-speed, 1s) var(--ease-silk); will-change: transform; }
.fb-book.is-single .fb-leaf { left: 0; width: 100%; }
.fb-leaf.is-flipped { transform: rotateY(-180deg); }
/* En una sola página las hojas pasadas quedan fuera del libro: se ocultan al terminar el giro. */
.fb-book.is-single .fb-leaf.is-flipped:not(.is-turning) { visibility: hidden; }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--paper); }
.fb-face-back { transform: rotateY(180deg); }
/* Pliegue del lomo y luz que recorre la hoja al pasarla */
.fb-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.fb-face-front::after { background: linear-gradient(90deg, rgb(60 40 20 / .28), rgb(60 40 20 / .08) 3%, transparent 9%), linear-gradient(90deg, transparent 70%, rgb(255 255 255 / 0)); }
.fb-face-back::after { background: linear-gradient(270deg, rgb(60 40 20 / .28), rgb(60 40 20 / .08) 3%, transparent 9%); }
.fb-book.is-single .fb-face-front::after { background: linear-gradient(90deg, rgb(60 40 20 / .18), transparent 4%); }
.fb-face::before { content: ''; position: absolute; inset: 0; z-index: 21; pointer-events: none; opacity: 0; }
.fb-face-front::before { background: linear-gradient(90deg, rgb(0 0 0 / .0), rgb(0 0 0 / .35)); }
.fb-face-back::before { background: linear-gradient(270deg, rgb(255 255 255 / .0), rgb(255 248 235 / .5) 70%, rgb(0 0 0 / .25)); }
.fb-leaf.is-turning .fb-face::before { animation: page-light var(--fb-speed, 1s) var(--ease-silk); }
@keyframes page-light { 50% { opacity: 1; } }
.fb-leaf.is-turning .fb-face { box-shadow: 0 0 40px rgb(0 0 0 / .3); }

/* Esquinas para pasar la hoja */
.fb-corner { position: absolute; bottom: 0; z-index: 900; width: 13%; aspect-ratio: 1; border: 0; padding: 0; background: transparent; cursor: pointer; }
.fb-corner::before { content: ''; position: absolute; width: 0; height: 0; bottom: 0; transition: width .35s var(--ease-out), height .35s var(--ease-out); }
.fb-corner-next { right: 0; }
.fb-corner-next::before { right: 0; background: linear-gradient(315deg, transparent 49%, #E6D5BC 50%, #FFF8EC 62%, #CBB596); box-shadow: -3px -3px 8px rgb(0 0 0 / .25); }
.fb-corner-prev { left: 0; }
.fb-corner-prev::before { left: 0; background: linear-gradient(45deg, transparent 49%, #E6D5BC 50%, #FFF8EC 62%, #CBB596); box-shadow: 3px -3px 8px rgb(0 0 0 / .25); }
.fb-corner:hover::before, .fb-corner:focus-visible::before { width: 46%; height: 46%; }
.fb-corner.is-idle::before { animation: corner-peek 3.2s ease-in-out 1.5s infinite; }
@keyframes corner-peek { 0%, 70%, 100% { width: 0; height: 0; } 82% { width: 30%; height: 30%; } }

/* Sin JS (o mientras carga): páginas en fila con desplazamiento */
.fb-source { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 20px; }
.fb-source .fb-page { flex: 0 0 min(78vw, 420px); aspect-ratio: 612 / 792; scroll-snap-align: center; }
.flipbook.is-ready .fb-source { display: none; }
.js .flipbook:not(.is-ready) .fb-source { visibility: hidden; height: 0; padding: 0; }

.fb-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.fb-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgb(212 178 118 / .5); background: rgb(255 255 255 / .03); color: #E9D3A8; display: grid; place-items: center; font-size: 1.1rem; transition: background .3s, color .3s, transform .3s; }
.fb-btn:hover:not(:disabled) { background: #D4B276; color: #1A140E; transform: scale(1.06); }
.fb-btn:disabled { opacity: .3; cursor: default; }
.fb-btn-ghost { width: 42px; height: 42px; font-size: .9rem; border-color: rgb(212 178 118 / .25); }
.fb-progress { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: min(46vw, 320px); }
.fb-status { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .12em; color: #E9D3A8; }
.fb-range { width: 100%; accent-color: #D4B276; height: 2px; }
.fb-hint { text-align: center; color: #9F8D74; font-size: .82rem; letter-spacing: .06em; margin: 16px 0 0; }

.flipbook:fullscreen { background: radial-gradient(70% 60% at 50% 45%, #3A2C1F, #120D09); display: flex; flex-direction: column; justify-content: center; padding: 20px; }

/* ----- Páginas ----- */
.fb-page { position: relative; width: 100%; height: 100%; background: var(--paper); color: var(--paper-ink); container-type: size; overflow: hidden; font-family: 'Outfit', sans-serif; }
.fb-page.is-blush { --paper: #F8E4E0; --paper-gold: #B9706A; }
.fb-page .logo { color: var(--paper-gold); }
.fb-page .ornament { color: var(--paper-gold); gap: 2cqw; }
.fb-page .ornament svg { width: 3cqw; height: 3cqw; }
.fb-page .ornament-line { width: 12cqw; }

.fb-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fb-mosaic { position: absolute; inset: 1.4cqw 1.4cqw 6cqh; display: grid; gap: 1.4cqw; }
.fb-layout-a { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1.12fr .82fr; grid-template-areas: "s1 s1 s1 s2 s2 s2" "s3 s3 k k s4 s4" "s5 s5 s5 s6 s6 s6"; }
.fb-layout-b { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); grid-template-areas: "s1 s1 s1 s2 s2 s2" "s1 s1 s1 s3 s3 s3" "k k s4 s3 s3 s3" "s5 s5 s5 s6 s6 s6"; }
.fb-layout-c { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr 1fr; grid-template-areas: "s1 s1 s2 s2" "s3 k k s4" "s5 k k s4"; }
.fb-layout-a .fb-slot-1, .fb-layout-b .fb-slot-1, .fb-layout-c .fb-slot-1 { grid-area: s1; }
.fb-layout-a .fb-slot-2, .fb-layout-b .fb-slot-2, .fb-layout-c .fb-slot-2 { grid-area: s2; }
.fb-layout-a .fb-slot-3, .fb-layout-b .fb-slot-3, .fb-layout-c .fb-slot-3 { grid-area: s3; }
.fb-layout-a .fb-slot-4, .fb-layout-b .fb-slot-4, .fb-layout-c .fb-slot-4 { grid-area: s4; }
.fb-layout-a .fb-slot-5, .fb-layout-b .fb-slot-5, .fb-layout-c .fb-slot-5 { grid-area: s5; }
.fb-layout-a .fb-slot-6, .fb-layout-b .fb-slot-6 { grid-area: s6; }
.fb-layout-a .fb-card, .fb-layout-b .fb-card, .fb-layout-c .fb-card { grid-area: k; }
.fb-layout-fill { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.fb-layout-fill .fb-card { order: -1; }
.fb-layout-fill.fb-count-2 .fb-card, .fb-layout-fill.fb-count-4 .fb-card { grid-column: span 2; }
.fb-layout-fill.fb-count-2 { grid-template-rows: .62fr 1fr; }
.fb-layout-fill.fb-count-4 { grid-template-rows: .5fr 1fr 1fr; }
.fb-layout-fill.fb-count-2 .fb-card, .fb-layout-fill.fb-count-4 .fb-card { flex-direction: row; flex-wrap: wrap; gap: 1.6cqw 4cqw; }
.fb-layout-fill.fb-count-2 .fb-card .fb-quote, .fb-layout-fill.fb-count-4 .fb-card .fb-quote { flex-basis: 100%; }
.fb-layout-fill.fb-count-1 { grid-template-columns: 1fr; }

.fb-tile { position: relative; overflow: hidden; border: 0; padding: 0; background: #E9DCC8; cursor: zoom-in; text-align: left; color: var(--paper-ink); }
.fb-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.fb-tile:hover img, .fb-tile:focus-visible img { transform: scale(1.06); }
.fb-tile:focus-visible { outline: 2px solid var(--paper-gold); outline-offset: -4px; }
.fb-code { position: absolute; top: 1.4cqw; right: 2cqw; font-family: var(--font-display); font-size: 2.5cqw; letter-spacing: .04em; font-weight: 500; text-shadow: 0 0 6px rgb(255 250 240 / .9); }
.fb-label { position: absolute; left: 0; bottom: 0; max-width: 78%; padding: 7cqw 3cqw 2cqw 2.4cqw; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: radial-gradient(85% 80% at 25% 100%, rgb(250 243 232 / .78), rgb(250 243 232 / 0) 75%); }
.fb-name { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 3.15cqw; line-height: 1.12; }
.fb-tick { width: 60%; height: 1px; background: var(--paper-ink); opacity: .5; margin: 1cqw 0 .6cqw; }
.fb-price { display: flex; align-items: center; gap: 1.2cqw; font-family: var(--font-display); font-weight: 700; font-size: 2.5cqw; line-height: 1.05; }
.fb-price small { display: block; font-family: 'Outfit', sans-serif; font-size: 1.35cqw; letter-spacing: .14em; font-weight: 400; }
.fb-coin { display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: var(--paper-gold); color: #fff; font-size: 1.8cqw; opacity: .8; }
.fb-layout-c .fb-slot-3 .fb-label, .fb-layout-c .fb-slot-5 .fb-label, .fb-layout-b .fb-slot-4 .fb-label { max-width: 100%; }

.fb-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; padding: 3cqw; text-align: center; background: var(--paper); border: 1px solid rgb(180 138 76 / .55); }
.fb-card::before { content: ''; position: absolute; inset: 1cqw; border: 1px solid rgb(180 138 76 / .3); pointer-events: none; }
.logo-book { font-size: 6.6cqw; }
.logo-mini { font-size: 3.8cqw; }
.fb-quote { font-family: var(--font-display); color: var(--paper-gold); font-size: 3.5cqw; line-height: 1.3; margin: 0; }
.fb-card-tag { font-size: 1.5cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-gold); }
.fb-card-promo { gap: 1cqw; }
.fb-promo-value { font-family: var(--font-display); color: var(--paper-gold); font-size: 11cqw; line-height: 1; }
.fb-promo-sub, .fb-promo-text { font-size: 1.7cqw; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-gold); }
.fb-promo-text { margin-bottom: 1.6cqw; }
.fb-card-editorial { padding: 0; border: 0; justify-content: flex-end; border-radius: 50% 50% 0 0 / 28% 28% 0 0; overflow: hidden; }
.fb-card-editorial::before { display: none; }
.fb-card-editorial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-card-editorial .logo { position: relative; color: #F5E7CC; margin-bottom: 3cqw; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }

.fb-foot { position: absolute; left: 3cqw; right: 3cqw; bottom: 0; height: 6cqh; display: flex; align-items: center; justify-content: space-between; font-size: 1.6cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--paper-gold); }

.fb-inner { position: absolute; inset: 4cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3cqw; border: 1px solid rgb(180 138 76 / .5); padding: 6cqw; }
.fb-inner::before { content: ''; position: absolute; inset: 1.2cqw; border: 1px solid rgb(180 138 76 / .28); pointer-events: none; }
.fb-heading { font-family: var(--font-display); font-weight: 500; font-size: 4cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-ink); margin: 2cqw 0 0; }
.fb-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; width: 100%; }
.fb-steps li { display: flex; flex-direction: column; align-items: center; gap: 1cqw; font-size: 2cqw; line-height: 1.25; position: relative; }
.fb-steps i { font-size: 5.4cqw; color: var(--paper-ink); }
.fb-steps sup { position: absolute; top: 0; right: 12%; font-size: 1.6cqw; }
.fb-pay { list-style: none; padding: 0; margin: 0; display: flex; gap: 5cqw; font-size: 2.2cqw; letter-spacing: .06em; }
.fb-promo-line { font-size: 2cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-gold); margin: 2cqw 0 0; }
.fb-promo-line strong { font-family: var(--font-display); font-size: 4.6cqw; font-weight: 500; vertical-align: middle; margin-right: 1cqw; }
.fb-quote-inner { border: 0; padding: 0; }
.fb-quote-inner::before { display: none; }
.fb-quote-img { width: 64%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; }
.fb-quote-lg { font-size: 4.6cqw; font-style: italic; max-width: 80%; }
.fb-back { background: #3B2E22; color: #EBDCC4; }
.fb-back .logo, .fb-back .ornament, .fb-back .fb-quote { color: #D9BC86; }
.fb-back .fb-inner { border-color: rgb(217 188 134 / .4); }
.fb-back .fb-inner::before { border-color: rgb(217 188 134 / .2); }
.fb-contact { margin: 0; font-size: 2.6cqw; letter-spacing: .08em; }
.fb-paper-blank { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); }
.fb-paper-blank .logo { font-size: 5cqw; opacity: .35; color: #B48A4C; }

@media (max-width: 640px) {
    .fb-controls { gap: 8px; }
    .fb-btn { width: 44px; height: 44px; }
    .fb-progress { min-width: 0; flex: 1; }
}

/* ---------- Cómo pedir ---------- */
.order { background: var(--bg); }
.steps { list-style: none; padding: 0; margin: 0 0 clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ''; position: absolute; top: 40px; left: 12.5%; right: 12.5%; height: 1px; background: var(--accent); opacity: .45; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-silk) .3s; }
.steps.is-drawn::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.step-icon { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); color: var(--accent); font-size: 1.7rem; transition: background .4s, color .4s, transform .5s var(--ease-out); }
.step:hover .step-icon { background: var(--accent); color: var(--on-accent); transform: translateY(-4px); }
.step-n { position: absolute; top: -4px; right: -10px; font-family: var(--font-display); font-size: .95rem; color: var(--accent); background: var(--bg); padding: 0 4px; }
.step-title { font-size: 1.55rem; font-weight: 500; margin-bottom: 8px; }
.step-text { color: var(--muted); font-size: .92rem; max-width: 230px; margin: 0 auto; }
.payments { text-align: center; padding-top: 36px; border-top: 1px solid var(--line); }
.payments-title { font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; }
.payments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.payments li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; background: var(--surface); }
.payments li i { color: var(--accent); }
@media (max-width: 860px) {
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .steps::before { display: none; }
}

/* ---------- Pie ---------- */
.site-footer { background: #1A140F; color: #E5D7C2; padding: clamp(70px, 9vw, 110px) 0 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 70% at 0% 0%, rgb(176 132 67 / .16), transparent 70%); pointer-events: none; }
.footer-top { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; padding-bottom: 54px; border-bottom: 1px solid rgb(229 215 194 / .14); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.site-footer .logo { color: #D9BC86; }
.footer-quote { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: #CDBB9F; max-width: 360px; margin: 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-title { font-family: 'Outfit', sans-serif; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: #D9BC86; font-weight: 500; margin-bottom: 16px; }
.footer-muted { color: #A8977F; font-size: .9rem; }
.site-footer .btn-gold { --bs-btn-color: #1A140E; --bs-btn-hover-color: #1A140E; }
.footer-social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(217 188 134 / .35); color: #D9BC86; transition: background .3s, color .3s; }
.footer-social a:hover { background: #D9BC86; color: #1A140E; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .8rem; color: #8F7F69; letter-spacing: .06em; }
.footer-up { color: #D9BC86; text-decoration: none; }
@media (max-width: 860px) {
    .footer-top, .footer-cols { grid-template-columns: 1fr; }
    .footer-brand { align-items: center; text-align: center; }
    .footer-quote { margin-inline: auto; }
}

/* ---------- Favoritos (offcanvas) ---------- */
.bag { --bs-offcanvas-width: 420px; --bs-offcanvas-bg: var(--surface); --bs-offcanvas-color: var(--text); }
.bag .offcanvas-title { font-size: 2rem; font-weight: 400; }
.bag .offcanvas-header { padding: 26px 26px 10px; align-items: flex-start; }
.bag .offcanvas-body { padding: 10px 26px; }
.bag-empty { text-align: center; padding: 60px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bag-empty.is-hidden { display: none; }
.bag-list { list-style: none; padding: 0; margin: 0; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: card-in .5s var(--ease-out); }
.bag-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 999px 999px 8px 8px; }
.bag-item-info { display: flex; flex-direction: column; min-width: 0; }
.bag-item-code { font-size: .68rem; letter-spacing: .2em; color: var(--accent); }
.bag-item-name { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.2; }
.bag-item-price { font-size: .9rem; color: var(--muted); }
.bag-item-remove { border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; }
.bag-item-remove:hover { color: var(--text); background: var(--surface-2); }
.bag-foot { padding: 18px 26px 26px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.bag-promo { font-size: .85rem; color: var(--accent); text-align: center; margin-bottom: 12px; }
.bag-totals { margin: 0 0 16px; }
.bag-totals div { display: flex; justify-content: space-between; font-size: .92rem; padding: 3px 0; }
.bag-totals dd { margin: 0; }
.bag-total { font-family: var(--font-display); font-size: 1.45rem !important; font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px !important; }
.bag-note { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Vista rápida ---------- */
.quickview .modal-content { background: var(--surface); color: var(--text); border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); }
.quickview.fade .modal-dialog { transform: translateY(30px) scale(.97); transition: transform .5s var(--ease-out); }
.quickview.show .modal-dialog { transform: none; }
.qv-close { position: absolute; top: 16px; right: 16px; z-index: 5; background-color: var(--surface); border-radius: 50%; padding: 10px; opacity: .9; }
.qv-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.qv-media { position: relative; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; cursor: zoom-in; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.qv-media.is-zoomed img { transform: scale(2.1); transition: transform .25s ease-out; }
.qv-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: .72rem; letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; background: rgb(255 250 242 / .85); color: var(--brand-espresso); white-space: nowrap; transition: opacity .3s; }
.qv-media.is-zoomed .qv-hint { opacity: 0; }
.qv-info { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.qv-name { font-size: clamp(1.9rem, 3vw, 2.5rem); font-style: italic; font-weight: 500; margin-bottom: 6px; }
.qv-material { color: var(--muted); font-size: .9rem; letter-spacing: .08em; margin-bottom: 18px; }
.qv-price { font-family: var(--font-display); font-size: 2.1rem; color: var(--accent); font-weight: 600; margin: 18px 0 6px; }
.qv-price del { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.qv-desc { color: var(--muted); font-size: .95rem; }
.qv-desc:empty { display: none; }
.qv-code { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.qv-code strong { color: var(--text); font-weight: 600; }
.qv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.qv-actions [data-qv-fav][aria-pressed="true"] i::before { content: '\f415'; }
@media (max-width: 767px) {
    .qv-grid { grid-template-columns: 1fr; }
    .qv-media { aspect-ratio: 1; }
}

/* ---------- Aparición al hacer scroll (fade-up 24px, escalonado 80ms) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); transition: clip-path 1.5s var(--ease-silk); }
.js [data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 2s var(--ease-out); }
.js [data-reveal="clip"].is-visible img { transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal], .js [data-reveal="clip"], .js [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; }
    .js .hero-title.is-split .char { opacity: 1; transform: none; filter: none; }
    .js .hero-arch { clip-path: none; }
    .marquee-track { animation: none; }
}

/* ---------- Errores ---------- */
.error-page { padding: 160px 0 120px; }
.error-code { font-family: var(--font-display); font-size: 6rem; font-weight: 300; color: var(--accent); line-height: 1; }
