/* OLE! Ranch Wear — estilos
   Paleta del brand book (valores sugeridos, editables aquí). */
:root {
  --crema: #F2E6D3;
  --crema-claro: #F8F1E6;   /* superficie de tarjetas y fichas */
  --arena: #D9C3A3;
  --cafe: #38251F;
  --cafe-hover: #4A3229;
  --carbon: #211F1E;
  --dorado: #B38A55;
  --vino: #7B343E;
  --texto: #211F1E;
  --texto-suave: #5A4A42;
  --linea: rgba(56, 37, 31, .16);
  --linea-fuerte: rgba(56, 37, 31, .32);

  --f-display: "Besley", "Rockwell", Georgia, serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* espaciado: escala de 4 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --gutter: 16px;
  --maxw: 1320px;
  --header-h: 72px;
  --radius: 3px;

  /* profundidad: base → elevada → flotante */
  --sh-1: 0 1px 2px rgba(56, 37, 31, .06), 0 2px 6px -2px rgba(56, 37, 31, .08);
  --sh-2: 0 2px 4px rgba(56, 37, 31, .05), 0 14px 34px -14px rgba(56, 37, 31, .28);
  --sh-3: 0 4px 10px rgba(33, 31, 30, .08), 0 30px 70px -20px rgba(33, 31, 30, .45);

  --ease-spring: cubic-bezier(.2, .9, .25, 1.08);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .15 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font: 400 16px/1.7 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); opacity: .07;
}
main, footer, .topbar, .demo-strip { position: relative; z-index: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--cafe); color: var(--crema); padding: var(--s3) var(--s4); }
.skip:focus { top: var(--s4); }

:focus-visible { outline: 2px solid var(--vino); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 15px/1 var(--f-ui); letter-spacing: .01em; text-decoration: none;
  transition: transform .35s var(--ease-spring), opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--dark { background: var(--cafe); color: var(--crema); box-shadow: var(--sh-1); }
.btn--dark:hover { background: var(--cafe-hover); }
.btn--light { background: var(--crema); color: var(--cafe); }
.btn--light:hover { background: #fff8ec; }
.btn--ghost-light { border-color: rgba(242, 230, 211, .7); color: var(--crema); background: rgba(33, 31, 30, .18); }
.btn--ghost-light:hover { background: rgba(242, 230, 211, .14); }
.btn--outline { border-color: var(--cafe); color: var(--cafe); background: transparent; }
.btn--outline:hover { background: rgba(56, 37, 31, .06); }
.btn--wa { background: #1E5E3A; color: #fff; }
.btn--wa:hover { background: #18502F; }
.btn--block { width: 100%; }
.btn .ico { width: 20px; height: 20px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--cafe);
  transition: transform .3s var(--ease-spring), background-color .2s ease;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: rgba(56, 37, 31, .08); }
.icon-btn:active { transform: scale(.92); }

.link {
  background: none; border: 0; padding: var(--s1) 0; color: var(--cafe);
  font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.link:hover { color: var(--vino); }
.link:active { opacity: .7; }

/* ---------- Encabezado ---------- */
.topbar {
  background: var(--cafe); color: var(--crema);
  font-size: 13px; letter-spacing: .02em; text-align: center; padding: 7px var(--gutter);
}
.demo-strip {
  background: var(--vino); color: #fff; font-size: 13px; line-height: 1.45; text-align: center; padding: 6px var(--gutter);
}
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 230, 211, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.header__inner { display: flex; align-items: center; gap: var(--s4); height: var(--header-h); }
.header__logo { display: block; flex: none; }
.header__logo img { height: calc(var(--header-h) - 18px); width: auto; }
.header__menu { margin-left: -10px; }
.header__nav { display: none; }
.header__tools { margin-left: auto; display: flex; gap: var(--s1); }
@media (max-width: 1023px) {
  .header__inner { justify-content: space-between; }
  .header__logo { position: absolute; left: 50%; transform: translateX(-50%); }
}
@media (min-width: 1024px) {
  .header__menu { display: none; }
  .header__nav { display: flex; gap: var(--s6); margin-left: var(--s7); }
  .header__nav a {
    position: relative; text-decoration: none; font-weight: 500; font-size: 15px; padding: var(--s2) 0;
  }
  .header__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--dorado);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
  }
  .header__nav a:hover::after, .header__nav a:focus-visible::after { transform: scaleX(1); }
  .header__nav a:active { opacity: .7; }
}
.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--vino); color: #fff;
  font: 700 11px/19px var(--f-ui); text-align: center;
}
.cart-btn__count.bump { animation: bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--crema); background: var(--carbon); }
.hero__media { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: 1fr; overflow: hidden; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero__pic--b { display: none; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(33, 31, 30, .86) 0%, rgba(33, 31, 30, .5) 32%, rgba(33, 31, 30, 0) 58%),
    linear-gradient(to bottom, rgba(33, 31, 30, .25), transparent 18%);
}
.hero__content {
  min-height: min(calc(100svh - var(--header-h) - 34px), 920px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s5);
  padding-top: var(--s9); padding-bottom: var(--s7);
}
.hero__title {
  font: 600 clamp(44px, 12.5vw, 112px)/.94 var(--f-display);
  letter-spacing: -.03em; max-width: 11ch; text-wrap: balance;
}
.hero__lead { font-size: 17px; line-height: 1.6; max-width: 38ch; color: rgba(242, 230, 211, .92); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 768px) {
  .hero__media { grid-template-columns: 1fr 1fr; }
  .hero__pic--b { display: block; }
  .hero__pic--b img { object-position: 50% 8%; }
  .hero__content { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s7); padding-bottom: var(--s8); }
  .hero__aside { max-width: 400px; padding-bottom: var(--s3); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__pic img { animation: settle 1.6s var(--ease-out) both; }
  @keyframes settle { from { transform: scale(1.05); } }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--s8); }
@media (min-width: 768px) { .section { padding-block: var(--s9); } }
.section__head { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 640px; }
.section__head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section__title { font: 600 clamp(34px, 6vw, 56px)/1 var(--f-display); letter-spacing: -.03em; color: var(--cafe); }
.section__lead { color: var(--texto-suave); max-width: 52ch; }

.rule { display: flex; align-items: center; gap: var(--s3); color: var(--dorado); max-width: 220px; }
.rule span { flex: 1; height: 1px; background: currentColor; }
.rule svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* ---------- Colecciones ---------- */
.collections__grid { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
.collections__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 1024px) {
  .collections__grid { grid-template-columns: 1.3fr repeat(4, 1fr); gap: var(--s4); }
  .collections__grid > :last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 3 / 4.2; }
}
.tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 3 / 4.2; color: var(--crema); text-decoration: none; background: var(--cafe);
  box-shadow: var(--sh-1);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; z-index: -2; transition: transform .9s var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cafe); mix-blend-mode: multiply; opacity: .18; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(33, 31, 30, .82), rgba(33, 31, 30, .1) 55%, transparent); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s4); display: grid; gap: var(--s1); }
.tile__title { font: 600 clamp(22px, 1.9vw, 30px)/1.05 var(--f-display); letter-spacing: -.02em; }
.tile__text { display: none; font-size: 14px; line-height: 1.5; color: rgba(242, 230, 211, .85); max-width: 30ch; }
.tile__cta { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dorado); }
.tile:hover img { transform: scale(1.04); }
.tile:active { opacity: .9; }
.tile:focus-visible { outline-offset: 4px; }
@media (min-width: 768px) { .tile__body { padding: var(--s5); gap: var(--s2); } .tile__text { display: block; } }
@media (min-width: 1024px) { .tile--lead { aspect-ratio: auto; } }

/* ---------- Tarjeta de producto ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--crema-claro);
  box-shadow: var(--sh-1);
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.card__alt { opacity: 0; transition: opacity .45s ease; }
.card__quick {
  position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3);
  padding: var(--s2) var(--s3); background: rgba(248, 241, 230, .94); color: var(--cafe);
  font-size: 13px; font-weight: 600; text-align: center; border-radius: var(--radius);
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .4s var(--ease-spring);
}
@media (hover: hover) {
  .card__media:hover .card__alt { opacity: 1; }
  .card__media:hover .card__quick { opacity: 1; transform: none; }
}
.card__media:focus-visible .card__quick { opacity: 1; transform: none; }
.card__media:active { opacity: .92; }
.card__tag {
  position: absolute; top: var(--s3); left: var(--s3); padding: 3px var(--s2);
  background: var(--crema-claro); color: var(--vino); font-size: 12px; font-weight: 600; border-radius: 2px;
}
.card__body { display: grid; gap: var(--s1); padding-top: var(--s3); flex: 1; align-content: start; }
.card__aud { font-size: 13px; color: var(--texto-suave); }
.card__title { font: 600 17px/1.25 var(--f-display); color: var(--carbon); letter-spacing: -.01em; }
.card__price { font-weight: 600; font-size: 15px; color: var(--cafe); }
.card__price--ask { color: var(--vino); }
.card__variants { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); font-size: 13px; color: var(--texto-suave); line-height: 1.4; }
.card__btn { margin-top: var(--s3); min-height: 44px; font-size: 14px; padding-inline: var(--s3); }
@media (min-width: 768px) { .card__title { font-size: 19px; } }

.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px var(--linea-fuerte); }

/* ---------- Selección destacada ---------- */
.featured { background: var(--crema-claro); border-block: 1px solid var(--linea); }
.featured__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--s4);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3);
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.featured__row > * { scroll-snap-align: start; }
.featured .card__media { background: var(--crema); }
@media (min-width: 768px) {
  .featured__row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--s6) var(--s5); }
  .featured .card__body { justify-items: center; text-align: center; }
  .featured .card__variants { justify-content: center; }
}

/* ---------- Marca ---------- */
.brand { background: var(--arena); position: relative; padding-block: var(--s8); overflow: hidden; }
.brand__inner { display: grid; gap: var(--s7); align-items: center; }
.brand__media { position: relative; padding-right: 22%; padding-bottom: 14%; }
.brand__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; box-shadow: var(--sh-2); }
.brand__detail {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 6px solid var(--crema-claro); box-shadow: var(--sh-3);
}
.brand__text { display: grid; gap: var(--s4); max-width: 520px; }
.brand__text p { color: #3E2E27; }
.brand__title { font: 600 clamp(38px, 6.4vw, 68px)/.98 var(--f-display); letter-spacing: -.03em; color: var(--cafe); margin-block: var(--s2); }
.brand__sign { font: italic 500 19px/1.4 var(--f-display); color: var(--vino) !important; margin-block: var(--s2) var(--s3); }
.brand__text .btn { justify-self: start; }
@media (min-width: 900px) {
  .brand { padding-block: var(--s9); }
  .brand__inner { grid-template-columns: 1.05fr 1fr; gap: var(--s9); }
}

/* ---------- Catálogo ---------- */
.catalog__head { display: grid; gap: var(--s5); margin-bottom: var(--s6); }
.catalog__head .section__lead { margin-top: var(--s3); }
.catalog__search { position: relative; }
.catalog__search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--texto-suave); pointer-events: none; }
.catalog__search input {
  width: 100%; height: 52px; padding: 0 var(--s4) 0 46px;
  background: var(--crema-claro); border: 1px solid var(--linea-fuerte); border-radius: var(--radius);
  font-size: 16px;
}
.catalog__search input::placeholder { color: #8A776C; }
.catalog__search input:hover { border-color: var(--cafe); }
.catalog__search input:focus-visible { outline: 2px solid var(--vino); outline-offset: 1px; border-color: transparent; }
@media (min-width: 900px) {
  .catalog__head { grid-template-columns: 1fr minmax(320px, 420px); align-items: end; }
}

.catalog__layout { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .catalog__layout { grid-template-columns: 236px 1fr; gap: var(--s7); align-items: start; } }

.filters__toggle {
  display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: 48px; padding: 0 var(--s4);
  background: var(--crema-claro); border: 1px solid var(--linea-fuerte); border-radius: var(--radius);
  font-weight: 600; transition: transform .3s var(--ease-spring);
}
.filters__toggle svg { width: 20px; height: 20px; }
.filters__toggle:hover { border-color: var(--cafe); }
.filters__toggle:active { transform: scale(.99); }
.filters__badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--cafe); color: var(--crema); font-size: 12px; line-height: 22px; text-align: center; padding: 0 6px; }
.filters__title { display: none; }
.filters__body { display: none; padding-top: var(--s4); }
.filters__body.is-open { display: grid; gap: var(--s5); }
@media (min-width: 1024px) {
  .filters { position: sticky; top: calc(var(--header-h) + var(--s5)); }
  .filters__toggle { display: none; }
  .filters__title { display: block; font: 600 22px/1.2 var(--f-display); color: var(--cafe); padding-bottom: var(--s3); border-bottom: 1px solid var(--linea); }
  .filters__body { display: grid; gap: var(--s5); padding-top: var(--s5); }
}
.facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.facet legend { padding: 0; margin-bottom: var(--s3); font-size: 14px; font-weight: 600; color: var(--cafe); }
.facet__opts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s3);
  border: 1px solid var(--linea-fuerte); border-radius: 20px; background: var(--crema-claro);
  font-size: 14px; line-height: 1; transition: transform .3s var(--ease-spring);
}
.chip:hover > span { border-color: var(--cafe); }
.chip input:active + span { transform: scale(.96); }
.chip input:checked + span { background: var(--cafe); border-color: var(--cafe); color: var(--crema); }
.chip input:focus-visible + span { outline: 2px solid var(--vino); outline-offset: 2px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid var(--linea); margin-bottom: var(--s4); }
.toolbar__count { font-size: 15px; color: var(--texto-suave); }
.toolbar__count strong { color: var(--carbon); }
.toolbar__sort { display: flex; align-items: center; gap: var(--s2); font-size: 14px; }
.toolbar__sort select {
  min-height: 44px; padding: 0 36px 0 var(--s3); border: 1px solid var(--linea-fuerte); border-radius: var(--radius);
  background: var(--crema-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338251F' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px;
  appearance: none; font-size: 14px;
}
.toolbar__sort select:hover { border-color: var(--cafe); }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s5); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s3);
  border: 0; border-radius: 18px; background: var(--arena); color: var(--cafe); font-size: 13px; font-weight: 500;
  transition: transform .3s var(--ease-spring);
}
.pill svg { width: 14px; height: 14px; }
.pill:hover { background: #CFB792; }
.pill:active { transform: scale(.95); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s3); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s5); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.empty { display: grid; justify-items: start; gap: var(--s3); padding: var(--s7) var(--s5); background: var(--crema-claro); border: 1px dashed var(--linea-fuerte); }
.empty__title { font: 600 24px/1.2 var(--f-display); color: var(--cafe); }
.empty .btn { margin-top: var(--s2); }
.more { display: flex; justify-content: center; margin-top: var(--s7); }

/* ---------- Cómo comprar + FAQ ---------- */
.howto { background: var(--cafe); color: var(--crema); position: relative; }
.howto::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .25; mix-blend-mode: overlay; pointer-events: none; }
.howto .wrap { position: relative; }
.howto .section__title { color: var(--crema); }
.howto .section__lead { color: rgba(242, 230, 211, .78); }
.steps { list-style: none; margin: 0 0 var(--s8); padding: 0; display: grid; gap: var(--s6); counter-reset: none; }
.steps li { display: grid; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid rgba(179, 138, 85, .55); }
.steps__n { font: 500 56px/1 var(--f-display); color: var(--dorado); margin-bottom: var(--s2); }
.steps h3 { font: 600 22px/1.2 var(--f-display); }
.steps p { color: rgba(242, 230, 211, .82); max-width: 36ch; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }

.faq { max-width: 820px; }
.faq__title { font: 600 28px/1.2 var(--f-display); margin-bottom: var(--s4); }
.faq details { border-bottom: 1px solid rgba(242, 230, 211, .2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 60px; padding: var(--s3) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 1.6px solid var(--dorado); border-bottom: 1.6px solid var(--dorado);
  transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ease-spring);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: #fff; }
.faq summary:active { opacity: .8; }
.faq summary:focus-visible { outline-color: var(--dorado); }
.faq details p { padding-bottom: var(--s5); color: rgba(242, 230, 211, .82); max-width: 66ch; }

/* ---------- Cierre y footer ---------- */
.closing { background: var(--crema); padding-block: var(--s8); border-bottom: 1px solid var(--linea); }
.closing__inner { display: grid; gap: var(--s6); align-items: center; justify-items: center; text-align: center; }
.closing__plate img { width: 200px; }
.closing__text { display: grid; gap: var(--s3); justify-items: center; }
.closing__title { font: 600 clamp(28px, 4.6vw, 46px)/1.08 var(--f-display); letter-spacing: -.02em; color: var(--cafe); }
.closing__text > p { color: var(--texto-suave); }
.closing__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s3); }
.closing__note { font-size: 14px; color: var(--texto-suave); max-width: 46ch; }
@media (min-width: 900px) {
  .closing__inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: var(--s8); }
  .closing__text { justify-items: start; }
  .closing__ctas { justify-content: flex-start; }
  .closing__plate img { width: 240px; }
}

.footer { background: var(--carbon); color: rgba(242, 230, 211, .8); font-size: 15px; }
.footer__inner { display: grid; gap: var(--s6); padding-block: var(--s7); grid-template-columns: 1fr 1fr; }
.footer__col { display: grid; gap: var(--s2); align-content: start; }
.footer__col:first-child { grid-column: 1 / -1; }
.footer__brand { font: 600 22px/1.2 var(--f-display); color: var(--crema); }
.footer__head { color: var(--dorado); font-weight: 600; font-size: 14px; margin-bottom: var(--s1); }
.footer a, .footer .link { color: rgba(242, 230, 211, .86); text-decoration: none; padding-block: 6px; justify-self: start; }
.footer a:hover, .footer .link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer a:active { opacity: .7; }
.footer :focus-visible { outline-color: var(--dorado); }
.footer__base { border-top: 1px solid rgba(242, 230, 211, .12); padding-block: var(--s5); font-size: 13px; color: rgba(242, 230, 211, .6); }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__col:first-child { grid-column: auto; }
}

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; color: var(--texto); max-width: none; max-height: none; }
dialog:focus, [data-autofocus]:focus { outline: none; }
dialog::backdrop { background: rgba(33, 31, 30, .55); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open]::backdrop { animation: fade .3s ease both; }
  .drawer[open], .menu[open] { animation: slide-in .5s var(--ease-out) both; }
  .pd[open] { animation: rise .45s var(--ease-out) both; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.menu { margin: 0 auto 0 0; width: min(88vw, 360px); height: 100dvh; background: var(--crema); box-shadow: var(--sh-3); }
.menu[open] { animation-name: slide-in-left; }
@keyframes slide-in-left { from { transform: translateX(-100%); } }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s4); border-bottom: 1px solid var(--linea); }
.menu__logo { height: 56px; width: auto; }
.menu__nav { display: grid; padding: var(--s4); }
.menu__nav a { font: 600 26px/1.2 var(--f-display); color: var(--cafe); text-decoration: none; padding: var(--s3) 0; border-bottom: 1px solid var(--linea); }
.menu__nav a:hover { color: var(--vino); }
.menu__nav a:active { opacity: .7; }

/* Ficha de producto */
.pd {
  width: 100%; height: 100dvh; margin: 0; background: var(--crema-claro); box-shadow: var(--sh-3);
  overflow-y: auto; overscroll-behavior: contain;
}
@media (min-width: 900px) {
  .pd { width: min(1080px, calc(100vw - 64px)); height: auto; max-height: calc(100dvh - 64px); margin: auto; }
}
.pd__close { position: sticky; top: var(--s2); float: right; margin: var(--s2) var(--s2) 0 0; z-index: 2; background: rgba(248, 241, 230, .92); box-shadow: var(--sh-1); }
.pd__layout { display: grid; }
@media (min-width: 900px) {
  .pd__layout { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .pd__gallery { position: sticky; top: 0; }
}
.pd__gallery { display: grid; gap: var(--s2); background: var(--crema); }
.pd__main { aspect-ratio: 3 / 4; overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.pd__thumbs { display: flex; gap: var(--s2); padding: 0 var(--s3) var(--s3); }
.pd__thumb { width: 64px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; background: none; overflow: hidden; border-radius: 2px; transition: transform .3s var(--ease-spring); }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.pd__thumb[aria-pressed="true"] { border-color: var(--cafe); }
.pd__thumb:hover { transform: translateY(-2px); }
.pd__thumb:active { transform: scale(.96); }
.pd__info { display: grid; gap: var(--s4); padding: var(--s5) var(--gutter) var(--s7); align-content: start; }
@media (min-width: 900px) { .pd__info { padding: var(--s7) var(--s6); } }
.pd__aud { font-size: 14px; color: var(--texto-suave); }
.pd__title { font: 600 clamp(28px, 4vw, 38px)/1.05 var(--f-display); letter-spacing: -.02em; color: var(--carbon); }
.pd__ref { font-size: 13px; color: var(--texto-suave); }
.pd__price { font: 600 24px/1.2 var(--f-ui); color: var(--cafe); }
.pd__price--ask { color: var(--vino); font-size: 20px; }
.pd__desc { color: #3E2E27; }
.pd__note { font-size: 13px; line-height: 1.5; color: var(--vino); background: rgba(123, 52, 62, .08); padding: var(--s2) var(--s3); border-left: 2px solid var(--vino); }
.pd form { display: grid; gap: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--linea); }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: var(--s3); font-size: 14px; font-weight: 600; }
.opt legend span { font-weight: 400; color: var(--texto-suave); }
.opt__list { display: flex; flex-wrap: wrap; gap: var(--s2); }
.opt__item { position: relative; }
.opt__item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt__item input:disabled { cursor: not-allowed; }
.opt__item > span {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-width: 52px; min-height: 46px; padding: 0 var(--s3);
  border: 1px solid var(--linea-fuerte); border-radius: var(--radius); background: #fff8ee; font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease-spring);
}
.opt__item:hover > span { border-color: var(--cafe); }
.opt__item input:active + span { transform: scale(.96); }
.opt__item input:checked + span { border-color: var(--cafe); background: var(--cafe); color: var(--crema); }
.opt__item input:focus-visible + span { outline: 2px solid var(--vino); outline-offset: 2px; }
.opt__item input:disabled + span { opacity: .45; text-decoration: line-through; background: transparent; }
.opt.is-invalid legend { color: var(--vino); }
.opt.is-invalid .opt__item > span { border-color: var(--vino); }
.opt__error { margin-top: var(--s2); font-size: 14px; font-weight: 600; color: var(--vino); }
.avail { font-size: 14px; display: flex; align-items: center; gap: var(--s2); color: var(--texto-suave); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dorado); }
.avail--ok::before { background: #3E7A4E; }
.avail--out::before { background: var(--vino); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--linea-fuerte); border-radius: var(--radius); background: #fff8ee; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--cafe); transition: transform .25s var(--ease-spring); }
.qty button:hover { background: rgba(56, 37, 31, .06); }
.qty button:active { transform: scale(.9); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty input, .qty output { width: 44px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 36px; height: 36px; font-size: 17px; }
.qty--sm output { width: 30px; font-size: 14px; }
.pd__buy { display: flex; gap: var(--s3); align-items: stretch; flex-wrap: wrap; }
.pd__buy .btn { flex: 1; min-width: 200px; }
.pd__more { border-top: 1px solid var(--linea); }
.pd__more details { border-bottom: 1px solid var(--linea); }
.pd__more summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.pd__more summary::-webkit-details-marker { display: none; }
.pd__more summary::after { content: "+"; font-size: 20px; color: var(--dorado); transition: transform .3s var(--ease-spring); }
.pd__more details[open] summary::after { transform: rotate(45deg); }
.pd__more summary:hover { color: var(--vino); }
.pd__more details > div { padding-bottom: var(--s4); font-size: 15px; color: #3E2E27; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: var(--s2); border-bottom: 1px solid var(--linea); text-align: left; }

/* Carrito */
.drawer {
  margin: 0 0 0 auto; width: min(100vw, 440px); height: 100dvh;
  background: var(--crema-claro); box-shadow: var(--sh-3);
  display: none; flex-direction: column;
}
.drawer[open] { display: flex; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s3) var(--s3) var(--s3) var(--s5); border-bottom: 1px solid var(--linea); }
.drawer__title { font: 600 26px/1.2 var(--f-display); color: var(--cafe); }
.drawer__title small { font: 500 14px var(--f-ui); color: var(--texto-suave); margin-left: var(--s2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 var(--s5); overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--linea); padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s3); background: var(--crema); box-shadow: 0 -12px 24px -18px rgba(56, 37, 31, .35); }
.drawer__foot:empty { display: none; }

.line { display: grid; grid-template-columns: 80px 1fr; gap: var(--s4); padding-block: var(--s5); border-bottom: 1px solid var(--linea); }
.line__img { width: 80px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; background: var(--crema); }
.line__info { display: grid; gap: 2px; min-width: 0; }
.line__name { font: 600 16px/1.25 var(--f-display); }
.line__meta { font-size: 13px; color: var(--texto-suave); line-height: 1.5; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s2); flex-wrap: wrap; }
.line__total { font-weight: 700; font-size: 15px; }
.line__remove { font-size: 13px; justify-self: start; padding: var(--s1) 0; min-height: 32px; }

.sum { display: grid; gap: 6px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: var(--s3); }
.sum__subtotal { font-weight: 700; font-size: 18px; color: var(--cafe); }
.sum__ship { color: var(--texto-suave); font-size: 14px; }
.cart-help { font-size: 13px; line-height: 1.5; color: var(--texto-suave); }
.cart-warn { font-size: 13px; line-height: 1.5; color: var(--vino); background: rgba(123, 52, 62, .08); padding: var(--s2) var(--s3); border-left: 2px solid var(--vino); }
.cart-actions { display: grid; gap: var(--s2); }
.copy-fallback { width: 100%; min-height: 160px; font: 12px/1.5 ui-monospace, Menlo, monospace; padding: var(--s2); border: 1px solid var(--linea-fuerte); background: #fff; }

.cart-empty { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding: var(--s8) var(--s4); }
.cart-empty__title { font: 600 24px/1.2 var(--f-display); color: var(--cafe); }
.cart-empty p { color: var(--texto-suave); }

/* Avisos */
.toasts { position: fixed; z-index: 1000; left: 0; right: 0; bottom: var(--s5); margin-inline: auto; display: grid; gap: var(--s2); width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--carbon); color: var(--crema); padding: var(--s3) var(--s4); border-radius: var(--radius);
  box-shadow: var(--sh-3); font-size: 14px; line-height: 1.45; display: flex; align-items: center; gap: var(--s3); justify-content: space-between;
}
.toast .link { color: var(--arena); flex: none; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise .4s var(--ease-spring) both; } }
.toasts[popover]:not(:popover-open) { display: none; }
.toasts[popover] { inset: auto 0 var(--s5) 0; margin: 0 auto; border: 0; padding: 0; background: transparent; overflow: visible; color: inherit; height: auto; }
.opt__legend-plain { font-size: 14px; }
@media (max-height: 760px) {
  .drawer { overflow-y: auto; }
  .drawer__body { flex: none; overflow: visible; }
  .drawer__foot { box-shadow: none; }
}

@media (min-width: 1200px) { .featured__row { grid-template-columns: repeat(5, 1fr); gap: var(--s5); } }

.card__whole { font-size: 13px; color: var(--texto-suave); }

/* ---------- Campaña Tierra Brava ---------- */
.campaign { position: relative; display: grid; background: var(--carbon); color: var(--crema); isolation: isolate; }
.campaign__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; aspect-ratio: 4 / 3; }
.campaign__text { display: grid; gap: var(--s4); align-content: center; justify-items: start; padding: var(--s7) var(--gutter); }
.campaign__kicker { font: italic 500 18px/1.2 var(--f-display); color: var(--arena); }
.campaign__title { font: 700 clamp(48px, 9vw, 104px)/.9 var(--f-display); letter-spacing: -.035em; }
.campaign__lead { max-width: 46ch; color: rgba(242, 230, 211, .86); }
.campaign__quote { margin: var(--s2) 0 var(--s3); padding-left: var(--s4); border-left: 2px solid var(--dorado); font: italic 500 21px/1.4 var(--f-display); color: var(--crema); }
@media (min-width: 900px) {
  .campaign { grid-template-columns: 1.25fr 1fr; min-height: 640px; }
  .campaign__media img { aspect-ratio: auto; position: absolute; inset: 0; }
  .campaign__media { position: relative; }
  .campaign__text { padding: var(--s8) var(--s8) var(--s8) var(--s7); }
}

/* ---------- Valores de marca ---------- */
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.values li { position: relative; padding-left: 22px; color: #3E2E27; line-height: 1.55; }
.values li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--dorado); font-size: 13px; }
.values strong { color: var(--cafe); }

/* ---------- Mayoreo ---------- */
.wholesale { background: var(--crema-claro); border-block: 1px solid var(--linea); }
.wholesale__inner { display: grid; gap: var(--s7); align-items: start; }
.wholesale__text { display: grid; gap: var(--s4); justify-items: start; }
.wholesale__text .btn--light { background: var(--cafe); color: var(--crema); }
.wholesale__text .btn--light:hover { background: var(--cafe-hover); }
.services { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.services li { padding: 6px var(--s3); border: 1px solid var(--linea-fuerte); border-radius: 20px; font-size: 14px; background: var(--crema); }
.price-table { width: 100%; border-collapse: collapse; background: #fffaf2; box-shadow: var(--sh-2); }
.price-table th, .price-table td { padding: var(--s3) var(--s4); text-align: left; border-bottom: 1px solid var(--linea); font-size: 15px; }
.price-table thead th { background: var(--cafe); color: var(--crema); font-weight: 600; font-size: 14px; }
.price-table td { white-space: nowrap; text-align: right; }
.price-table thead th:not(:first-child) { text-align: right; }
.price-table tbody th { font-weight: 500; }
.price-table .link { text-align: left; font-weight: 600; }
.price-table td strong { color: var(--vino); }
.wholesale__note { margin-top: var(--s3); font-size: 13px; color: var(--texto-suave); }
@media (max-width: 480px) { .price-table th, .price-table td { padding: var(--s2) var(--s2); font-size: 14px; } }
@media (min-width: 900px) { .wholesale__inner { grid-template-columns: 1fr 1.1fr; gap: var(--s8); } }

/* ---------- Ficha: mayoreo, inventario, guía ---------- */
.pd__wholesale { font-size: 15px; color: var(--texto-suave); }
.pd__wholesale strong { color: var(--cafe); }
.pd__wholesale .link { margin-left: var(--s2); font-size: 14px; }
.pd__stock { font-size: 14px; color: var(--texto-suave); }
.pd__tip { font-size: 14px; color: var(--texto-suave); margin-block: var(--s2); }
.pd form[data-mode="ask"] .cart-help { margin-top: calc(var(--s3) * -1); }
