/* Cómplices del Fuego · tienda
   Base: referencia aprobada marca-final/tipografia/index.html?a (Switzer para todo, fondo blanco).
   La itálica serif vive solo dentro del logo (SVG).
   Roles de color: cada uno tiene un trabajo y no se mezclan.
   - Acción (exclusivo): --accion, solo en botones que agregan al carrito o llevan a comprar.
   - Marca: bordó en etiquetas, links y detalles; noche en títulos y en la barra.
   - Destacado: dorado en «Recomendado» y bordes premium.
   - Beneficio: verde solo para envío gratis y descuentos.
   Forma: botones y chips en píldora; fotos y tarjetas con radio 6px; paneles 14px. */

:root {
  --bordo: #622E32;
  --noche: #3B1A1D;
  --dorado: #C9A45C;
  --dorado-claro: #E6CF9B;
  --crema: #F7EEE3;
  --accion: #A9503A;        /* terracota oscuro: blanco encima 5,4:1 */
  --accion-hover: #8F4230;
  --ok: #2F6B4F;            /* sobre --ok-bg 5,4:1 */
  --ok-bg: #E5F0E9;
  --blush: #F8EAE5;

  --text: #1D1A18;
  --gris: #6B6560;          /* 5,7:1 sobre blanco */
  --linea: #ECE7E1;
  --foto: #F6F4F1;          /* fondo detrás de fotos de producto */
  --suave: #FAF8F5;         /* fondo alterno de sección */

  --font: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.5 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .price, .money { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--noche); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }

/* Tipografía (escala de la referencia A) */
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bordo); font-weight: 500; margin-bottom: 14px; }
.h1 { font-weight: 500; letter-spacing: -.025em; font-size: 40px; line-height: 1.02; color: var(--noche); }
.h2 { font-weight: 500; letter-spacing: -.025em; font-size: 30px; line-height: 1.05; color: var(--noche); }
.h3 { font-weight: 500; letter-spacing: -.02em; font-size: 22px; line-height: 1.15; color: var(--noche); }
.lead { font-size: 18px; color: var(--gris); max-width: 440px; }
.muted { color: var(--gris); }
.link { color: var(--noche); font-weight: 500; text-underline-offset: 4px; }
.link:hover { color: var(--bordo); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--buy { background: var(--accion); color: #fff; }
.btn--buy:hover { background: var(--accion-hover); }
.btn--ghost { background: transparent; color: var(--noche); border-color: #D9D2CA; }
.btn--ghost:hover { border-color: var(--noche); }
.btn--dark { background: var(--noche); color: #fff; }
.btn--dark:hover { background: #2a1214; }
.btn--sm { height: 46px; padding: 0 22px; }
.btn--block { width: 100%; }

/* Aviso +18 */
.age { width: min(400px, calc(100% - 32px)); border: 0; border-radius: 14px; padding: 32px 26px 26px; text-align: center; background: #fff; color: var(--text); box-shadow: 0 30px 80px -20px rgba(59, 26, 29, .35); }
.age::backdrop { background: rgba(29, 26, 24, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.age img { margin: 0 auto 14px; width: 44px; }
.age h2 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; color: var(--noche); margin-bottom: 6px; }
.age p { color: var(--gris); }
.age__actions { display: grid; gap: 10px; margin-top: 22px; }
.age__bye { margin-top: 16px; color: var(--bordo) !important; }
html.lock body { overflow: hidden; }

/* Barra y header */
.bar { background: var(--noche); color: #F3E9DE; text-align: center; font-size: 13px; padding: 9px var(--gutter); letter-spacing: .01em; }
.head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.head__logo img { width: 140px; }
.head__nav { display: none; gap: 28px; font-size: 14px; font-weight: 500; }
.head__nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.head__nav a:hover, .head__nav a[aria-current="page"] { border-color: var(--noche); }
.cart-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 0 10px 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.cart-btn .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--noche); color: #fff; font-size: 12px; font-weight: 600; }
.cart-btn .count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.25); } }
/* Categorías en celular: píldoras deslizables bajo el header */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 12px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--linea); border-radius: 999px; }
.cats a[aria-current="page"] { background: var(--noche); color: #fff; border-color: var(--noche); }

/* Hero */
.hero { display: grid; gap: 24px; padding: 20px 0 40px; }
.hero__media img { width: 100%; aspect-ratio: 1; object-position: 50% 60%; object-fit: cover; border-radius: var(--r); background: var(--foto); }
.hero .lead { margin: 18px 0 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Garantías */
.trust { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); font-size: 14px; }
.trust li { padding: 16px 4px; }
.trust b { display: block; font-weight: 600; }
.trust span { color: var(--gris); }

/* Secciones */
.sec { padding: 56px 0; }
.sec--alt { background: var(--suave); }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.sec__head p { margin-top: 6px; }
.sec__head a { font-size: 14px; font-weight: 500; white-space: nowrap; }

/* Grilla de productos */
.grid { display: grid; gap: 28px; }
.grid--combos { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.card { display: flex; flex-direction: column; }
.card__ph { position: relative; display: block; background: var(--foto); border-radius: var(--r); overflow: hidden; }
.card__ph img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__ph img { transform: scale(1.03); }
.tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--noche); font-size: 11px; font-weight: 500; padding: 5px 9px; border-radius: 99px; }
.tag--rec { background: var(--dorado); color: var(--noche); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.card__name { margin-top: 16px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--noche); }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__sub { color: var(--gris); font-size: 14px; margin-top: 2px; }
.price { font-size: 17px; font-weight: 500; margin-top: 10px; }
.price small { color: var(--gris); font-size: 13px; font-weight: 400; margin-left: 6px; }
.card .btn { margin-top: 14px; height: 46px; width: 100%; }
.card__opts { display: flex; gap: 6px; margin-top: 12px; }
.grid--combos .card__name { font-size: 18px; margin-top: 12px; }
.grid--combos .card__sub { font-size: 13px; }
.grid--combos .price { font-size: 16px; margin-top: 6px; }
.grid--combos .price small { display: block; margin: 2px 0 0; }
.grid--combos .btn { height: 42px; padding: 0 12px; font-size: 14px; }

/* Selector de talle (segmented) */
.sizes { display: flex; gap: 6px; }
.size { position: relative; }
.size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 40px; padding: 0 14px; border: 1px solid #D9D2CA; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s; }
.size input:checked + span { background: var(--noche); border-color: var(--noche); color: #fff; }
.size input:focus-visible + span { outline: 2px solid var(--bordo); outline-offset: 2px; }
.size:hover span { border-color: var(--noche); }
.sizes.is-error .size span { border-color: var(--accion); }
.size-err { color: var(--accion); font-size: 13px; margin-top: 6px; }

/* Cómo funciona */
.how { display: grid; gap: 28px; align-items: center; }
.how__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: var(--r); }
.steps { margin-top: 24px; counter-reset: s; border-top: 1px solid var(--linea); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--noche); color: #fff; font-size: 13px; font-weight: 600; }
.steps b { font-weight: 600; }
.steps span { color: var(--gris); font-size: 15px; }
.sig { font-weight: 600; color: var(--bordo); white-space: nowrap; }

/* Ficha de producto (PDP) */
.pdp { display: grid; gap: 28px; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--foto); }
.gal img:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
.gal img:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 9; }
.pdp__info .h2 { font-size: 34px; }
.pdp__info .price { font-size: 22px; margin: 12px 0 4px; }
.cuotas { color: var(--gris); font-size: 14px; }
.cuotas b { font-weight: 500; color: var(--ok); }
.specs { margin: 22px 0; border-top: 1px solid var(--linea); }
.specs > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.specs .muted { text-align: right; }
.pdp__lema { font-size: 18px; color: var(--noche); font-weight: 500; letter-spacing: -.01em; margin-top: 24px; }
.pdp__desc { color: #3B3632; margin-top: 10px; max-width: 540px; }
.pdp__desc p + p { margin-top: 10px; }
.acc { margin-top: 24px; border-top: 1px solid var(--linea); }
.acc details { border-bottom: 1px solid var(--linea); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after, .faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.acc details[open] summary::after, .faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.acc .body { padding: 0 0 18px; color: #3B3632; font-size: 15px; }
.acc ul li { position: relative; padding-left: 16px; margin: 4px 0; }
.acc ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 1px; background: var(--bordo); }
.acc .q { font-weight: 600; margin-top: 12px; }
.acc .q:first-child { margin-top: 0; }

/* Bloques con foto (envío, regalo, lencería) */
.split { display: grid; gap: 24px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.split .lead { margin-top: 14px; }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 6px; height: 11px; border-right: 2px solid var(--bordo); border-bottom: 2px solid var(--bordo); transform: rotate(45deg); }
.split .btn { margin-top: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pills li { font-size: 14px; padding: 7px 12px; border: 1px solid var(--linea); border-radius: 999px; background: #fff; }

/* Club */
.club { display: grid; gap: 20px; padding: 28px 20px; border-radius: 14px; background: var(--noche); color: var(--crema); }
.club .h2 { color: #fff; }
.club .muted { color: rgba(247, 238, 227, .78); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { position: relative; display: grid; gap: 2px; padding: 14px; border: 1px solid rgba(230, 207, 155, .35); border-radius: 10px; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--dorado); background: rgba(201, 164, 92, .12); }
.plan:has(input:focus-visible) { outline: 2px solid var(--dorado-claro); outline-offset: 2px; }
.plan__n { font-size: 13px; color: rgba(247, 238, 227, .78); }
.plan__p { font-size: 20px; font-weight: 600; color: #fff; }
.plan__s { font-size: 12px; color: var(--dorado-claro); }
.themes { display: flex; flex-wrap: wrap; gap: 6px; }
.themes li { font-size: 13px; padding: 6px 11px; border: 1px solid rgba(230, 207, 155, .35); border-radius: 999px; }

/* Categoría lencería */
.grid--lenc { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.grid--lenc .card__ph img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.grid--lenc .card__name { font-size: 17px; margin-top: 12px; }
.grid--lenc .btn { height: 42px; padding: 0 12px; font-size: 14px; }
.grid--lenc .sizes .size span { min-width: 0; height: 34px; padding: 0 10px; font-size: 13px; }

/* FAQ */
.faq { display: grid; gap: 24px; }
.faq__list { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 12px 0; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 0 18px; color: var(--gris); max-width: 62ch; }

/* Footer */
.foot { border-top: 1px solid var(--linea); padding: 48px 0 40px; font-size: 14px; }
.foot__in { display: grid; gap: 28px; }
.foot__logo { width: 120px; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.foot li a { display: inline-block; padding: 5px 0; text-decoration: none; color: var(--gris); }
.foot li a:hover { color: var(--noche); }
.foot__legal { display: grid; gap: 10px; color: var(--gris); border-top: 1px solid var(--linea); padding-top: 20px; }
.foot__legal img { width: 96px; }

/* Carrito (drawer) */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.is-open { display: block; }
.drawer__bg { position: absolute; inset: 0; background: rgba(29, 26, 24, .45); animation: fade .25s ease both; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(29, 26, 24, .35); animation: slide .35s var(--ease) both; }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--linea); }
.drawer__head h2 { font-size: 18px; font-weight: 600; }
.x { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; border-radius: 50%; }
.x:hover { background: var(--suave); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__empty { padding: 48px 0; text-align: center; color: var(--gris); }
.drawer__empty .btn { margin-top: 18px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); background: var(--foto); }
.line__n { font-weight: 500; line-height: 1.25; }
.line__v { font-size: 13px; color: var(--gris); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid #D9D2CA; border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.line__r { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: end; }
.rm { border: 0; background: none; color: var(--gris); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.drawer__foot { border-top: 1px solid var(--linea); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; background: #fff; }
.tot { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.tot-note { font-size: 13px; color: var(--gris); }
.tot-note b { color: var(--ok); font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fields label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.fields .full { grid-column: span 2; }
.fields input, .fields textarea { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #CFC6BD; border-radius: 10px; background: #fff; font-size: 16px; }
.fields textarea { min-height: 64px; resize: vertical; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--noche); box-shadow: 0 0 0 3px rgba(59, 26, 29, .12); }

/* Aviso de agregado */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 160%); background: var(--noche); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform .35s var(--ease); white-space: nowrap; }
.toast.is-on { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ≥ 760 (corte de la referencia) */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .head__in { height: 68px; }
  .head__logo img { width: 150px; }
  .head__nav { display: flex; }
  .cats { display: none; }
  .h1 { font-size: 58px; }
  .h2 { font-size: 38px; }
  .hero { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 56px 0 64px; }
  .hero__media { order: 2; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust li { padding: 18px 4px; }
  .sec { padding: 72px 0; }
  .grid--kits { grid-template-columns: repeat(3, 1fr); }
  .grid--combos { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
  .grid--combos .price small { display: inline; margin-left: 6px; }
  .grid--lenc { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
  .how, .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--rev > :first-child { order: 2; }
  .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .pdp__info { position: sticky; top: 100px; }
  .pdp__info .h2 { font-size: 44px; }
  .club { grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 44px; align-items: center; }
  .faq { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
  .foot__in { grid-template-columns: 1fr 2fr; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid--lenc { grid-template-columns: repeat(4, 1fr); }
}

/* Migas y detalles de ficha */
.crumbs { padding-top: 18px; font-size: 13px; color: var(--gris); }
.crumbs a { color: var(--gris); }
.ok-txt { color: var(--ok); font-weight: 600; }

/* Galería en celular: carrusel deslizable para que el precio y el botón queden cerca */
@media (max-width: 759px) {
  .gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gal::-webkit-scrollbar { display: none; }
  .gal img, .gal img:first-child, .gal img:last-child:nth-child(even) { flex: 0 0 86%; aspect-ratio: 1; scroll-snap-align: center; }
}
