/* ==========================================================
   Vitrina · Tienda
   ========================================================== */
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body { padding-bottom: 0; } }
.only-mobile { display: inline-grid; }
@media (min-width: 900px) { .only-mobile { display: none; } }
@media (max-width: 899px) { .hide-sm { display: none; } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__bg { fill: var(--ink); }
.logo--light .logo__bg { fill: #fff; }
.logo__word { font: 800 1.55rem/1 var(--font-head); letter-spacing: -.03em; color: var(--ink); text-transform: lowercase; }
.logo--light .logo__word { color: #fff; }
.logo__img { display: block; height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.logo__img--auto-light { filter: brightness(0) invert(1); }
.logo__img--plate { background: #fff; padding: 4px 8px; border-radius: 8px; }
@media (min-width: 900px) { .logo__img { height: 46px; max-width: 230px; } }

/* Barra de anuncio (mensajes que rotan) */
.announce { background: var(--ink); color: #fff; font-size: .85rem; }
.announce__in { position: relative; display: grid; min-height: 36px; place-items: center; text-align: center; }
.announce__msg { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; padding: 8px 0; pointer-events: none; }
.announce__msg.is-on { opacity: 1; transform: none; pointer-events: auto; }
.announce a { text-decoration: none; }
.announce a:hover span { text-decoration: underline; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--header-bg, #f6f3ed) 92%, transparent); color: var(--header-fg, inherit); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,.4); }
.site-header__in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
.site-header__in > .only-mobile { grid-area: menu; }
.site-header__logo { grid-area: logo; text-decoration: none; }
.search { grid-area: search; }
.site-header__actions { grid-area: actions; display: flex; gap: 2px; justify-content: flex-end; }
@media (min-width: 900px) {
  .site-header__in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
}

/* Buscador */
.search { position: relative; }
.search__ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search__input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.search__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(194,65,12,.15); }
.search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; z-index: 60; max-height: 70vh; overflow: auto; }
.sr { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.sr:hover, .sr:focus { background: var(--paper); }
.sr img { border-radius: 8px; }
.sr span span { display: block; }
.sr strong { font-weight: 600; font-size: .95rem; }
.sr--all { grid-template-columns: 1fr auto; font-weight: 600; color: var(--brand); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.sr-empty { padding: 14px; margin: 0; color: var(--text-2); }

/* Navegación de categorías */
.catnav { border-top: 1px solid var(--line); display: none; }
@media (min-width: 900px) { .catnav { display: block; } }
.catnav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.catnav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; transition: background .15s; }
.catnav a:hover { background: var(--muted); }
.catnav a.is-active { background: var(--ink); color: #fff; }
.catnav__deal { margin-left: auto; color: var(--brand); font-weight: 700 !important; }
.catnav__deal.is-active { background: var(--brand) !important; }

/* Menú móvil */
.menu-list a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 6px; min-height: 52px; text-decoration: none; font-weight: 500; border-radius: 12px; }
.menu-list a:hover { background: var(--paper); }
.menu-list__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--muted); }
.menu-list__label { font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 16px 6px 6px; }
.menu-list__label:first-child { margin-top: 0; }

/* Tabbar móvil */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 900px) { .tabbar { display: none; } }
.tabbar__item { position: relative; display: grid; justify-items: center; gap: 2px; padding: 9px 2px 7px; min-height: 60px; font-size: .7rem; font-weight: 600; text-decoration: none; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.tabbar__item.is-active { color: var(--brand); }
.tabbar__count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--brand); color: #fff; font: 700 10px/17px var(--font-head); padding: 0 4px; }
.tabbar__count:empty { display: none; }

/* Secciones */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section--tight { padding: clamp(24px, 4vw, 44px) 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 4px 0 0; color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 700 .78rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { color: var(--brand); }

/* Inicio: banner principal + promos */
.hero { padding: 20px 0 8px; }
.hero__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; min-height: 500px; } .hero__grid > .hero-slider { grid-row: span 2; } .hero__grid--solo { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; } }

/* Banners (comunes a todas las versiones; los temas ajustan proporciones y tipografía) */
.bn { position: relative; display: grid; overflow: hidden; isolation: isolate; text-decoration: none; background: var(--bn-bg, var(--ink)); color: #fff; border-radius: var(--r-xl); }
.bn--dark-text { color: var(--ink); }
.bn__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 4vw, 48px); }
.bn__tag { font: 700 .76rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); }
.bn--dark-text .bn__tag { background: rgba(0,0,0,.08); }
.bn__title { margin: 0; color: inherit; font-size: clamp(1.5rem, 3.2vw, 2.3rem); max-width: 16ch; }
.bn__sub { margin: 0; max-width: 40ch; opacity: .86; }
.bn__btn { margin-top: 6px; --bg: var(--brand); --fg: var(--on-brand); --bd: var(--brand); pointer-events: none; }
a.bn:hover .bn__btn { --bg: var(--brand-hover); --bd: var(--brand-hover); }
.bn__art { position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; display: grid; place-items: end center; z-index: 1; pointer-events: none; }
.bn__art img { width: 100%; max-width: 380px; height: auto; max-height: 100%; object-fit: contain; border-radius: 28px; transform: rotate(-4deg) translate(6%, 6%); transition: transform .4s var(--ease); }
a.bn:hover .bn__art img { transform: rotate(-2deg) translate(4%, 4%) scale(1.03); }
.bn--dividido .bn__text { max-width: 62%; }
.bn--imagen { min-height: 260px; }
.bn__bg { position: absolute; inset: 0; z-index: 0; }
.bn__bg img { width: 100%; height: 100%; object-fit: cover; }
.bn--imagen .bn__overlay { position: relative; z-index: 2; align-self: end; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.bn--imagen.bn--dark-text .bn__overlay { background: linear-gradient(0deg, rgba(255,255,255,.75), rgba(255,255,255,0)); }
.bn--texto { place-items: center start; }
/* Tamaños */
.bn--hero { min-height: 420px; height: 100%; }
.bn--hero .bn__title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; max-width: 12ch; }
.bn--hero .bn__text { justify-content: center; }
.bn--promo { min-height: 220px; }
.bn--promo .bn__art { width: 44%; }
.bn--strip { min-height: 0; border-radius: var(--r-lg); }
.bn--strip .bn__text { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; padding: 22px clamp(20px, 4vw, 40px); gap: 8px 24px; }
.bn--strip .bn__title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); max-width: none; flex: 1 1 260px; }
.bn--strip .bn__sub { flex: 2 1 280px; }
.bn--strip .bn__btn { margin: 0; }
.bn--strip.bn--imagen { min-height: 180px; }
@media (max-width: 699px) {
  .bn--hero { min-height: 460px; }
  .bn--dividido .bn__text { max-width: 100%; padding-bottom: 45%; }
  .bn--hero.bn--dividido .bn__text { padding-bottom: 58%; justify-content: flex-start; }
  .bn__art { width: 70%; height: 55%; right: -4%; }
  .bn--promo.bn--dividido .bn__text { max-width: 62%; padding-bottom: 22px; }
  .bn--promo .bn__art { width: 46%; height: 100%; }
  .bn--strip .bn__text { flex-direction: column; align-items: flex-start; }
}

/* Carrusel principal */
.hero-slider { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 420px; }
.hero__track { display: grid; height: 100%; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.hero-slide.is-on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.hero-slide > .bn { height: 100%; border-radius: 0; }
.hero__ctrls { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); border-radius: var(--r-pill); padding: 4px; }
.hero__arrow { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero__arrow:hover { background: rgba(255,255,255,.18); }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; position: relative; }
.hero__dot::after { content: ""; position: absolute; inset: -10px; }
.hero__dot.is-on { background: #fff; width: 22px; border-radius: 6px; }

/* Promos dobles */
.promo-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .promo-grid--2, .promo-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .promo-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Categorías */
.cats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(5, 1fr); } }
.cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 18px; border-radius: var(--r-lg); background: var(--cat); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s var(--ease); }
.cat:hover { transform: translateY(-3px); }
.cat__media { display: block; }
.cat__ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.7); display: grid; place-items: center; }
.cat--img .cat__media { position: absolute; right: -8%; bottom: -8%; width: 70%; }
.cat--img .cat__media img { width: 100%; height: auto; border-radius: 22px; transition: transform .35s var(--ease); }
.cat--img:hover .cat__media img { transform: scale(1.06) rotate(-3deg); }
.cat__body { position: relative; z-index: 1; display: flex; flex-direction: column; }
.cat--img .cat__body { order: -1; }
.cat__name { font: 700 1.08rem/1.2 var(--font-head); }
.cat__count { font-size: .85rem; color: var(--text-2); }
.cats .cat:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 640px) { .cats .cat:last-child:nth-child(odd) { grid-column: auto; } }

/* Carrusel de productos */
.pcarousel { position: relative; }
.pcarousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 46%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.pcarousel__track::-webkit-scrollbar { display: none; }
.pcarousel__track > * { scroll-snap-align: start; }
@media (min-width: 760px) { .pcarousel__track { grid-auto-columns: calc((100% - 28px) / 3); } }
@media (min-width: 1100px) { .pcarousel__track { grid-auto-columns: calc((100% - 56px) / 5); } }
.pcarousel__btn { position: absolute; top: 38%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); display: none; place-items: center; cursor: pointer; }
.pcarousel__btn--prev { left: -12px; } .pcarousel__btn--next { right: -12px; }
@media (hover: hover) and (min-width: 900px) { .pcarousel__btn { display: grid; } .pcarousel.at-start .pcarousel__btn--prev, .pcarousel.at-end .pcarousel__btn--next { opacity: 0; pointer-events: none; } }

/* Grilla de productos */
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pgrid--list { grid-template-columns: 1fr !important; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.pcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.pcard__media { position: relative; display: block; background: var(--tint); aspect-ratio: 1; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pcard__wish { position: absolute; z-index: 3; top: 8px; right: 8px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; transition: transform .15s, color .15s; }
.pcard__wish:hover { transform: scale(1.08); }
.pcard__wish.is-on, [data-wish].is-on { color: var(--brand); }
.pcard__wish.is-on svg, [data-wish].is-on svg { fill: currentColor; }
.pcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.pcard__brand { margin: 0; font: 700 .72rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pcard__title { font: 600 .98rem/1.3 var(--font-body); margin: 4px 0 6px; }
.pcard__title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a::after { content: ""; position: absolute; inset: 0 0 64px; }
.pcard__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pcard__add.is-added { --bg: var(--ok); --bd: var(--ok); }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price__now { font: 700 1.15rem var(--font-head); }
.price__old { font-size: .85rem; color: var(--text-3); }
@media (max-width: 480px) {
  .pcard__body { padding: 10px 11px 12px; }
  .pcard__title { font-size: .9rem; }
  .pcard__add span { display: none; }
  .pcard__add { width: 40px; padding: 0; }
  .pcard [data-notify] span { display: none; }
  .pcard [data-notify] { width: 40px; padding: 0; }
  .pcard__rating .small { display: none; }
}
.pcard--list { flex-direction: row; }
.pcard--list .pcard__media { width: 38%; max-width: 240px; flex: none; }
.pcard--list .pcard__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Oferta del día */
.deal { display: grid; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--lime); }
@media (min-width: 860px) { .deal { grid-template-columns: 1fr 1fr; } }
.deal__media { background: var(--tint, #d2f0e9); display: grid; place-items: center; min-height: 280px; }
.deal__media img { width: min(100%, 460px); }
.deal__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.deal__body h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.countdown { display: flex; gap: 8px; margin: 14px 0 22px; }
.countdown div { background: var(--ink); color: #fff; border-radius: 14px; min-width: 64px; padding: 10px 8px; text-align: center; }
.countdown strong { display: block; font: 800 1.6rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #d6d3d1; }
.deal .price__now { font-size: 2rem; }
.deal__tag { align-self: flex-start; margin-bottom: 12px; }
.deal__desc { color: var(--ink-2); }
.brands-wrap { text-align: center; }
.brands-wrap h2 { margin-bottom: 22px; }

/* Marcas */
.brands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.brands a { padding: 14px 26px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); font: 800 1.15rem var(--font-head); letter-spacing: .02em; text-decoration: none; color: var(--ink-2); transition: background .15s, color .15s; }
.brands a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Beneficios + pie */
.perks { border-top: 1px solid var(--line); background: var(--surface); }
.perks__in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
@media (min-width: 900px) { .perks__in { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; gap: 12px; align-items: center; }
.perk__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.perk strong { display: block; font-family: var(--font-head); }
.perk span { font-size: .85rem; color: var(--text-2); }
.site-footer { background: var(--footer-bg, var(--ink)); color: color-mix(in srgb, var(--footer-fg, #ffffff) 80%, transparent); padding-top: 48px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 36px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer h3 { color: var(--footer-fg, #fff); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--footer-fg, #fff); text-decoration: underline; }
.site-footer__brand p { margin: 14px 0 18px; }
.contact li { display: flex; gap: 10px; align-items: flex-start; }
.contact svg { color: var(--accent); margin-top: 2px; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter .input { flex: 1 1 200px; background: color-mix(in srgb, var(--footer-fg, #fff) 8%, var(--footer-bg, var(--ink))); border-color: color-mix(in srgb, var(--footer-fg, #fff) 22%, transparent); color: var(--footer-fg, #fff); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid color-mix(in srgb, var(--footer-fg, #fff) 14%, transparent); font-size: .85rem; color: color-mix(in srgb, var(--footer-fg, #fff) 62%, transparent); }
.site-footer__legal a { color: var(--footer-fg, #fff); font-weight: 600; }
.wa-float { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: var(--z-nav); width: 56px; height: 56px; border-radius: 50%; background: #128c4a; color: #fff; display: grid; place-items: center; box-shadow: var(--sh-2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
@media (min-width: 900px) { .wa-float { bottom: 24px; right: 24px; } }

/* Migas de pan */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .88rem; color: var(--text-2); padding: 18px 0 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs svg { color: var(--text-3); }

/* ---------- Catálogo ---------- */
.catalog { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 56px; }
@media (min-width: 1000px) { .catalog { grid-template-columns: 260px 1fr; } }
.catalog__title { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.catalog__title h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; }
.filters { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px; align-self: start; position: sticky; top: 150px; }
.filters h3 { font-size: .95rem; margin: 0 0 10px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.filters legend { font: 700 .95rem var(--font-head); margin-bottom: 8px; padding: 0; }
.filter-cats a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.filter-cats a:hover { background: var(--paper); }
.filter-cats a.is-active { background: var(--ink); color: #fff; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range .input { min-height: 42px; padding: 8px 10px; }
@media (max-width: 999px) { .filters--desktop { display: none; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar__left, .toolbar__right { display: flex; align-items: center; gap: 8px; }
.toolbar .select { min-height: 42px; width: auto; padding: 6px 36px 6px 12px; border-radius: var(--r-pill); }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 2px; background: var(--surface); }
.seg button { width: 38px; height: 36px; border: 0; background: none; border-radius: var(--r-pill); cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.seg button.is-on { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; min-height: 36px; border-radius: var(--r-pill); background: var(--ink); color: #fff; border: 0; font-size: .85rem; cursor: pointer; }
.chip--clear { background: transparent; color: var(--brand); font-weight: 600; text-decoration: underline; }
@media (min-width: 1000px) { .btn-filters { display: none !important; } }

/* ---------- Producto ---------- */
.pdp { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 4px 0 48px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.gallery { display: grid; gap: 12px; align-self: start; }
@media (min-width: 960px) { .gallery { position: sticky; top: 150px; grid-template-columns: 84px 1fr; } .gallery__thumbs { flex-direction: column; } }
.gallery__main { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--tint); cursor: zoom-in; order: 1; }
@media (min-width: 960px) { .gallery__main { order: 2; } .gallery__thumbs { order: 1; } }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.gallery__main.is-zoom img { transform: scale(2); }
.gallery__thumbs { order: 2; display: flex; gap: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 76px; height: 76px; border-radius: 16px; border: 2px solid transparent; overflow: hidden; padding: 0; cursor: pointer; background: var(--tint); }
.gallery__thumbs button.is-on { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo__brand { font: 700 .82rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.pinfo h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 6px 0 10px; }
.pinfo__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--text-2); font-size: .9rem; margin-bottom: 18px; }
.pinfo__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pinfo__price .price__now { font-size: 2.2rem; }
.pinfo__price .price__old { font-size: 1.1rem; }
.pinfo__cuotas { margin: 4px 0 18px; color: var(--text-2); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock--ok { color: var(--ok); } .stock--low { color: var(--warn); } .stock--out { color: var(--danger); }
.variant { margin: 18px 0; }
.variant__label { font-weight: 600; margin-bottom: 8px; }
.variant__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; }
.opt:hover { border-color: var(--ink); }
.opt.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.buybox { display: grid; gap: 10px; grid-template-columns: auto 1fr; align-items: center; margin: 18px 0 10px; }
.buybox .btn--primary { grid-column: 2; }
.buybox .btn--ink { grid-column: 1 / -1; }
.buybox .qty { height: 54px; }
.buybox .qty button { height: 52px; width: 46px; }
.pinfo__mini { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.estimate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; margin: 18px 0; }
.estimate__row { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.estimate__row svg { color: var(--brand); margin-top: 2px; }
.estimate select { min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); }
.tabs { margin-top: 8px; }
.tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs__list button { padding: 12px 16px; border: 0; background: none; font: 600 1rem var(--font-head); color: var(--text-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs__list button[aria-selected="true"] { color: var(--ink); border-color: var(--brand); }
.tabs__panel { padding: 18px 0; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--text-2); font-weight: 500; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.review--store { margin-left: 18px; padding-left: 14px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 12px 12px 0; padding: 10px 14px; }
.rating-summary { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.rating-summary strong { font: 800 2.6rem var(--font-head); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 44; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 12px; transform: translateY(120%); transition: transform .25s var(--ease); }
.sticky-buy.is-show { transform: none; }
.sticky-buy img { width: 44px; height: 44px; border-radius: 10px; }
.sticky-buy .btn { margin-left: auto; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Carrito (página) ---------- */
.ship-meter { background: var(--paper); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.ship-meter p { margin: 0 0 8px; }
.ship-meter__bar { height: 8px; border-radius: 6px; background: var(--muted); overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #f59e0b); border-radius: 6px; transition: width .4s var(--ease); }
.cline { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cline__img { border-radius: 14px; overflow: hidden; background: var(--muted); }
.cline__info { display: grid; gap: 4px; }
.cline__name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.cline__name:hover { color: var(--brand); }
.qty--sm button { width: 34px; height: 34px; }
.qty--sm input { width: 32px; }
.cart-page { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 960px) { .cart-page { grid-template-columns: 1fr 380px; align-items: start; } }
.summary { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 22px; position: sticky; top: 150px; }
.summary h2 { font-size: 1.3rem; }
.summary__row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.summary__total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font: 800 1.3rem var(--font-head); }
.coupon { display: flex; gap: 8px; margin: 12px 0; }
.coupon .input { min-height: 44px; text-transform: uppercase; }
.trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: .82rem; color: var(--text-2); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Checkout ---------- */
.steps { display: flex; gap: 6px; margin: 4px 0 22px; counter-reset: st; }
.steps li { list-style: none; flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--text-3); }
.steps li::before { counter-increment: st; content: counter(st); width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--muted); font-family: var(--font-head); }
.steps li.is-on { color: var(--ink); }
.steps li.is-on::before { background: var(--ink); color: #fff; }

.steps { padding: 0; }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 16px; }
.co-card h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.co-card h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.choice { display: grid; gap: 10px; }
.choice label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; }
.choice label:hover { border-color: var(--ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.choice small { display: block; color: var(--text-2); }
.choice__price { font-weight: 700; font-family: var(--font-head); }
.pay-note { background: var(--paper); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; margin-top: 10px; display: flex; gap: 10px; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.mini-line img { border-radius: 10px; background: var(--muted); }
.mini-line__q { position: relative; }
.mini-line__q b { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }

/* ---------- Confirmación y rastreo ---------- */
.done { max-width: 720px; margin: 0 auto; padding: 32px 0 64px; }
.done__hero { text-align: center; margin-bottom: 24px; }
.done__check { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.order-id { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); padding: 6px 14px; border-radius: var(--r-pill); font: 800 1.1rem var(--font-head); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline__dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; color: var(--text-3); }
.timeline li.is-done .timeline__dot { background: var(--ok); color: #fff; }
.timeline li.is-current .timeline__dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.timeline li.is-cancel .timeline__dot { background: var(--danger); color: #fff; }
.timeline strong { display: block; }
.track-form { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; } .track-form .btn { margin-bottom: 14px; } }
.steps li.is-done::before { content: ""; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/16px no-repeat; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
main:focus { outline: none; }
.pdp > *, .cart-page > *, .catalog > * { min-width: 0; }
.buybox { grid-template-columns: auto minmax(0, 1fr); }
.buybox .btn { min-width: 0; white-space: normal; }
@media (max-width: 380px) { .buybox .btn--primary { font-size: .95rem; padding: 0 .8em; } }

/* Envío en rastreo */
.ship-info { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: var(--r); padding: 14px; margin-top: 8px; }
.ship-info svg { color: var(--brand); flex: none; margin-top: 2px; }

/* Acordeón (fichas de producto en algunas versiones) */
.acc { border-top: 1px solid var(--line); margin-top: 18px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font: 600 1rem var(--font-head); }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary svg { transition: transform .2s; }
.acc__item[open] summary svg { transform: rotate(180deg); }
.acc__body { padding: 0 0 18px; }
.acc__body .estimate { margin: 0; }

/* Galería apilada */
.gstack { display: grid; gap: 10px; }
.gstack__item { margin: 0; overflow: hidden; background: var(--tint); aspect-ratio: 4 / 5; }
.gstack__item img { width: 100%; height: 100%; object-fit: cover; }

/* Páginas legales */
.legal { padding-bottom: 64px; }
.legal__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .legal__grid { grid-template-columns: minmax(0, 1fr) 260px; } }
.legal__doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 44px); max-width: 820px; }
.legal__doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.legal__doc h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.legal__doc h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.legal__doc p, .legal__doc li { color: var(--text-2); line-height: 1.7; }
.legal__doc ul, .legal__doc ol { padding-left: 22px; }
.legal__doc a { color: var(--brand); }
.legal__aside { align-self: start; position: sticky; top: 150px; }
.legal__aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.legal__aside a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.legal__aside a:hover { background: var(--muted); }

/* Redes sociales */
.social { display: flex; gap: 8px; margin-top: 16px; }
.social__a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .85; }
.social__a:hover { opacity: 1; }

/* Menú: miniatura de categoría */
.menu-list__ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.menu-list__ico--deal { background: var(--lime); }
.catalog__banner { margin-bottom: 18px; }
