/* =========================================================
   VUELTA — identidad visual de la tienda
   Neutros cálidos, tipografía editorial, foto protagonista.
   ========================================================= */
:root {
  --bg: #F5F2EC;
  --surface: #FFFFFF;
  --sand: #ECE6DB;
  --ink: #171614;
  --ink-2: #4F4A43;
  --muted: #8A8379;
  --line: #E1DBD0;
  --accent: #2F3B2C;
  --accent-soft: #DDE3D6;
  --sale: #A6462A;
  --ok: #3B6B45;
  --warn: #9A6B1F;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px -12px rgba(23, 22, 20, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 11px; }
.btn[disabled], .btn.is-disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Anuncio y header ---------- */
.announce {
  background: var(--accent); color: #EEF0E8; text-align: center;
  font-size: 12px; letter-spacing: .06em; padding: 9px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(245, 242, 236, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); }
.header-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.logo { font-family: var(--serif); font-size: 32px; letter-spacing: .14em; line-height: 1; justify-self: center; }
.logo small { display: block; font: 600 8.5px/1 var(--sans); letter-spacing: .42em; text-align: center; margin-top: 4px; color: var(--muted); }
.main-nav { display: flex; gap: 28px; font-size: 13px; font-weight: 500; }
.main-nav > a, .nav-drop > button { position: relative; padding: 26px 0; letter-spacing: .02em; }
.main-nav > a::after, .nav-drop > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav > a:hover::after, .nav-drop:hover > button::after { transform: scaleX(1); }
.main-nav .sale-link { color: var(--sale); }
.nav-drop { position: relative; }
.mega {
  position: absolute; left: -24px; top: 100%; min-width: 520px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 32px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-drop:hover .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.mega a:hover { color: var(--ink); }
.mega .mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-weight: 600; color: var(--ink); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 50%; transition: background .2s;
}
.icon-btn:hover { background: var(--sand); }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.badge:empty, .badge[data-count="0"] { display: none; }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; }

/* ---------- Búsqueda ---------- */
.search-panel {
  position: fixed; inset: 0 0 auto 0; z-index: 60; background: var(--bg);
  padding: 28px var(--gutter) 40px; box-shadow: var(--shadow);
  transform: translateY(-105%); transition: transform .45s var(--ease);
}
.search-panel.open { transform: none; }
.search-panel form { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); }
.search-panel input { flex: 1; border: 0; background: none; font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); padding: 14px 0; outline: none; }
.search-tags { max-width: 900px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; transition: border-color .2s, background .2s;
}
.chip:hover, .chip.active { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; }
.overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(23, 22, 20, .35);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ---------- Drawer móvil ---------- */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(88vw, 380px);
  background: var(--bg); transform: translateX(-100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.right { left: auto; right: 0; transform: translateX(100%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 12px 20px 32px; }
.drawer-body > a, .drawer-body details summary { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; cursor: pointer; list-style: none; }
.drawer-body details summary::-webkit-details-marker { display: none; }
.drawer-body details a { display: block; padding: 9px 0 9px 14px; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; grid-template-columns: 1.05fr 1fr; background: var(--sand); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.hero h1 { font-family: var(--serif); font-size: clamp(48px, 7.2vw, 112px); line-height: .95; letter-spacing: -.02em; margin: 18px 0 26px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 460px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; min-height: 420px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }
.hero-collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px; }
.hero-collage a { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg); }
.hero-collage a:first-child { grid-row: span 2; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-collage a:hover img { transform: scale(1.04); }
.hero-stamp {
  position: absolute; left: -46px; bottom: 56px; z-index: 2; width: 120px; height: 120px; border-radius: 50%;
  background: var(--accent); color: #EEF0E8; display: grid; place-items: center; text-align: center;
  font: 600 10px/1.35 var(--sans); letter-spacing: .14em; text-transform: uppercase; animation: spin 26s linear infinite;
}
.hero-stamp span { font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; display: block; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 520px; }
.see-all { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid; padding-bottom: 3px; white-space: nowrap; }

.cat-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none; scroll-snap-align: start; display: flex; align-items: baseline; gap: 8px;
  padding: 14px 22px; border: 1px solid var(--line); border-radius: 40px; background: var(--surface);
  font-size: 15px; transition: all .25s var(--ease);
}
.cat-pill sup { font-size: 10px; color: var(--muted); }
.cat-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-pill:hover sup { color: #bbb; }

/* ---------- Grilla y tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-layout > *, .pdp > *, .cart-layout > * { min-width: 0; }
.card { position: relative; }
.card-media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border-radius: var(--radius);
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.card-media .alt-img { opacity: 0; }
.card:hover .card-media .alt-img { opacity: 1; }
.card:hover .card-media img { transform: scale(1.035); }
.card-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.tag {
  display: inline-block; padding: 5px 9px; border-radius: 2px; background: rgba(255, 255, 255, .92);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.tag-sale { background: var(--sale); color: #fff; }
.tag-new { background: var(--ink); color: #fff; }
.tag-soft { background: var(--accent-soft); color: var(--accent); }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s;
}
.fav-btn:hover { transform: scale(1.08); background: #fff; }
.fav-btn .icon { width: 19px; height: 19px; }
.fav-btn.saved .icon { fill: var(--sale); stroke: var(--sale); }
.fav-btn.pop { animation: bump .45s var(--ease); }
.sold-veil {
  position: absolute; inset: 0; z-index: 2; background: rgba(245, 242, 236, .55); display: grid; place-items: center;
}
.sold-veil span { background: var(--ink); color: #fff; padding: 9px 18px; font-size: 12px; letter-spacing: .3em; font-weight: 700; }
.card.is-sold img { filter: grayscale(.65); }
.card-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card-quick { opacity: 1; transform: none; }
.card-quick .btn { width: 100%; height: 42px; background: rgba(255, 255, 255, .95); color: var(--ink); border-color: transparent; }
.card-quick .btn:hover { background: var(--ink); color: #fff; }
.card-body { padding-top: 12px; display: grid; gap: 3px; }
.card-brand { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; font-size: .88em; }
.price .now-sale { color: var(--sale); }

/* ---------- Bloques de confianza ---------- */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise div { padding: 28px 22px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.promise div:last-child { border-right: 0; }
.promise strong { display: block; font-size: 14px; margin-bottom: 2px; }
.promise span { font-size: 13px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { counter-reset: s; display: grid; gap: 0; }
.step { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.step::before { content: "0" counter(s); font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); grid-row: span 2; }
.step h3 { font-size: 17px; font-weight: 600; }
.step p { color: var(--ink-2); margin: 0; font-size: 14px; }

.offer-band { background: var(--ink); color: #F3EFE7; }
.offer-band .section-head h2 { color: #fff; }
.offer-band .section-head p, .offer-band .card-meta, .offer-band .card-brand { color: #A39D93; }
.offer-band .price s { color: #8E887F; }
.offer-band .price .now-sale { color: #F08A68; }
.offer-band .see-all { color: #fff; }

.ship-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ship-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.ship-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ship-card .price { font-size: 22px; font-family: var(--serif); font-weight: 400; margin-top: 14px; }

.whatsapp-cta {
  background: var(--accent-soft); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.whatsapp-cta h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%;
  background: #1F8F4E; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(31, 143, 78, .6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); padding: 72px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.footer-grid a, .footer-grid li { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand .logo { justify-self: start; text-align: left; font-size: 44px; }
.footer-brand p { color: var(--ink-2); max-width: 340px; margin-top: 16px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--ink-2); border-radius: 50%; display: grid; place-items: center; padding: 0; transition: all .25s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; background: var(--surface); font-weight: 600; color: var(--ink-2); }

/* ---------- Catálogo ---------- */
.page-head { padding: 44px 0 28px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(40px, 5.5vw, 76px); letter-spacing: -.015em; }
.breadcrumbs { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar select { border: 0; background: none; font-weight: 600; padding: 6px 2px; cursor: pointer; }
.filters { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group summary { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filter-group summary::after { content: "+"; font-weight: 400; font-size: 16px; line-height: 1; }
.filter-group[open] summary::after { content: "–"; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.filter-options.col { flex-direction: column; gap: 9px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; min-width: 42px; height: 34px; padding: 0 12px; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 13px; cursor: pointer; transition: all .2s;
}
.opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.price-range { display: flex; gap: 8px; margin-top: 14px; }
.price-range input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; background: var(--surface); }
.filter-toggle { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.empty { text-align: center; padding: 80px 20px; }
.empty h2 { font-family: var(--serif); font-size: 38px; margin-bottom: 10px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; padding: 0 10px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid.loading { opacity: .4; transition: opacity .2s; }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: 28px 0 40px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: 92px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 80vh; overflow-y: auto; scrollbar-width: none; }
.thumbs button { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; opacity: .55; border: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.thumbs button.active, .thumbs button:hover { opacity: 1; border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--sand); }
.stage::-webkit-scrollbar { display: none; }
.stage figure { flex: 0 0 100%; margin: 0; aspect-ratio: 4/5; scroll-snap-align: center; cursor: zoom-in; overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage-dots { display: none; justify-content: center; gap: 6px; margin-top: 12px; }
.stage-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; }
.stage-dots span.active { width: 20px; background: var(--ink); }
.pdp-info { position: sticky; top: 92px; }
.pdp-info h1 { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 50px); letter-spacing: -.01em; margin: 6px 0 16px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 600; flex-wrap: wrap; }
.pdp-price s { font-size: 17px; color: var(--muted); font-weight: 400; }
.pdp-price .off { font-size: 12px; background: var(--sale); color: #fff; padding: 4px 8px; letter-spacing: .08em; border-radius: 2px; }
.condition-box { margin: 26px 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cond-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 8px; }
.cond-meter i { height: 4px; border-radius: 2px; background: var(--line); }
.cond-meter i.on { background: var(--accent); }
.cond-labels { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 10.5px; color: var(--muted); gap: 4px; }
.cond-labels span.on { color: var(--ink); font-weight: 700; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 26px; margin: 22px 0; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(59, 107, 69, .15); }
.dot.off { background: var(--sale); box-shadow: 0 0 0 4px rgba(166, 70, 42, .15); }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.side-row .btn { height: 46px; font-size: 11px; }
.side-row .btn .saved-fill { fill: var(--sale); stroke: var(--sale); }
.pdp-desc { margin-top: 28px; border-top: 1px solid var(--line); }
.pdp-desc details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.pdp-desc summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pdp-desc summary::after { content: "+"; }
.pdp-desc details[open] summary::after { content: "–"; }
.pdp-desc summary::-webkit-details-marker { display: none; }
.pdp-desc .content { color: var(--ink-2); padding-top: 12px; white-space: pre-line; }
.preview-bar { background: #FFF4D6; border: 1px solid #EBD38C; color: #6D5310; padding: 12px 18px; border-radius: var(--radius); margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15, 14, 12, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lightbox button { position: absolute; color: #fff; width: 52px; height: 52px; display: grid; place-items: center; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
.auth-card input:not([type=checkbox]):not([type=radio]), .auth-card select, .form-plain input:not([type=checkbox]):not([type=radio]), .form-plain textarea, .form-plain select {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field textarea, .form-plain textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .auth-card input:focus, .form-plain input:focus, .form-plain textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 22, 20, .06);
}
.field .error, .errorlist { color: var(--sale); font-size: 12.5px; list-style: none; padding: 0; margin: 4px 0 0; }
.field.has-error input, .field.has-error select { border-color: var(--sale); }
.helptext { font-size: 12px; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.radio-card input { margin-top: 3px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.radio-card .rc-main { flex: 1; }
.radio-card strong { display: block; font-size: 14.5px; }
.radio-card small { color: var(--muted); font-size: 13px; }
.radio-card .rc-price { font-weight: 600; }

/* ---------- Carrito / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: 40px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line .thumb { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { font-size: 15px; font-weight: 600; margin: 2px 0 4px; }
.cart-line .remove { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; }
.qty button { width: 34px; height: 34px; }
.qty input { width: 40px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 92px; }
.summary h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 18px; font-weight: 700; }
.coupon-form { display: flex; gap: 8px; margin: 18px 0; }
.coupon-form input { flex: 1; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; text-transform: uppercase; background: var(--bg); }
.mini-lines { display: grid; gap: 14px; margin-bottom: 18px; max-height: 300px; overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.mini-line img { width: 56px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.checkout-section { margin-bottom: 36px; }
.checkout-section h2 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.checkout-section h2 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.free-ship-bar { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.free-ship-bar .bar { height: 4px; border-radius: 2px; background: rgba(47, 59, 44, .15); margin-top: 8px; overflow: hidden; }
.free-ship-bar .bar i { display: block; height: 100%; background: var(--accent); }

/* ---------- Pedido ---------- */
.order-hero { text-align: center; padding: 56px 0 20px; }
.order-hero h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); margin: 10px 0; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); margin: 36px 0; position: relative; }
.timeline div { text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 28px; }
.timeline div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line); z-index: 1; }
.timeline div::after { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.timeline div:first-child::after { display: none; }
.timeline div.done { color: var(--ink); font-weight: 600; }
.timeline div.done::before, .timeline div.done::after { background: var(--accent); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.info-card h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.bank-box { white-space: pre-line; background: var(--bg); border-radius: var(--radius); padding: 16px; font-size: 14px; margin: 12px 0; font-family: ui-monospace, Consolas, monospace; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--sand); }
.st-wait { background: #F4ECD9; color: #85621A; }
.st-review { background: #F7E5D2; color: #94531C; }
.st-paid, .st-prep { background: #DFE8F2; color: #2C4E77; }
.st-ship { background: #E4DEF1; color: #4E3F7A; }
.st-done { background: #DEEBDF; color: #2F6239; }
.st-cancel { background: #EEE5E2; color: #8D3B2A; }

/* ---------- Cuenta / auth ---------- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 56px var(--gutter); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-family: var(--serif); font-size: 46px; text-align: center; margin-bottom: 8px; }
.auth-card .lead { text-align: center; color: var(--muted); margin-bottom: 30px; }
.auth-card form p, .auth-card form > div { margin-bottom: 14px; }
.auth-card label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.auth-card input[type=checkbox] { accent-color: var(--ink); margin-right: 6px; }
.auth-card button[type=submit], .auth-card form button:not(.google-btn):not([type=button]) {
  width: 100%; height: 50px; background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 8px;
}
.auth-card .helptext, .auth-card .helptext ul { font-size: 12px; color: var(--muted); padding-left: 16px; margin: 6px 0; }
.auth-card a { text-decoration: underline; text-underline-offset: 3px; }
.google-btn { width: 100%; height: 50px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; transition: border-color .2s; }
.google-btn:hover { border-color: var(--ink); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 20px 0 60px; }
.account-nav { display: grid; gap: 2px; align-content: start; }
.account-nav a, .account-nav button { padding: 12px 14px; border-radius: var(--radius); text-align: left; font-size: 14px; }
.account-nav a.active, .account-nav a:hover, .account-nav button:hover { background: var(--surface); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders-table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.orders-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); }

/* ---------- Páginas de contenido ---------- */
.prose { font-size: 16px; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 40px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 8px; }
.prose ul { padding-left: 18px; }
.prose li { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* ---------- Mensajes / toasts ---------- */
.toasts { position: fixed; top: 86px; right: 18px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow);
  animation: toastIn .4s var(--ease) both;
}
.toast.warning { background: #5E4613; }
.toast.error { background: var(--sale); }
.toast.success { background: var(--accent); }
.toast button { margin-left: auto; color: inherit; opacity: .7; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(88vw, 380px); max-height: none; background: var(--bg); padding: 0 20px 100px; transform: translateX(-100%); transition: transform .4s var(--ease); }
  .filters.open { transform: none; }
  .filters .drawer-head { margin: 0 -20px; }
  .filter-toggle { display: inline-flex; }
  .filters-apply { position: fixed; bottom: 0; left: 0; width: inherit; padding: 14px 20px; background: var(--bg); border-top: 1px solid var(--line); }
}
@media (min-width: 1101px) { .filters .drawer-head, .filters-apply { display: none; } }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-row { height: 62px; }
  .logo { font-size: 26px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 62vw; order: -1; }
  .hero-copy { padding: 40px var(--gutter) 48px; }
  .hero-stamp { display: none; }
  .split, .pdp, .cart-layout, .account-layout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; position: static; margin: 0 calc(var(--gutter) * -1); }
  .gallery .stage { border-radius: 0; }
  .thumbs { display: none; }
  .stage-dots { display: flex; }
  .pdp { padding-top: 0; }
  .pdp-info, .summary { position: static; }
  .promise { grid-template-columns: 1fr 1fr; }
  .promise div:nth-child(2) { border-right: 0; }
  .promise div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .account-nav { grid-auto-flow: column; overflow-x: auto; }
  .card-quick { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .card-tags { top: 8px; left: 8px; }
  .tag { font-size: 9px; padding: 4px 7px; }
  .fav-btn { width: 34px; height: 34px; top: 6px; right: 6px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line .line-price { grid-column: 2; }
  .buy-row { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; }
  .promise div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .timeline { font-size: 10px; }
  .timeline div { font-size: 10.5px; }
  .orders-table .hide-sm { display: none; }
  .header-actions .hide-sm { display: none; }
}

/* ---------- Ajustes de dispositivos ---------- */
.panel-chip { height: 32px; font-size: 12px; font-weight: 700; margin-right: 6px; background: var(--accent); color: #fff; border-color: var(--accent); }
.panel-chip:hover { background: var(--ink); border-color: var(--ink); }
.wa-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #EAF3EC; border-color: #C9DFCF; }
.wa-float { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
.site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
img { height: auto; }
table { max-width: 100%; }
/* Pantallas táctiles: sin efectos que dependan del hover */
@media (hover: none) {
  .card-quick { display: none; }
  .card:hover .card-media img { transform: none; }
  .card:hover .card-media .alt-img { opacity: 0; }
}
/* Pantallas grandes */
@media (min-width: 1800px) {
  :root { --maxw: 1680px; }
  body { font-size: 16px; }
}
/* Tablets */
@media (min-width: 641px) and (max-width: 1100px) {
  .footer-grid { gap: 28px; }
  .summary { padding: 22px; }
}
/* Teléfonos */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; } /* evita el zoom automático de iOS */
  .panel-chip { display: none; }
  .section-head h2 { font-size: 34px; }
  .page-head { padding: 28px 0 18px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .toolbar { flex-wrap: wrap; }
  .summary { padding: 20px; }
  .coupon-form { flex-wrap: wrap; }
  .coupon-form input { min-width: 0; }
  .orders-table td, .orders-table th { padding: 12px 6px; }
  .wa-card .btn { width: 100%; }
  .whatsapp-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-bottom { flex-direction: column; }
  .toasts { top: auto; bottom: 86px; right: 12px; left: 12px; width: auto; }
}
/* Teléfonos chicos (iPhone SE, Android compactos) */
@media (max-width: 380px) {
  .header-row { padding: 0 8px; }
  .logo { font-size: 22px; letter-spacing: .1em; }
  .logo small { font-size: 7px; letter-spacing: .3em; }
  .icon-btn { width: 38px; height: 38px; }
  .header-actions { gap: 0; }
  .grid, .grid-3 { gap: 22px 10px; }
  .card-title { font-size: 13.5px; }
  .btn { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline div { font-size: 9px; }
}

/* ---------- Quién está detrás (Sobre mí) ---------- */
.owner-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line); }
.owner-intro { display: flex; gap: 28px; align-items: center; margin: 4px 0 30px; }
.owner-lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0; }
.owner-sign { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.owner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.owner-signature { font-family: var(--serif); font-size: 30px; color: var(--ink); margin: 18px 0 0; }
.owner-band { display: flex; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.owner-band .owner-photo { width: 120px; height: 120px; }
.owner-band h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 8px 0 10px; line-height: 1.1; }
.owner-band p { color: var(--ink-2); margin: 0 0 14px; max-width: 640px; }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .owner-intro, .owner-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .owner-intro .owner-photo { width: 116px; height: 116px; }
  .owner-band .owner-photo { width: 96px; height: 96px; }
  .owner-lead { font-size: 17px; }
  .owner-actions .btn { flex: 1 1 100%; justify-content: center; }
}
