/* CROCK · Croquetas artesanas
   Sistema visual: crema y espresso, terracota del logotipo, dorado del premio.
   Móvil primero. Sin estilos en línea (CSP). */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fraunces-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #fbf6ee;
  --cream-2: #f3e9da;
  --paper: #fffdf9;
  --ink: #21160f;
  --ink-2: #5b4a3d;
  --ink-3: #6f5c4c;
  --line: #eadfce;
  --line-strong: #d9cab5;
  --brand: #b9521d;
  --brand-ink: #9a4214;
  --gold: #e3a946;
  --gold-soft: #f7e7c6;
  --dark: #17100b;
  --dark-2: #2a1a10;
  --on-dark: #f7efe3;
  --on-dark-2: #cdbca8;
  --wa: #25d366;
  --wa-hover: #1fc25c;
  --wa-ink: #073b1d;
  --focus: #2b6fd6;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(33 22 15 / .05), 0 4px 14px -6px rgb(33 22 15 / .1);
  --shadow: 0 2px 4px rgb(33 22 15 / .04), 0 12px 32px -12px rgb(33 22 15 / .18);
  --shadow-lg: 0 4px 10px rgb(33 22 15 / .05), 0 28px 60px -24px rgb(33 22 15 / .32);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light;
  background: var(--cream);
}

html:has(.cart-dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 em, h2 em { font-style: italic; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

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

main:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill { fill: currentColor; stroke: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s;
}

.skip-link:focus { transform: none; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}

.btn:active { transform: translateY(1px) scale(.985); }
.btn .icon { width: 1.2em; height: 1.2em; }

.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgb(185 82 29 / .7); }
.btn-brand:hover { background: var(--brand-ink); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3b2a1e; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 24px -12px rgb(7 59 29 / .55); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-lg { min-height: 56px; padding: .85em 1.7em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.link-btn {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.link-btn:hover { color: var(--ink); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.icon-btn:hover { border-color: var(--line-strong); background: var(--cream-2); }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(251 246 238 / .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(251 246 238 / .82);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}

.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgb(33 22 15 / .45); }
.site-header--static { position: relative; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  border-radius: 999px;
}

.brand img { width: 50px; height: 50px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand-ink);
}

.main-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.header-cta {
  position: relative;
  min-height: 44px;
  white-space: nowrap;
  padding: .5em 1.1em;
  font-size: .95rem;
  box-shadow: none;
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}

.count-badge.is-bumped { animation: bump .35s ease-out; }

@keyframes bump {
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 959px) {
  .main-nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(33 22 15 / .35);
  }

  .main-nav.is-open a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
  }

  .main-nav.is-open a:last-child { border-bottom: 0; }
}

@media (max-width: 479px) {
  .brand-name { display: none; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .brand img { width: 58px; height: 58px; }
  .main-nav { display: flex; gap: 2px; }

  .main-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
  }

  .main-nav a:hover { background: var(--cream-2); color: var(--ink); }
  .menu-toggle { display: none; }
  .header-cta { margin-left: 8px; }
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  padding: 28px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% 15%, rgb(185 82 29 / .32), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgb(227 169 70 / .12), transparent 70%),
    var(--dark);
  color: var(--on-dark);
}

.hero-grid { display: grid; gap: 32px; align-items: center; }

.award-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgb(227 169 70 / .5);
  border-radius: 999px;
  background: rgb(227 169 70 / .12);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
}

.award-pill .icon { width: 1.3em; height: 1.3em; }
.award-pill strong { color: #fff; font-weight: 700; }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.65rem, 10.5vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.025em;
}

.hero h1 em { display: block; color: var(--gold); }

.hero-lead {
  margin-top: 18px;
  max-width: 36ch;
  color: var(--on-dark-2);
  font-size: clamp(1.05rem, .6vw + .95rem, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 26px;
}

.hero-price { color: var(--on-dark-2); font-size: .9rem; line-height: 1.25; }

.hero-price strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.1;
}

.hero-price span { display: block; font-size: .78rem; opacity: .85; }

.hero-points {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  list-style: none;
  color: var(--on-dark-2);
  font-size: .95rem;
}

.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .icon { color: var(--gold); }
.hero-points a { color: var(--on-dark); font-weight: 600; }
.hero-points a:hover { color: var(--gold); }

.hero-media { position: relative; margin: 0; }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9);
}

.seal {
  position: absolute;
  left: -6px;
  bottom: -20px;
  width: 108px;
  height: 108px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 12px 18px rgb(0 0 0 / .45));
}

.seal-bg { fill: var(--gold); }
.seal-ring { fill: none; stroke: var(--dark); stroke-width: 1.5; opacity: .5; }
.seal-text { fill: var(--dark); font: 800 12.5px var(--font-body); letter-spacing: .5px; }
.seal-trophy path { fill: none; stroke: var(--dark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.seal-year { fill: var(--dark); font: 700 21px var(--font-display); }

.media-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(0 0 0 / .45);
  color: rgb(255 255 255 / .82);
  font-size: .7rem;
  letter-spacing: .02em;
}

@media (min-width: 640px) {
  .seal { width: 128px; height: 128px; left: -14px; bottom: -26px; }
}

@media (min-width: 1024px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; }
  .hero-photo { aspect-ratio: 1 / 1; border-radius: 32px; }
  .seal { width: 156px; height: 156px; left: -52px; bottom: -40px; }
  .hero-points { grid-template-columns: auto auto; column-gap: 28px; }
  .hero-points li:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1240px) {
  .hero-photo { aspect-ratio: 6 / 5; }
}

/* ---------- Ventajas ---------- */

.perks { background: var(--paper); border-bottom: 1px solid var(--line); }

.perks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  padding-block: 24px;
  list-style: none;
}

.perks li { display: flex; align-items: flex-start; gap: 12px; }
.perks .icon { width: 30px; height: 30px; margin-top: 1px; color: var(--brand); }

.perks strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.perks span { display: block; margin-top: 3px; color: var(--ink-2); font-size: .84rem; line-height: 1.35; }

@media (min-width: 900px) {
  .perks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 30px; }
}

/* ---------- Secciones ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

:where(.section) h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }

.section-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.075rem; }
.section-lead strong { color: var(--ink); }

/* ---------- Carta y pedido ---------- */

.order-layout { display: grid; gap: 28px; align-items: start; }
.catalog { display: grid; gap: 36px; min-width: 0; }

@media (min-width: 1024px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 384px; gap: 40px; }
  .cart-slot { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (max-width: 1023px) {
  .js .cart-slot { display: none; }
  /* Navegadores sin <dialog> (iOS < 15.4): el resumen se queda en la página. */
  .js.no-dialog .cart-slot { display: block; }
}

html:not(.js) .cart-slot { display: none; }

/* Pack destacado */

.pack {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 100% 0%, rgb(185 82 29 / .35), transparent 60%),
    linear-gradient(150deg, var(--dark-2), var(--dark));
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  transition: box-shadow .2s;
}

.pack.is-selected { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); }

.pack-thumbs { display: flex; padding-left: 4px; }

.pack-thumbs picture {
  flex: none;
  width: 62px;
  height: 62px;
  margin-left: -12px;
  overflow: hidden;
  border: 3px solid var(--dark-2);
  border-radius: 50%;
  box-shadow: 0 6px 14px -4px rgb(0 0 0 / .5);
}

.pack-thumbs picture:first-child { margin-left: 0; }
.pack-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pack .pack-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); }
.pack-tag .icon { width: 1.15em; height: 1.15em; }
.pack-name { margin-top: 4px; font-size: clamp(1.6rem, 3vw, 2rem); }
.pack-desc { margin-top: 6px; color: var(--on-dark); font-size: 1rem; }
.pack-contents { margin-top: 4px; color: var(--on-dark-2); font-size: .9rem; }

.pack .product-buy { grid-area: auto; border-top-color: rgb(255 255 255 / .14); }
.pack .product-price strong { color: #fff; }
.pack .product-price span { color: var(--on-dark-2); }
.pack .btn-add { background: var(--gold); color: var(--dark); }
.pack .btn-add:hover { background: #f0bd60; }

@media (min-width: 720px) {
  .pack { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 28px 30px; column-gap: 32px; }
  .pack-info { display: grid; gap: 0; }
  .pack-thumbs { grid-column: 1 / -1; }
  .pack .product-buy { flex-direction: column; align-items: flex-end; padding-top: 0; border-top: 0; text-align: right; }
}

/* Gamas */

.range-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.range-head h3 { font-size: 1.8rem; }
.range-head p { color: var(--ink-2); font-size: .95rem; }

.range--premium .range-head { border-bottom-color: var(--brand); }
.range--premium .range-head h3::after {
  content: '★';
  margin-left: .3em;
  color: var(--gold);
  font-size: .7em;
  vertical-align: .25em;
}

.range-price { color: var(--ink-2); font-size: .92rem; line-height: 1.3; }

@media (min-width: 560px) {
  .range-price { text-align: right; }
}

.range-price strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.range-price span { display: block; color: var(--ink-3); font-size: .8rem; }

.products { display: grid; gap: 14px; }

@media (min-width: 640px) and (max-width: 1023px), (min-width: 1160px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tarjeta de sabor */

.product {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas: 'photo info' 'buy buy';
  gap: 14px 16px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}

.product:hover { box-shadow: var(--shadow); }
.product.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }

.product-photo { grid-area: photo; }

.product-photo img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--cream-2);
}

.product-info { grid-area: info; min-width: 0; }

.product-tag {
  color: var(--brand);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-name { margin-top: 3px; font-size: 1.3rem; line-height: 1.15; }
.product-desc { margin-top: 5px; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.product-allergens { margin-top: 7px; color: var(--ink-3); font-size: .78rem; line-height: 1.4; }
.product-allergens span { font-weight: 700; }

.product-buy {
  grid-area: buy;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.product-price { line-height: 1.15; }
.product-price strong { font-family: var(--font-display); font-size: 1.4rem; }
.product-price span { display: block; margin-top: 2px; color: var(--ink-3); font-size: .78rem; }

/* Añadir y cantidad */

.qty { flex: none; }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, transform .15s;
}

.btn-add:hover { background: var(--brand); }
.btn-add:active { transform: scale(.97); }

.stepper {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.stepper-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.stepper-btn:hover { background: rgb(255 255 255 / .16); }
.stepper-btn:active { background: rgb(255 255 255 / .26); }

.stepper-input {
  width: 2.4ch;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.stepper-input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.stepper :focus-visible { outline-color: #fff; }

.pack .stepper { background: var(--gold); color: var(--dark); }
.pack .stepper-btn:hover { background: rgb(0 0 0 / .08); }
.pack .stepper :focus-visible { outline-color: var(--dark); }

.stepper--sm { padding: 2px; background: var(--cream-2); color: var(--ink); }
.stepper--sm .stepper-btn { width: 34px; height: 34px; }
.stepper--sm .stepper-btn:hover { background: var(--line); }
.stepper--sm .stepper-value { min-width: 2ch; font-weight: 800; text-align: center; }
.stepper--sm :focus-visible { outline-color: var(--focus); }

.catalog-info {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: .92rem;
}

.catalog-info strong { color: var(--ink); }

/* ---------- Resumen del pedido ---------- */

.cart {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 40px);
  max-height: calc(100dvh - var(--header-h) - 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 8px;
}

.cart-title { font-size: 1.55rem; }
.cart-title:focus { outline: none; }
.cart-close { display: none; }

.cart-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 22px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-empty { padding: 18px 8px 16px; color: var(--ink-2); text-align: center; font-size: .95rem; }
.cart-empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--brand); stroke-width: 1.5; }
.cart-undo { margin-top: 14px; min-height: 44px; font-size: .92rem; }

.cart-lines { list-style: none; }

.cart-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  animation: line-in .25s ease-out;
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(-4px); }
}

.cart-line-photo {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--cream-2);
}

.cart-line-photo img { width: 100%; height: 100%; object-fit: cover; }

.cart-line-photo--pack {
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.cart-line-name { font-weight: 700; line-height: 1.25; }
.cart-line-meta { margin-top: 2px; color: var(--ink-3); font-size: .8rem; line-height: 1.3; }
.cart-line-side { display: grid; justify-items: end; gap: 6px; }
.cart-line-price { font-weight: 800; white-space: nowrap; }

.cart-progress { margin-top: 14px; }

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream-2);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--brand));
  transition: width .35s ease;
}

.cart-progress p { margin-top: 6px; color: var(--ink-2); font-size: .84rem; }

.cart-fields { display: grid; gap: 10px; margin-top: 18px; }
.cart-fields-title { font-size: .92rem; font-weight: 700; }
.cart-fields-title span { color: var(--ink-3); font-weight: 400; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.field label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea { min-height: 70px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a8878; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(185 82 29 / .2);
}

.cart-foot {
  display: grid;
  gap: 10px;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--paper);
}

.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-total-label { font-weight: 700; }
.cart-total-label span { color: var(--ink-3); font-size: .84rem; font-weight: 400; }
.cart-total strong { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; white-space: nowrap; }

.cart-status { color: var(--ink-2); font-size: .86rem; line-height: 1.45; }
.cart-status[data-state='short'] { color: var(--brand-ink); font-weight: 600; }

.send-btn { min-height: 54px; font-size: 1.05rem; }
.send-btn .icon { width: 1.35em; height: 1.35em; }

.send-btn[aria-disabled='true'] {
  background: var(--cream-2);
  color: var(--ink-2);
  box-shadow: none;
  cursor: default;
}

.send-btn[aria-disabled='true'] .icon { opacity: .55; }
.send-btn.is-shaking { animation: shake .4s; }

@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.cart-alt { color: var(--ink-3); font-size: .82rem; text-align: center; }
.cart-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.cart-alt a { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.cart-continue { display: none; }

/* Hoja inferior en móvil y tableta */

.cart-dialog {
  width: 100%;
  max-width: 100%;
  max-height: min(94vh, 820px);
  max-height: min(94dvh, 820px);
  margin: auto 0 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: inherit;
}

.cart-dialog::backdrop { background: rgb(23 16 11 / .55); }
.cart-dialog[open] { animation: sheet-in .3s cubic-bezier(.2, .8, .2, 1); }

.cart-dialog .cart {
  max-height: min(94vh, 820px);
  max-height: min(94dvh, 820px);
  border: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 50px -20px rgb(0 0 0 / .5);
}

.cart-dialog .cart-head { padding-top: 14px; }

.cart-dialog .cart-head::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 999px;
  background: var(--line-strong);
}

.cart-dialog .cart-close { display: inline-grid; }
.cart-dialog .cart-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); border-radius: 0; }
.cart-dialog .cart-continue { display: block; }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(48px); }
}

@media (min-width: 640px) {
  .cart-dialog { max-width: 520px; margin: auto; }
  .cart-dialog .cart { border-radius: var(--radius-lg); }
  .cart-dialog .cart-foot { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .cart-dialog .cart-head::before { display: none; }
}

/* Barra inferior en móvil y tableta */

.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgb(251 246 238 / .96) 55%, rgb(251 246 238 / 0));
  pointer-events: none;
  animation: bar-in .3s ease-out;
}

@keyframes bar-in {
  from { opacity: 0; transform: translateY(24px); }
}

.cart-bar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  min-height: 62px;
  margin-inline: auto;
  padding: 9px 9px 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 16px 34px -14px rgb(23 16 11 / .7);
  text-align: left;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.cart-bar-info { min-width: 0; line-height: 1.2; }
.cart-bar-info strong { display: block; font-size: 1.02rem; white-space: nowrap; }
.cart-bar-info span { display: block; color: var(--on-dark-2); font-size: .8rem; }

.cart-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-bar.is-ready .cart-bar-cta { background: var(--wa); color: var(--wa-ink); }

body.has-bar { padding-bottom: 92px; }

@media (min-width: 1024px) {
  .cart-bar { display: none !important; }
  body.has-bar { padding-bottom: 0; }
}

@media (max-width: 359px) {
  .cart-bar-cta { padding-inline: 11px; }
  .cart-bar-cta .icon { display: none; }
}

/* ---------- Cómo funciona ---------- */

.how { background: var(--paper); }

.steps { display: grid; gap: 16px; list-style: none; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.step > :not(.step-num) { grid-column: 2; }

.step-num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.step h3 { font-size: 1.35rem; }
.step p { margin-top: 6px; color: var(--ink-2); }

.tip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--gold-soft);
}

.tip .icon { width: 34px; height: 34px; color: var(--brand-ink); }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .step { display: block; padding: 26px; }
  .step-num { margin-bottom: 16px; }
  .tip { justify-content: center; }
}

/* ---------- Historia y premio ---------- */

.story-grid { display: grid; gap: 36px; align-items: center; }

.story-photo { position: relative; max-width: 440px; margin: 0 auto; }

.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.story-photo picture { position: relative; isolation: isolate; }

.story-photo picture::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--gold-soft);
}

.story-photo figcaption { margin-top: 26px; color: var(--ink-3); font-size: .82rem; text-align: center; }

.story-lead { margin-top: 18px; font-size: 1.15rem; line-height: 1.55; }
.story-copy > p:not(.eyebrow):not(.story-lead) { margin-top: 14px; color: var(--ink-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
  list-style: none;
}

.stats li {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
}

.stats span { display: block; margin-top: 4px; color: var(--ink-2); font-size: .8rem; line-height: 1.25; }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 72px; }
  .story-photo { margin: 0; }
}

/* ---------- Hostelería ---------- */

.pro {
  background:
    radial-gradient(80% 70% at 0% 0%, rgb(185 82 29 / .3), transparent 60%),
    var(--dark);
  color: var(--on-dark);
}

.pro .eyebrow { color: var(--gold); }

.pro-grid { display: grid; gap: 36px; align-items: center; }

.pro-lead { margin-top: 16px; max-width: 46ch; color: var(--on-dark-2); font-size: 1.1rem; }
.pro-savings-title { margin-top: 26px; font-weight: 700; }

.pro-savings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}

.pro-savings li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 999px;
  background: rgb(255 255 255 / .06);
  font-size: .9rem;
}

.pro-savings .icon { width: 1.1em; height: 1.1em; color: var(--gold); }

.pro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

.pro-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.pro-call:hover { color: var(--gold); text-decoration: underline; }

.pro-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fbecc9, #ebc47e);
  color: var(--dark);
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / .9);
}

.pro-card-icon { width: 38px; height: 38px; color: var(--brand-ink); }

.pro-card-title {
  margin-top: 12px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pro-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.pro-prices p { padding: 16px; border-radius: 16px; background: rgb(255 255 255 / .55); }

.pro-prices strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1;
}

.pro-prices span { display: block; margin-top: 6px; font-size: .86rem; }
.pro-card-note { margin-top: 14px; color: #5a3d1f; font-size: .86rem; }

@media (min-width: 960px) {
  .pro-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; }
}

/* ---------- Preguntas ---------- */

.faq { background: var(--paper); }

.faq-grid { display: grid; gap: 28px; }
.faq-intro > p:not(.eyebrow) { margin: 14px 0 22px; color: var(--ink-2); }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--brand-ink);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s, background-color .2s;
}

.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--gold-soft); }
.faq-list summary:hover::after { background: var(--gold-soft); }
.faq-list details p { max-width: 64ch; padding: 0 0 20px; color: var(--ink-2); }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------- Llamada final ---------- */

.final-cta {
  padding-block: clamp(56px, 8vw, 92px);
  background:
    radial-gradient(70% 120% at 50% 120%, rgb(227 169 70 / .45), transparent 70%),
    var(--brand);
  color: #fff;
  text-align: center;
}

.final-inner { display: grid; justify-items: center; }
.final-cta h2 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
.final-cta p { margin: 12px 0 28px; font-size: 1.1rem; opacity: .94; }
.final-cta .btn-brand { background: #fff; color: var(--brand-ink); box-shadow: 0 16px 34px -14px rgb(0 0 0 / .45); }
.final-cta .btn-brand:hover { background: var(--cream); }

/* ---------- Pie ---------- */

.site-footer { padding: 56px 0 28px; background: var(--dark); color: var(--on-dark-2); }

.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 96px; height: 96px; }
.footer-brand p { margin-top: 14px; font-size: .95rem; }

.footer-title {
  margin-bottom: 10px;
  color: var(--on-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-nav, .footer-contact { display: grid; gap: 4px; align-content: start; }

.footer-nav a, .footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 40px;
  color: var(--on-dark);
  text-decoration: none;
}

.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact .icon { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .82rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Sin JavaScript ---------- */

.js-fallback {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  font-size: .92rem;
}

.js-fallback a { color: var(--gold); font-weight: 700; }

html:not(.js) .js-fallback { display: block; animation: fallback-in 0s 3s both; }

@keyframes fallback-in {
  from { visibility: hidden; }
  to { visibility: visible; }
}

/* ---------- Página 404 ---------- */

.error-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.error-main { display: grid; flex: 1; align-items: center; padding: 64px 0; }
.error-main h1 { max-width: 14ch; font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; }
.error-main h1 em { color: var(--brand); }
.error-copy { max-width: 44ch; margin-top: 18px; color: var(--ink-2); font-size: 1.15rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html:not(.js) .js-fallback { animation-duration: 0s !important; animation-delay: 3s !important; }
}
