/* =============================================================
   El Vagón — styles.css
   Archetype: Editorial Light Cream · paleta real de la marca
   1 Tokens · 2 Reset · 3 Utils · 4 Tipografía · 5 Componentes
   6 Secciones · 7 Carrito · 8 Efectos · 9 Responsive · 10 Reduced-motion
   ============================================================= */

/* ============ 1. Tokens ============ */
:root {
  --terra:      #AF4B2E;   /* terracota — acento principal */
  --terra-dark: #8f3b22;
  --terra-soft: #c9724f;
  --ink:        #1F3A5A;   /* azul tinta — textos */
  --ink-soft:   #40567180;
  --moss:       #2C5540;   /* verde bosque */
  --mustard:    #CE9A2C;   /* mostaza */
  --cream:      #ECE5D3;   /* crema base */
  --cream-2:    #E3D9C4;   /* arena */
  --paper:      #FBF8EF;   /* papel claro */
  --paper-2:    #F5F0E4;
  --line:       rgba(31, 58, 90, .14);
  --line-soft:  rgba(31, 58, 90, .08);
  --shadow:     0 18px 50px -22px rgba(60, 30, 15, .38);
  --shadow-lg:  0 40px 90px -30px rgba(60, 30, 15, .45);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --script: "Allura", "Segoe Script", cursive;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --radius: 18px;
  --nav-h: 74px;
}

/* ============ 2. Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.015em; font-weight: 400; }
input { font: inherit; }
::selection { background: var(--terra); color: var(--paper); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; fill: none; }

/* ============ 3. Utilidades ============ */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  border-radius: 10px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.eyebrow {
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--terra); font-weight: 600; margin-bottom: .9rem;
}
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-title { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3.2rem); color: var(--ink); }
.section-title em { font-style: italic; color: var(--terra); }
.section-note { margin-top: 1rem; color: #4a5b6e; max-width: 60ch; margin-inline: auto; }

/* ============ 4. Tipografía de marca (logo) ============ */
.nav-brand-el, .splash-el, .hero-el, .footer-el { font-family: var(--serif); }
.nav-brand-vagon, .splash-vagon, .hero-vagon, .footer-vagon { font-family: var(--serif); }

/* ============ 5. Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 500; font-size: .96rem;
  transition: transform .4s var(--ease-out), background .3s, color .3s, box-shadow .4s var(--ease-out);
  cursor: pointer; line-height: 1; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: var(--paper); box-shadow: 0 12px 26px -14px var(--terra); }
.btn-primary:hover { background: var(--terra-dark); }
.btn-ghost { border: 1.5px solid currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wsp { background: #25D366; color: #073b21; font-weight: 600; }
.btn-wsp:hover { background: #1eb955; }
.btn-soft { background: var(--cream-2); color: var(--ink); }
.btn-soft[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ============ Splash ============ */
.splash {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  background: var(--terra);
  transition: opacity .8s var(--ease-out), visibility .8s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-logo { text-align: center; color: var(--paper); animation: splashIn 1s var(--ease-out) both; }
.splash-el { display: block; font-size: 1.4rem; letter-spacing: .35em; opacity: .85; }
.splash-vagon { display: block; font-size: clamp(3rem, 12vw, 5.5rem); letter-spacing: .04em; margin-top: -.2em; }
.splash-tag { display: block; font-family: var(--script); font-size: clamp(1.4rem, 5vw, 2.1rem); color: #f4e4cf; margin-top: .2rem; }
@keyframes splashIn { from { opacity: 0; transform: translateY(16px); } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(251, 248, 239, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line-soft); box-shadow: 0 6px 24px -18px rgba(60,30,15,.5); }
.nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: baseline; gap: .32em; color: var(--paper); transition: color .4s; }
.nav.is-scrolled .nav-brand { color: var(--ink); }
.nav-brand-el { font-size: .82rem; letter-spacing: .3em; opacity: .85; }
.nav-brand-vagon { font-size: 1.4rem; letter-spacing: .02em; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links a { font-size: .95rem; color: var(--paper); position: relative; padding: .3rem 0; transition: color .4s; }
.nav.is-scrolled .nav-links a { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--terra); transition: width .35s var(--ease-out); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--paper); background: rgba(255,255,255,.14); transition: background .3s, color .3s; }
.nav.is-scrolled .nav-cart { color: var(--ink); background: var(--cream-2); }
.nav-cart:hover { background: var(--terra); color: var(--paper); }
.nav-cart .ico { width: 22px; height: 22px; }
.nav-cart-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--mustard); color: #3a2a06; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.nav-cart-count.is-empty { opacity: 0; transform: scale(.5); }
.nav-cart-count.pulse { animation: pulse .5s var(--ease-out); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-burger span { width: 22px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .3s; }
.nav.is-scrolled .nav-burger span { background: var(--ink); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 6. Hero ============ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-tint { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(31,26,20,.5) 0%, rgba(31,26,20,.15) 35%, rgba(175,75,46,.28) 100%),
  radial-gradient(120% 80% at 50% 120%, rgba(140,50,28,.5), transparent 60%); }
.hero-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem; color: var(--paper); text-align: center; }
.hero-kicker { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: #f2e2cd; margin-bottom: 1rem; }
.hero-title { line-height: .9; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.hero-el { display: block; font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: .28em; font-style: italic; opacity: .92; }
.hero-vagon { display: block; font-size: clamp(4rem, 20vw, 12rem); letter-spacing: .01em; }
.hero-script { font-family: var(--script); font-size: clamp(2rem, 8vw, 4rem); color: #f6e6cf; margin-top: .1em; text-shadow: 0 3px 30px rgba(0,0,0,.3); }
.hero-sub { max-width: 46ch; margin: 1.6rem auto 0; font-size: 1.08rem; color: #f4ece0; }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-cta .btn-ghost { color: var(--paper); }
.hero-cta .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.hero-scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 999px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: scrollDot 1.8s var(--ease-soft) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 16px); } }

/* ============ Marquee ============ */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: .9rem 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.marquee-track i { color: var(--mustard); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Historia ============ */
.historia { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.historia-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
.historia-title { font-family: var(--serif); font-size: clamp(1.8rem, 4.2vw, 3rem); color: var(--ink); }
.historia-title em { font-style: italic; color: var(--terra); }
.historia-body p { margin-bottom: 1.1rem; color: #3d4f63; font-size: 1.06rem; }
.historia-body em { color: var(--moss); font-style: italic; }
.historia-sign { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); border-left: 3px solid var(--mustard); padding-left: 1.1rem; }
.historia-sign span { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--terra); margin-top: .4rem; letter-spacing: .02em; }

/* ============ Categorías ============ */
.categorias { max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 5vw, 3rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.cat-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .55rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--terra); }
.cat-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--cream); color: var(--terra); transition: background .4s, color .4s; }
.cat-card:hover .cat-ico { background: var(--terra); color: var(--paper); }
.cat-ico .ico { width: 26px; height: 26px; }
.cat-name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.cat-blurb { font-size: .92rem; color: #55677a; line-height: 1.5; }
.cat-count { margin-top: .3rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); font-weight: 600; }

/* ============ Tienda ============ */
.tienda { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter); scroll-margin-top: var(--nav-h); }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { padding: .55rem 1.1rem; border-radius: 999px; font-size: .9rem; background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.filter:hover { border-color: var(--terra); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: #6b7c8d; min-width: 220px; flex: 1 1 220px; max-width: 340px; }
.search .ico { width: 18px; height: 18px; }
.search input { border: 0; background: none; outline: none; color: var(--ink); width: 100%; }

.product-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); grid-template-columns: repeat(2, 1fr); }
.shop-empty { text-align: center; color: #6b7c8d; padding: 3rem 1rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

.pcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard.is-out { opacity: .72; }
.pcard-media { position: relative; aspect-ratio: 1/1; background: linear-gradient(150deg, var(--cream), var(--cream-2)); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.07); }
.pcard-fallico { position: absolute; inset: 0; display: none; place-items: center; color: var(--terra-soft); }
.pcard-fallico .ico { width: 40%; height: 40%; opacity: .5; }
.pcard-media.is-fallback .pcard-fallico { display: grid; }
.pcard-badge { position: absolute; top: .7rem; left: .7rem; padding: .28rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(251,248,239,.92); color: var(--moss); box-shadow: var(--shadow); }
.pcard-badge.is-low { color: #8a5a12; background: #fdf2d8; }
.pcard-badge.is-out { color: #fff; background: #b23b3b; }
.pcard-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.1rem 1.2rem; flex: 1; }
.pcard-cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.pcard-name { font-family: var(--serif); font-size: 1.16rem; color: var(--ink); line-height: 1.2; }
.pcard-desc { font-size: .88rem; color: #5b6c7d; line-height: 1.5; flex: 1; }
.pcard-prices { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.price-main { display: flex; flex-direction: column; line-height: 1.05; }
.price-main b { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); font-weight: 600; }
.price-main small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.price-alt { font-size: .82rem; color: #7a8b9c; }
.price-alt small { opacity: .8; }
.btn-add { margin-top: .9rem; background: var(--cream); color: var(--ink); border: 1.5px solid var(--ink); padding: .7rem 1rem; }
.btn-add .ico { width: 18px; height: 18px; }
.btn-add:hover { background: var(--terra); color: var(--paper); border-color: var(--terra); }
.btn-add[disabled] { opacity: .5; cursor: not-allowed; }

/* ============ Cómo comprar ============ */
.comprar { background: var(--moss); color: var(--paper); }
.comprar-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) var(--gutter); display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.comprar .eyebrow { color: var(--mustard); }
.comprar .section-title { color: var(--paper); text-align: left; }
.comprar .section-title { font-family: var(--serif); }
.steps { list-style: none; margin: 1.6rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.steps li { display: flex; align-items: center; gap: .9rem; font-size: 1.05rem; color: #eaf0e9; }
.steps span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mustard); color: #3a2a06; font-weight: 700; font-family: var(--serif); }
.comprar-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); }
.pay-row { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.pay-row span { font-family: var(--serif); font-size: 1.15rem; }
.pay-row em { font-style: normal; font-size: .85rem; color: #d9e3d7; }
.pay-row--best em { color: var(--mustard); font-weight: 600; }
.comprar-note { margin: 1.2rem 0 1.4rem; font-size: .92rem; color: #d9e3d7; }

/* ============ Ubicación ============ */
.ubicacion { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) var(--gutter); display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.ubicacion-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); background: linear-gradient(150deg, var(--moss), var(--ink)); }
.ubicacion-media img { width: 100%; height: 100%; object-fit: cover; }
.ubicacion-fallback { position: absolute; inset: 0; display: none; place-items: center; color: rgba(255,255,255,.5); }
.ubicacion-media.is-fallback .ubicacion-fallback { display: grid; }
.ubicacion-fallback .ico { width: 30%; height: 30%; }
.ubicacion .section-title { text-align: left; }
.ubicacion-addr { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 1.2rem; color: var(--terra); margin: .8rem 0 1rem; }
.ubicacion-addr .ico { width: 22px; height: 22px; color: var(--terra); }
.ubicacion p { color: #3d4f63; margin-bottom: 1.4rem; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: #cdd6df; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer-brand { display: flex; flex-direction: column; }
.footer-el { font-size: 1rem; letter-spacing: .3em; color: var(--paper); font-style: italic; }
.footer-vagon { font-size: 2.4rem; color: var(--paper); line-height: 1; }
.footer-tag { font-family: var(--script); font-size: 1.5rem; color: var(--mustard); margin-top: .2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-cols h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--paper); margin-bottom: .9rem; font-weight: 500; }
.footer-cols a { display: flex; align-items: center; gap: .5rem; padding: .28rem 0; color: #cdd6df; transition: color .3s; }
.footer-cols a:hover { color: var(--mustard); }
.footer-cols .ico { width: 18px; height: 18px; }
.footer-addr { font-size: .92rem; line-height: 1.7; }
.footer-base { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem var(--gutter); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; font-size: .85rem; color: #93a1b0; }
.footer-admin { color: #93a1b0; transition: color .3s; }
.footer-admin:hover { color: var(--mustard); }

/* ============ Botón flotante WhatsApp ============ */
.wsp-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #073b21; box-shadow: 0 14px 30px -10px rgba(7,59,33,.6); transition: transform .4s var(--ease-out); }
.wsp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: wspPulse 2.6s ease-out infinite; }
.wsp-float:hover { transform: scale(1.08); }
.wsp-float .ico { width: 30px; height: 30px; }
@keyframes wspPulse { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* ============ 7. Carrito (drawer) ============ */
.cart-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(31,26,20,.5); backdrop-filter: blur(2px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.cart { position: fixed; top: 0; right: 0; z-index: 1600; width: min(420px, 92vw); height: 100%; background: var(--paper); box-shadow: -20px 0 60px -20px rgba(60,30,15,.5); transform: translateX(105%); transition: transform .5s var(--ease-out); display: flex; flex-direction: column; }
.cart.is-open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem var(--gutter); border-bottom: 1px solid var(--line-soft); }
.cart-head h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.cart-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background .3s; }
.cart-close:hover { background: var(--cream); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem var(--gutter); display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { padding: 3rem var(--gutter); text-align: center; color: #6b7c8d; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.cart-empty span { font-size: .95rem; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; }
.ci-media { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--cream), var(--cream-2)); }
.ci-media img { width: 100%; height: 100%; object-fit: cover; }
.ci-media span { position: absolute; inset: 0; display: none; place-items: center; color: var(--terra-soft); }
.ci-media.is-fallback span { display: grid; }
.ci-media .ico { width: 40%; height: 40%; }
.ci-info h4 { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 500; }
.ci-unit { font-size: .8rem; color: #7a8b9c; }
.ci-qty { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; background: var(--cream); border-radius: 999px; padding: .15rem; }
.ci-qty button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink); transition: background .3s; }
.ci-qty button:hover { background: var(--paper); }
.ci-qty .ico { width: 15px; height: 15px; }
.ci-qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .9rem; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.ci-right strong { font-family: var(--serif); color: var(--ink); }
.ci-del { color: #b06a55; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; transition: background .3s, color .3s; }
.ci-del:hover { background: #f6e2da; color: #a33; }
.ci-del .ico { width: 18px; height: 18px; }
.cart-foot { border-top: 1px solid var(--line-soft); padding: 1.2rem var(--gutter) 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.cart-pay { display: flex; flex-direction: column; gap: .5rem; }
.cart-pay-label { font-size: .82rem; color: #6b7c8d; letter-spacing: .04em; }
.cart-pay-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.cart-pay-toggle label { position: relative; display: flex; }
.cart-pay-toggle input { position: absolute; opacity: 0; }
.cart-pay-toggle span { flex: 1; text-align: center; padding: .55rem; border-radius: 10px; border: 1.5px solid var(--line); font-size: .88rem; transition: all .3s; cursor: pointer; }
.cart-pay-toggle input:checked + span { border-color: var(--terra); background: var(--terra); color: var(--paper); font-weight: 600; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: .2rem; }
.cart-total span { color: #6b7c8d; }
.cart-total strong { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.cart-totals { display: flex; flex-direction: column; gap: .3rem; padding: .2rem 0 .4rem; }
.ct-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ct-row span { color: #5b6c7d; font-size: .92rem; }
.ct-row strong { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.ct-row--alt span, .ct-row--alt strong { color: #7a8b9c; font-size: .95rem; }
.ct-row--alt strong { font-size: 1.05rem; }
.btn-mp { background: #009EE3; color: #fff; font-weight: 600; }
.btn-mp:hover { background: #008ac6; }
.btn-mp[disabled] { opacity: .7; cursor: wait; }
.cart-clear { align-self: center; font-size: .85rem; color: #94a3b1; text-decoration: underline; padding: .3rem; }
.cart-clear:hover { color: var(--terra); }

/* ============ Toast ============ */
.toast { position: fixed; left: 50%; bottom: 5.2rem; z-index: 2500; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: .7rem 1.2rem; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============ 8. Reveals ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ============ 9. Responsive ============ */
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .historia-grid { grid-template-columns: 1.05fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1.4fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .comprar-inner { grid-template-columns: 1.1fr .9fr; }
  .ubicacion { grid-template-columns: 1.1fr .9fr; }
}
@media (max-width: 719px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line-soft);
    transform: translateY(-120%); transition: transform .45s var(--ease-out); box-shadow: var(--shadow);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { color: var(--ink); padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-burger { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}

/* ============ 10. Reduced motion (solo lo intrusivo) ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-scroll span { animation: none; }
  .wsp-float::before { animation: none; }
}
