/* Mumuchuu: hoja de estilos única. Tema claro únicamente.
   Sistema de formas: tarjetas e imágenes 24 px, campos 12 px, botones y chips en píldora.
   Motivo: arco (border-radius superior completo) en hero y categorías. */

@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/gabarito-latin-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-latin-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-latin-wght-italic.woff2') format('woff2');
}

:root {
  color-scheme: light only;
  --bg: #FBFBF9;
  --white: #FFFFFF;
  --ink: #20302C;
  --text: #3F4B47;
  --muted: #6B7773;
  --line: #DCE2DE;
  --line-strong: #C5CEC9;
  --accent: #D9603B;
  --accent-dark: #B94D2C;
  --accent-tint: #FBE9E2;
  --sage: #E4EFE7;
  --sage-deep: #CFE2D5;
  --butter: #FBF0CF;
  --sky: #E1ECF6;
  --error: #B3261E;
  --pending-bg: #FFF1A8;
  --pending-ink: #4D3A00;

  --display: 'Gabarito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Nunito Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --r-card: 24px;
  --r-input: 12px;
  --r-pill: 999px;
  --arch: 999px 999px 24px 24px;

  --shadow: 0 10px 30px rgb(32 48 44 / .06);
  --shadow-lg: 0 24px 60px rgb(32 48 44 / .12);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --container: 1200px;
  --header-h: 68px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 700; color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--sage); padding: .05em .4em; border-radius: 6px; }
mark.pending { background: var(--pending-bg); color: var(--pending-ink); padding: .05em .3em; border-radius: 6px; font-weight: 600; }
::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 780px; }
.container--mid { max-width: 960px; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--text); max-width: 60ch; }
.lead--tight { max-width: 46ch; }
.icon { flex: none; }
.muted { color: var(--muted); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--first { padding-top: clamp(2rem, 4vw, 3rem); }
.section__head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head p { font-size: 1.125rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__foot { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: var(--r-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.button:active { transform: scale(.98); }
.button .icon { transition: transform .3s var(--ease); }
.button:hover .icon { transform: translateX(3px); }
.button--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--outline:hover { background: var(--ink); color: #fff; }
.button--ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 8px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.button--ghost:hover { color: var(--accent-dark); }
.button--lg { min-height: 56px; padding: 14px 30px; font-size: 1.0625rem; }
.button--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.icon-button:hover { background: var(--sage); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  border-radius: var(--r-pill); background: var(--sage); color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.chip:hover { background: var(--sage-deep); color: var(--ink); }
.chip--butter { background: var(--butter); }
.chip--sky { background: var(--sky); }
.chip--accent { background: var(--accent-tint); color: var(--accent-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

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

.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner {
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  min-height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.brand img { width: 170px; height: auto; }
.site-nav { display: contents; }
.site-nav__list {
  list-style: none; margin: 0; padding: 6px; justify-self: center;
  display: flex; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.site-nav__list a {
  display: block; padding: 8px 16px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.site-nav__list a:hover { background: var(--sage); }
.site-nav__list a[aria-current="page"] { background: var(--ink); color: #fff; }
.site-nav__cta { justify-self: end; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .site-header__inner { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 10px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
  .nav-toggle__bars i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 60;
    background: var(--white); border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: var(--shadow-lg);
    padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    max-height: min(85dvh, 640px); overflow-y: auto;
    transform: translateY(110%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .site-nav.is-open { transform: translateY(0); visibility: visible; }
  .site-nav__list { display: grid; gap: 4px; background: none; border: 0; padding: 0; margin-bottom: 16px; }
  .site-nav__list a { padding: 12px 16px; font-size: 1.125rem; font-family: var(--display); }
  .site-nav__cta { width: 100%; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 50; background: rgb(32 48 44 / .35); opacity: 0; visibility: hidden; transition: opacity .3s; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); align-items: stretch; }
.hero__panel {
  background: var(--sage); border-radius: var(--r-card);
  padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.hero__panel h1 { margin-bottom: .35em; max-width: 15ch; font-size: clamp(2.125rem, 3.9vw, 3.25rem); }
.hero__panel .lead { margin-bottom: 1.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { border-radius: var(--arch); overflow: hidden; min-height: 320px; background: var(--sage-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Categorías (mosaico de arcos) ---------- */

.tiles { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(200px, auto); gap: clamp(12px, 2vw, 24px); }
.tile { position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: var(--arch); overflow: hidden; background: var(--sage); min-height: 260px; }
.tile:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.tile:nth-child(2) { grid-column: span 6; }
.tile:nth-child(3), .tile:nth-child(4) { grid-column: span 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile__label {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgb(255 255 255 / .92); border-radius: var(--r-pill); padding: 10px 12px 10px 20px;
}
.tile__label strong { font-family: var(--display); font-size: 1.125rem; font-weight: 700; }
.tile__label span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.tile__label small { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile, .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 5; min-height: 0; }
  .tile:nth-child(1), .tile:nth-child(4) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .tile__label small { display: none; }
}

/* ---------- Valores ---------- */

.values-band { background: var(--butter); border-radius: var(--r-card); padding: clamp(28px, 5vw, 64px); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 64px); list-style: none; margin: 0; padding: 0; }
.values li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.values__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--accent-dark); display: grid; place-items: center; }
.values h3 { margin-bottom: .25em; }
.values p { margin: 0; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de producto y carril ---------- */

.product-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.product-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sage); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__body h3 { font-size: 1.125rem; margin: 0; }
.product-card__body p { margin: 0; font-size: .9375rem; color: var(--muted); }
.product-card__meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-card__age { font-size: .875rem; font-weight: 600; color: var(--ink); background: var(--sage); padding: 4px 10px; border-radius: var(--r-pill); }
.price { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.price small { font-family: var(--sans); font-weight: 500; font-size: .75rem; color: var(--muted); margin-left: 4px; }

.track-wrap { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.track > * { scroll-snap-align: start; }
.track-nav { display: flex; gap: 8px; }
.track-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.track-nav button:hover { background: var(--ink); color: #fff; }
.track-nav button:disabled { opacity: .35; cursor: default; }
.track-nav button:disabled:hover { background: var(--white); color: var(--ink); }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; max-width: none; }
.section__head--row > div { max-width: 62ch; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Pestañas por edades ---------- */

.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tabs__list button {
  min-height: 44px; padding: 8px 20px; border-radius: var(--r-pill); border: 2px solid var(--line-strong); background: var(--white); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.tabs__list button:hover { border-color: var(--ink); }
.tabs__list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel[hidden] { display: none; }
.age-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.age-panel__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sage); }
.age-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.age-panel h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.age-panel__links { display: grid; gap: 10px; margin: 16px 0 20px; padding: 0; list-style: none; }
.age-panel__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--white); }
.age-panel__links a:hover { border-color: var(--ink); }
.age-panel__links a .icon { color: var(--accent); }
@media (max-width: 800px) { .age-panel { grid-template-columns: 1fr; } }

/* ---------- Banda de materiales ---------- */

.band { background: var(--sky); padding-block: clamp(3rem, 7vw, 6rem); }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.band__media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; max-height: 620px; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__text .lead { margin-bottom: 1.5em; }
.def-list { margin: 0; display: grid; gap: 14px; }
.def-list div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgb(32 48 44 / .12); }
.def-list dt { font-family: var(--display); font-weight: 700; color: var(--ink); }
.def-list dd { margin: 0; }
@media (max-width: 800px) {
  .band__grid { grid-template-columns: 1fr; }
  .band__media { aspect-ratio: 4 / 3; }
  .def-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Pasos ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.steps li { position: relative; padding: 24px 0 0; border-top: 3px solid var(--sage-deep); }
.steps li::before { content: ''; position: absolute; top: -3px; left: 0; width: 56px; height: 3px; background: var(--accent); border-radius: 3px; }
.steps__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 14px; }
.steps h3 { font-size: 1.1875rem; margin-bottom: .3em; }
.steps p { margin: 0; font-size: .9875rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Formulario de solicitud ---------- */

.lead-section { background: var(--sage); padding-block: clamp(3rem, 7vw, 6rem); }
.lead-section__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.lead-section__text h2 { max-width: 16ch; }
.checklist { list-style: none; margin: 1.25em 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: start; }
.checklist .icon { color: var(--accent-dark); margin-top: 3px; }
.lead-card { background: var(--white); border-radius: var(--r-card); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--ink); font-size: .9375rem; }
.field__hint { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-input); padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7A8682; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2320302C'><path d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field__error { margin: 0; color: var(--error); font-size: .9rem; font-weight: 600; }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 6px 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--accent); border-radius: 6px; }
.field--check label { font-weight: 500; color: var(--text); }
.field--check .field__error { grid-column: 2; }
.form-alert { background: #FBE7E4; color: var(--error); border-radius: var(--r-input); padding: 12px 16px; font-weight: 600; margin-bottom: 18px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.privacy-layer { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .9rem; }
.privacy-layer summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.privacy-layer dl { margin: 12px 0 0; display: grid; gap: 6px; }
.privacy-layer dl div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.privacy-layer dt { font-weight: 700; color: var(--ink); }
.privacy-layer dd { margin: 0; }
.lead-form__submit { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lead-form__note { margin: 0; font-size: .9375rem; color: var(--muted); }
@media (max-width: 900px) { .lead-section__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .privacy-layer dl div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Acordeón ---------- */

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--accent); transition: transform .3s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion__body { padding: 0 4px 20px; max-width: 70ch; }
.accordion__body p:last-child { margin-bottom: 0; }
.accordion-group + .accordion-group { margin-top: 40px; }
.accordion-group h2 { font-size: 1.5rem; margin-bottom: 12px; }

/* ---------- Guías ---------- */

.posts { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.post-feature { display: block; text-decoration: none; color: var(--text); }
.post-feature__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 16px; background: var(--sage); }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-feature:hover img { transform: scale(1.03); }
.post-feature h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-list a { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--text); }
.post-list a:hover h3 { color: var(--accent-dark); }
.post-list__media { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--sage); }
.post-list__media img { width: 100%; height: 100%; object-fit: cover; }
.post-list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.post-list p { margin: 0; font-size: .9rem; color: var(--muted); }
.post-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.post-meta .topic { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 800px) { .posts { grid-template-columns: 1fr; } }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.article-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; text-decoration: none; color: var(--text); align-items: center; }
.article-card__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1; background: var(--sage); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card h2 { font-size: 1.375rem; margin-bottom: 6px; }
.article-card:hover h2 { color: var(--accent-dark); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .article-card { grid-template-columns: 1fr; } .article-card__media { aspect-ratio: 3 / 2; } }

/* ---------- CTA ---------- */

.cta { padding-block: clamp(2.5rem, 6vw, 5rem); }
.cta__inner { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta__inner h2 { color: #fff; }
.cta__inner p { color: rgb(255 255 255 / .82); max-width: 50ch; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: end; }
.cta__actions .button--ghost { color: #fff; }
@media (max-width: 800px) { .cta__inner { grid-template-columns: 1fr; } .cta__actions { justify-content: start; } }

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

.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 4rem); }
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { max-width: 38ch; margin: 16px 0; }
.contact-list { font-style: normal; display: grid; gap: 10px; }
.contact-list div { display: flex; gap: 10px; align-items: start; }
.contact-list .icon { color: var(--accent-dark); margin-top: 3px; }
.site-footer__title { font-size: 1rem; margin-bottom: 12px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__col a, .site-footer__col .link-button { color: var(--text); text-decoration: none; }
.site-footer__col a:hover, .site-footer__col .link-button:hover { color: var(--accent-dark); text-decoration: underline; }
.site-footer__bottom { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; font-size: .9rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */

.page-head { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 22ch; }
.page-head--narrow .container { max-width: 780px; }
.page-head--split .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.page-head__media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; max-height: 520px; background: var(--sage); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .page-head--split .container { grid-template-columns: 1fr; } .page-head__media { aspect-ratio: 3 / 2; } }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-dark); }
.legal-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.notice { display: flex; gap: 12px; align-items: start; background: var(--butter); border-radius: var(--r-input); padding: 14px 16px; margin-bottom: 28px; font-size: .95rem; }
.notice .icon { color: var(--ink); margin-top: 2px; }
.notice p { margin: 0; }
.legal-toc { background: var(--sage); border-radius: var(--r-card); padding: 20px 24px; margin-bottom: 36px; }
.legal-toc h2 { font-size: 1rem; margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 1.25em; columns: 2; column-gap: 24px; }
.legal-toc li { break-inside: avoid; margin-bottom: 4px; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--accent-dark); text-decoration: underline; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.25em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; vertical-align: top; }
.prose thead th { background: var(--sage); color: var(--ink); font-family: var(--display); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: rgb(228 239 231 / .45); }
.prose tbody td:first-child { font-weight: 700; color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); margin: 1.25em 0; }
.table-wrap table { margin: 0; }
.prose--legal h2 { font-size: 1.375rem; }
.prose--legal ul, .prose--legal ol { margin-bottom: 1.25em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--sky); border-radius: 16px; font-style: italic; }
.prose .box { background: var(--butter); border-radius: 16px; padding: 18px 20px; margin: 1.5em 0; }
.prose .box p:last-child { margin: 0; }

.article-head { max-width: 780px; }
.article-hero { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 2 / 1; margin: 28px 0 40px; background: var(--sage); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.related { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px; }
.related h2 { font-size: 1.5rem; }

/* Categoría */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .guide-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guide-list { grid-template-columns: 1fr; } }
.guide-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.guide-list h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.guide-list p { margin: 0; font-size: .95rem; }
.catalog-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.cat-card { display: block; text-decoration: none; color: var(--ink); }
.cat-card__media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage); margin-bottom: 14px; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover img { transform: scale(1.03); }
.cat-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.cat-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .catalog-cats { grid-template-columns: 1fr 1fr; } }

/* Producto */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1; background: var(--sage); position: sticky; top: calc(var(--header-h) + 16px); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__info h1 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.product__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }
.product__price .price { font-size: 2rem; }
.product__price .muted { font-size: .9rem; }
.product__short { font-size: 1.125rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.product__facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product__facts li { display: flex; gap: 10px; align-items: start; background: var(--sage); border-radius: 14px; padding: 12px 14px; font-size: .95rem; }
.product__facts .icon { color: var(--accent-dark); margin-top: 2px; }
.product__facts strong { display: block; }
.spec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.spec-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.spec-card h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.spec-card h3 .icon { color: var(--accent-dark); }
.spec-card dl { margin: 0; display: grid; gap: 8px; }
.spec-card dt { font-size: .8125rem; color: var(--muted); }
.spec-card dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.two-col h2 { font-size: 1.375rem; }
.maker-box { background: var(--sky); border-radius: var(--r-card); padding: 22px 24px; margin-top: 24px; }
.maker-box h2 { font-size: 1.125rem; }
.maker-box dl { margin: 0; display: grid; gap: 6px; }
.maker-box dl div { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.maker-box dt { color: var(--muted); font-size: .9rem; }
.maker-box dd { margin: 0; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product__media { position: static; } }
@media (max-width: 560px) { .spec-cards, .product__facts, .two-col { grid-template-columns: 1fr; } .maker-box dl div { grid-template-columns: 1fr; gap: 0; } }

/* Edades (página) */
.age-section { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.age-section:first-of-type { border-top: 0; }
.age-section__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.age-section__media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage); position: sticky; top: calc(var(--header-h) + 16px); }
.age-section__media img { width: 100%; height: 100%; object-fit: cover; }
.age-section h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.age-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mini-products { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-products a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; color: var(--ink); }
.mini-products a:hover { border-color: var(--ink); }
.mini-products img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.mini-products strong { font-size: .95rem; display: block; line-height: 1.3; }
.mini-products span { font-size: .8125rem; color: var(--muted); }
@media (max-width: 800px) { .age-section__grid { grid-template-columns: 1fr; } .age-section__media { position: static; aspect-ratio: 3 / 2; } }
@media (max-width: 520px) { .mini-products { grid-template-columns: 1fr; } }

/* Materiales */
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.material-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.material-card__media { aspect-ratio: 3 / 2; background: var(--sage); }
.material-card__media img { width: 100%; height: 100%; object-fit: cover; }
.material-card__body { padding: 20px 22px 24px; }
.material-card h2 { font-size: 1.25rem; }
.material-card ul { margin: 12px 0 0; padding-left: 1.1em; font-size: .95rem; }
@media (max-width: 900px) { .material-grid { grid-template-columns: 1fr; } }
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fact-row li { background: var(--butter); border-radius: var(--r-card); padding: 22px 24px; }
.fact-row strong { display: block; font-family: var(--display); font-size: 1.125rem; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 800px) { .fact-row { grid-template-columns: 1fr; } }

/* Sobre nosotros */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.story__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sage); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story--rev .story__media { order: 2; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } .story--rev .story__media { order: 0; } }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principles li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; }
.principles h3 { font-size: 1.125rem; margin-bottom: 6px; }
.principles p { margin: 0; font-size: .95rem; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-box { background: var(--sky); border-radius: var(--r-card); padding: 24px 26px; margin-bottom: 20px; }
.contact-box h2 { font-size: 1.25rem; }
.contact-box .contact-list { gap: 14px; }
.contact-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sage); }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Gracias y 404 */
.notice-page { padding-block: clamp(3rem, 8vw, 6rem); text-align: center; }
.notice-page .container { max-width: 640px; }
.notice-page__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--sage); color: var(--accent-dark); display: grid; place-items: center; margin: 0 auto 24px; }
.notice-page__code { font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--sage-deep); margin-bottom: 8px; }
.notice-page .chips { justify-content: center; margin-top: 24px; }
.notice-page__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Cookies ---------- */

.cookie-banner {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(100% - 32px, 460px);
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px 20px;
}
.cookie-banner__text { margin: 0 0 14px; font-size: .9375rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.cookie-dialog { border: 0; border-radius: var(--r-card); padding: 0; width: min(100% - 32px, 560px); box-shadow: var(--shadow-lg); background: var(--white); color: var(--text); }
.cookie-dialog::backdrop { background: rgb(32 48 44 / .45); }
.cookie-dialog__form { padding: 24px 26px; margin: 0; }
.cookie-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.cookie-dialog__head h2 { font-size: 1.375rem; margin: 0; }
.cookie-cats { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.cookie-cat { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.cookie-cat__state { display: block; font-size: .8125rem; color: var(--muted); }
.cookie-cat p { margin: 0; font-size: .9rem; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.switch { position: relative; display: inline-flex; align-items: center; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { width: 48px; height: 28px; border-radius: var(--r-pill); background: var(--line-strong); position: relative; transition: background-color .2s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { opacity: .4; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .cookie-banner { right: 8px; left: 8px; bottom: 8px; width: auto; } .cookie-banner__actions .button { flex: 1 1 auto; } }

/* ---------- Animación ---------- */

.reveal--pending { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible:nth-child(2) { transition-delay: .06s; }
.reveal.is-visible:nth-child(3) { transition-delay: .12s; }
.reveal.is-visible:nth-child(4) { transition-delay: .18s; }
@keyframes settle { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__media img { animation: settle 1.4s var(--ease) both; }
.hero__panel > * { animation: rise .8s var(--ease) both; }
.hero__panel > :nth-child(2) { animation-delay: .08s; }
.hero__panel > :nth-child(3) { animation-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal--pending { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .cta, .lead-section, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ---------- Utilidades (sin estilos inline por CSP) ---------- */
.u-center { margin-inline: auto; }
.u-mt-12 { margin-top: 12px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-32 { margin-top: 32px; }
.u-small { font-size: .9rem; }
.h2--sm { font-size: 1.25rem; }
.h2--md { font-size: 1.5rem; }
.section--flush { padding-top: 0; }
.anchor-target { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose .box p { overflow-wrap: anywhere; }

/* ---------- Cesta ---------- */

.site-header__actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.cart-link {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; transition: background-color .2s;
}
.cart-link:hover { background: var(--sage); }
.cart-link[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-link__count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-family: var(--display); font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center;
}
@media (min-width: 1024px) {
  .site-header__inner { grid-template-columns: auto 1fr auto auto; }
  .brand { order: 1; }
  .site-nav__list { order: 2; }
  .site-header__actions { order: 3; }
  .site-nav__cta { order: 4; }
}

.add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 14px; }
.qty { display: inline-flex; align-items: center; height: 50px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); }
.qty button {
  width: 44px; height: 48px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  border-radius: var(--r-pill); font: inherit; transition: background-color .2s;
}
.qty button:hover { background: var(--sage); }
.qty input { width: 48px; height: 48px; border: 0; background: none; text-align: center; font: inherit; font-weight: 700; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-tint); border-radius: 8px; }
.add-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--r-input); background: var(--sage); color: var(--ink); font-weight: 600; }
.add-feedback a { color: var(--accent-dark); }
.product__actions { margin-bottom: 20px; }

.cart { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.cart-item img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; }
.cart-item__body h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.cart-item__body h3 a { color: inherit; text-decoration: none; }
.cart-item__body h3 a:hover { color: var(--accent-dark); }
.cart-item__meta { margin: 0; font-size: .875rem; color: var(--muted); }
.cart-item__controls { display: flex; align-items: center; gap: 10px; }
.cart-item .qty { height: 42px; }
.cart-item .qty button { width: 38px; height: 40px; }
.cart-item .qty input { width: 40px; height: 40px; }
.cart-item__price { font-family: var(--display); font-weight: 800; color: var(--ink); min-width: 90px; text-align: right; }
.remove { border: 0; background: none; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.remove:hover { background: #FBE7E4; color: var(--error); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--butter); border-radius: var(--r-card); padding: 24px; }
.cart-summary h2 { font-size: 1.25rem; margin: 0 0 14px; }
.cart-summary dl { margin: 0; display: grid; gap: 10px; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.cart-summary__total { border-top: 1px solid rgb(32 48 44 / .12); padding-top: 10px; font-family: var(--display); font-size: 1.0625rem; }
.cart-summary .button { width: 100%; margin-top: 18px; }
.cart-summary__note { font-size: .875rem; color: var(--text); margin: 12px 0 0; }
.cart-empty { text-align: center; padding: clamp(32px, 6vw, 56px) 20px; border: 1px dashed var(--line); border-radius: var(--r-card); }
.cart-empty__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--sage); color: var(--accent-dark); display: grid; place-items: center; margin: 0 auto 16px; }
.cart-empty p { max-width: 44ch; margin-inline: auto; }
.cart-checkout { margin-top: clamp(2rem, 5vw, 3.5rem); }
.cart-checkout__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.checkout-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .cart, .cart-checkout__grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item__controls { grid-column: 1 / -1; justify-content: space-between; }
  .cart-item__price { text-align: left; min-width: 0; }
}
@media print { .cart-link, .add-form, .remove { display: none !important; } }
