:root {
  --sage: #1A9E91; --sage-d: #13857a; --sage-t: #0f7a70; --mist: #E6EBE8; --stone: #CBD5D1;
  --ink: #0A1918; --text: #2a3533; --muted: #5d6967; --paper: #F1F4F2; --line: #d8dfdb;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --pad: clamp(1rem, 4vw, 3rem);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 15px/1.6 var(--sans); color: var(--text); background: var(--paper); }
body.menu-open, body.cart-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; }

h1, h2 { font-family: var(--serif); font-weight: 300; color: var(--ink); line-height: 1.05; letter-spacing: -.03em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.muted { color: var(--muted); }
.link { font-size: 14px; border-bottom: 1px solid currentColor; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(241,244,242,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1320px; height: 4rem; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 2rem; }
.logo { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.02em; color: var(--ink); margin-right: auto; }
.back { width: 2.2rem; height: 2.2rem; margin-right: -1.2rem; border: 1px solid var(--line); border-radius: 99px; font-size: 1.1rem; line-height: 1; }
.back:hover { background: var(--mist); }
.hsearch input { width: 15rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; }
.hsearch input:focus { border-color: var(--ink); }
.nav-links { display: flex; gap: 1.6rem; font-size: 14px; }
.nav-links a, .nav-links button { padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links button:hover, .nav-links [aria-current] { border-color: currentColor; }
.cart-btn { display: flex; align-items: center; gap: .4rem; padding: .4rem 0; font-size: 14px; }
#cartCount { min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 99px; display: grid; place-items: center; background: var(--mist); font-size: 11px; font-weight: 600; }
#cartCount.has { background: var(--ink); color: #fff; }
.burger { display: none; position: relative; width: 2.5rem; height: 2.5rem; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: calc(4rem + 1px) 0 0; z-index: 55; display: flex; flex-direction: column; padding: 1rem var(--pad); background: var(--paper); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .2s; }
.menu a, .menu button { padding: .7rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.7rem; color: var(--ink); text-align: left; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.6rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: background .2s; }
.btn:hover { background: var(--sage-d); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--mist); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; background: var(--ink); }

/* ---------- Hero ---------- */
/* Tira continua: cada foto entera a su proporción, alto ≤ el nativo más chico (699px), sin recorte ni bordes. */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.slides { display: flex; width: max-content; height: min(72vh, 640px); animation: marquee 70s linear infinite; }
.slides img { height: 100%; width: auto; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,24,0) 55%, rgba(10,25,24,.45)); pointer-events: none; }
.strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 2.5rem; padding: .9rem var(--pad); background: var(--ink); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* ---------- Secciones ---------- */
.section { max-width: 1320px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) 0; }
main > :last-child { padding-bottom: clamp(3rem, 6vw, 5rem); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 45%), 1fr)); gap: 1.2rem 1rem; }
.tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--mist); margin-bottom: .5rem; border-radius: 6px; }
.tile span { color: var(--ink); }
.tile:hover span { text-decoration: underline; }

.brands { list-style: none; columns: 3 14rem; column-gap: 2.5rem; }
.brands li { break-inside: avoid; }
.brands a { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.brands a:hover { color: var(--sage-t); }
.brands small { font-family: var(--sans); font-size: 12px; color: var(--muted); }

.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.banners img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.6rem; }
.quote-grid figure { padding: 1.6rem; border-radius: 1rem; background: #fff; }
.quote-grid blockquote { margin-bottom: .8rem; font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: var(--ink); }
.quote-grid figcaption { font-size: 13px; color: var(--muted); }
.ig p { font-size: 1.05rem; }
.ig > a { color: var(--ink); border-bottom: 1px solid currentColor; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: 1.4rem; }
.ig-grid a { display: block; overflow: hidden; border-radius: 4px; background: var(--mist); }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
@media (hover: hover) { .ig-grid a:hover img { transform: scale(1.05); } }
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: 2rem 1rem; }
.cardw { position: relative; min-width: 0; }
.card { display: block; min-width: 0; }
.fav { position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); }
.fav svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav:hover { background: #fff; }
.fav[aria-pressed="true"] svg { fill: currentColor; color: var(--sage-t); stroke: var(--sage-t); }
.fav.big { top: .8rem; right: .8rem; width: 2.8rem; height: 2.8rem; }
.card-img { position: relative; aspect-ratio: 3 / 4; margin-bottom: .7rem; overflow: hidden; border-radius: 4px; background: var(--mist); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .6s; }
@media (hover: hover) { .card:hover .card-img img { transform: scale(1.04); } }
.card-img .alt { opacity: 0; }
@media (hover: hover) { .card:hover .alt { opacity: 1; } }
.card h3 { margin-bottom: .3rem; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.card:hover h3 { text-decoration: underline; }
.card small { font-size: 12px; color: var(--muted); }
.badge { position: absolute; top: .6rem; left: .6rem; z-index: 1; padding: .2rem .6rem; border-radius: 99px; background: var(--sage-t); color: #fff; font-size: 11px; font-weight: 600; }
.badge.dark { background: var(--ink); }
.badge.inline { position: static; }
.brand { display: block; margin-bottom: .15rem; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-t); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.price b { font-weight: 600; color: var(--ink); }
.price s { font-size: .9em; color: var(--muted); }

/* ---------- Tienda ---------- */
.filters { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.selects { display: flex; flex-wrap: wrap; gap: .5rem; }
.selects input, .selects select { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; }
.selects input { flex: 1; min-width: 12rem; }
.selects input:focus, .selects select:focus { border-color: var(--ink); }
.more { display: flex; margin: 2.5rem auto 0; }

/* ---------- Producto ---------- */
.crumbs { margin-bottom: 1.2rem; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.gallery { position: sticky; top: 5rem; }
.gallery-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--mist); border-radius: 6px; }
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.thumbs button { flex: 0 0 4rem; height: 5.4rem; padding: 0; border: 1px solid transparent; opacity: .6; }
.thumbs button:hover, .thumbs button[aria-current] { border-color: var(--ink); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { margin-bottom: .6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.price.big { font-size: 1.5rem; }
.cuotas { margin: .2rem 0 1.6rem; font-size: 14px; color: var(--sage-t); }
.last { margin: -1rem 0 1.2rem; font-size: 13px; font-weight: 600; color: var(--sage-t); }
.guide summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.guide table { width: 100%; margin: .8rem 0; border-collapse: collapse; font-size: 13px; text-align: center; }
.guide th, .guide td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.guide thead th { font-weight: 600; color: var(--ink); background: var(--mist); }
.guide tbody th { font-weight: 500; text-align: left; }
.guide p { font-size: 12px; color: var(--muted); }
.opt { margin-bottom: 1.2rem; }
.opt > span { display: block; margin-bottom: .5rem; font-size: 13px; color: var(--muted); }
.opt > span b { color: var(--ink); }
.opt-vals { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { min-width: 2.9rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; }
.pill:hover:not(:disabled) { border-color: var(--ink); }
.pill.na { border-style: dashed; color: var(--muted); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); border-style: solid; color: #fff; }
.pill:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.actions { display: grid; gap: .5rem; margin-top: 1.6rem; }
.perks { list-style: none; display: grid; gap: .4rem; margin: 1.8rem 0; padding: 1rem 0; border-block: 1px solid var(--line); font-size: 14px; }
.desc h2 { margin-bottom: .5rem; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.desc p { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 1.5rem; background: var(--ink); color: rgba(255,255,255,.85); }
.footer-top { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; }
.footer h2 { margin-bottom: .6rem; color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; font-size: 14px; }
.footer h3 { margin-bottom: .8rem; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.footer-cols p { margin-bottom: .4rem; }
.footer a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.footer a:hover { color: #fff; }
.footer :focus-visible { outline-color: #fff; }
.copy { max-width: 1320px; margin: 3rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- Carrito ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility .3s; }
.drawer.open { visibility: visible; transition: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10,25,24,.5); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; height: 100dvh; padding-bottom: env(safe-area-inset-bottom); width: min(25rem, 100%); display: flex; flex-direction: column; background: var(--paper); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; }
.icon-btn { min-width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
/* Todo el cuerpo scrollea (líneas + checkout): en móvil el form no entra en pantalla. */
#cartBody { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1.2rem; padding: 2rem; text-align: center; }
.ship { margin: 1rem 1.4rem; font-size: 13px; }
.bar { height: 4px; margin-top: .5rem; border-radius: 2px; background: var(--stone); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sage-t); transform-origin: left; transition: transform .4s; }
.lines { list-style: none; flex: none; padding: 0 1.4rem; }
.lines li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.lines img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.lines h3 { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.lines small { font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: .5rem; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
.qty span { min-width: 1.8rem; text-align: center; }
.qty button { width: 2.75rem; height: 2.75rem; }
.qty button:hover:not(:disabled) { background: var(--mist); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.line-end { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 14px; }
.line-end b { font-weight: 600; color: var(--ink); }
.rm { min-height: 2.75rem; padding: 0 .3rem; font-size: 12px; color: var(--muted); text-decoration: underline; }
.drawer-foot { display: grid; gap: .3rem; padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; font-size: 1.05rem; color: var(--ink); }
.drawer-foot small { font-size: 12px; color: var(--muted); }
.drawer-foot .btn { margin-top: .7rem; }
.drawer-foot .code { margin-top: .7rem; padding: .7rem .9rem; border: 1px solid var(--line); background: transparent; font: inherit; font-size: 14px; text-transform: uppercase; }
.mp-err { font-size: 13px; color: #b3261e; }
.mp-err:empty { display: none; }
.ck { display: grid; gap: .5rem; margin-top: .7rem; }
.ck fieldset { display: grid; gap: .35rem; margin: 0; padding: .6rem .8rem; border: 1px solid var(--line); }
.ck legend { padding: 0 .3rem; font-size: 13px; color: var(--muted); }
.ck label { display: flex; gap: .5rem; align-items: center; font-size: 14px; cursor: pointer; }
.ck input:not([type=radio]) { padding: .7rem .9rem; border: 1px solid var(--line); background: transparent; font: inherit; font-size: 14px; }
.ck [hidden] { display: none; }
.drawer-foot .ck .code, .drawer-foot .ck .btn { margin-top: 0; }
dialog.done { max-width: min(420px, calc(100vw - 2rem)); padding: 1.6rem; border: 1px solid var(--line); text-align: center; }
dialog.done::backdrop { background: rgba(10,25,24,.45); }
dialog.done h2 { margin: 0 0 .6rem; }
dialog.done p { margin: 0 0 .8rem; font-size: 14px; }
dialog.done .num { font-size: 1.4rem; color: var(--ink); }

.wa-float { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 50; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; box-shadow: 0 4px 14px rgba(10,25,24,.25); }
.cart-open .wa-float, .menu-open .wa-float { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .pdp, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: relative; top: 0; }
  .quote-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .nav { height: auto; flex-wrap: wrap; gap: 0 .5rem; }
  .logo { line-height: 3.5rem; }
  .back { margin-right: 0; }
  .hsearch { order: 9; flex-basis: 100%; padding-bottom: .6rem; }
  .hsearch input { width: 100%; height: 2.75rem; }
  /* 16px en campos: iOS no hace zoom al enfocar. Áreas táctiles ≥ 44px. */
  .hsearch input, .selects input, .selects select, .drawer-foot .code, .ck input:not([type=radio]) { font-size: 16px; }
  .back, .fav { width: 2.75rem; height: 2.75rem; }
  .chip, .cart-btn { min-height: 2.75rem; }
  .footer-cols a { display: inline-block; padding: .5rem 0; }
  .menu { inset: calc(6.5rem + 1px) 0 0; }
  .nav-links { display: none; }
  .burger { display: block; }
  .grid { grid-template-columns: 1fr 1fr; gap: 1.6rem .7rem; }
  .banners, .footer-cols { grid-template-columns: 1fr; }
  .footer-cols { gap: 1.5rem; }
  .strip { justify-content: flex-start; gap: .2rem 1.4rem; font-size: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) .3rem; scrollbar-width: none; }
  .selects input { min-width: 100%; }
  .selects select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .slides { animation: none; }
}
