/* webroot/css/app.css: La hija de (Lulu) design system */

/* === Brand palette: La hija de (Lulu), palette A "salvia y kraft" ===
   Values from the brand book (design system "Lulu", tokens.json). Kraft and
   sage are surfaces and decoration, never small text: kraft on cream is 1.9:1
   and white on sage 2.6:1. */
:root {
  --paper: #f7f2e7;        /* page background, recipe-book paper */
  --cream: #efe6d2;        /* secondary surface, cards */
  --kraft: #c4a27c;        /* box cardboard: decoration, large text on dark */
  --sage: #95a585;         /* brand colour: large surfaces, patterns */
  --forest: #4e5c43;       /* "salvia bosque": logo, headings, actions (6.4:1 on paper) */
  --dusty-rose: #d3a29d;   /* accent detail, at most 10% of a piece */
  --rose-ink: #7a4f55;     /* dusty rose dark enough to carry text (6.1:1 on paper) */
  --cocoa: #3d3630;        /* main text (10.6:1 on paper) */
  --cocoa-soft: #6b6258;   /* secondary text (5.3:1 on paper) */

  /* Derived, not in the brand book: hover/pressed and a readable kraft. */
  --forest-deep: #3b4633;  /* hover of forest fills (white on it 10:1) */
  --cream-warm: #e6dac0;   /* sunken cream: meters, icon tiles, notices */
  --kraft-deep: #74593c;   /* kraft that reads as text (4.6:1 on cream-warm) */
}

/* === Semantic tokens === */
:root {
  --accent: var(--forest);
  --accent-deep: var(--forest-deep);
  --ink: var(--cocoa);
  --heading: var(--forest);
  --muted: #615950;        /* cocoa-soft nudged to keep 4.5:1 on cream-warm */
  --line: rgba(61, 54, 48, .14);
  --line-soft: rgba(61, 54, 48, .08);
  --shadow: 0 18px 48px -18px rgba(61, 54, 48, .28);

  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;  /* buttons, forms, prices, chips */
  --font-script: 'Letra de Lulu', cursive;                    /* accents, 24px and up only */

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 6px;
  --radius: 10px;          /* brand "radius-tarjeta": cards, buttons, photos */
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px -10px rgba(61, 54, 48, .22);
  --shadow-lg: 0 28px 72px -24px rgba(61, 54, 48, .34);

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .24s;

  --ok: #4b7a52;
  --warn: #8a5a1c;
  --danger: #a33244;
}

/* === Brand fonts: Letra de Lulu v1.1, the brand's own cursive (self-hosted) ===
   A joined script: its letters connect through contextual alternates, so it
   must never get letter-spacing (any value breaks the joins), a synthetic
   italic (it is already slanted) or a synthetic bold (Gruesa is the bold).
   Bump ?v= when the files change: Cloudflare caches fonts for a year. */
@font-face {
  font-family: 'Letra de Lulu';
  src: url('../font/LetraDeLulu-Regular.woff2?v=1.1') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Letra de Lulu';
  src: url('../font/LetraDeLulu-Gruesa.woff2?v=1.1') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === Shop variable overrides (§7.3) === */
:root {
  --shop-accent: var(--accent);
  --shop-accent-deep: var(--accent-deep);
  --shop-accent-soft: var(--kraft);
  --shop-surface: var(--paper);
  --shop-surface-alt: var(--cream);
  --shop-bg: var(--cream);
  --shop-text: var(--ink);
  --shop-text-muted: var(--muted);
  --shop-line: var(--line);
  --shop-success: var(--ok);
  --shop-danger: var(--danger);
  --shop-badge-bg: var(--cream-warm);
  --shop-badge-text: var(--accent-deep);
  --shop-font-heading: var(--font-heading);
  --shop-font-body: var(--font-ui);
  --shop-heading-style: normal;  /* brand headings are upright EB Garamond */
  --shop-radius: var(--radius);
  --shop-radius-lg: var(--radius-lg);
  --shop-shadow: var(--shadow);
  --shop-gap: var(--sp-4);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* EB Garamond runs small: 17px is the brand's reading size */
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: keep the footer at the bottom of the viewport on short
     pages (e.g. an empty search or a 404) instead of leaving a gap below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#contenido { flex: 1 0 auto; }

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

a { color: var(--accent); text-decoration-skip-ink: auto; }
/* Exclude buttons: a `.btn-primary` <a> already sits on an accent fill, so
   recolouring its text to accent-deep on hover made the label vanish. The
   `.btn*` variants carry their own hover rules. */
a:not([class*="btn"]):hover { color: var(--accent-deep); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--heading);
}

/* Controls and figures read in the UI face: EB Garamond is for reading. */
button, input, select, textarea { font-family: var(--font-ui); }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--sp-5); }

/* The handwritten face is never set below 24px (brand rule): contexts may go bigger. */
.script { font-family: var(--font-script); font-size: 1.625rem; line-height: 1.1; }
/* Every handwritten element keeps its joins: no inherited tracking, ligatures and
   contextual alternates on, no faux italic or bold. */
.script, .sign, .hero h1 em {
  letter-spacing: 0;
  font-style: normal;
  font-synthesis: none;
  font-variant-ligatures: common-ligatures contextual;
  font-kerning: normal;
}

/* === Skip link === */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: var(--sp-2); }

/* === Announcement bar === */
/* The Backend plugin renders the announcement bar and ships its own inline
   <style> defaults (padding 10px, 14px text, dots stacked below the message).
   That block loads AFTER this file, so a host override at the same specificity
   loses; we raise it one level (`body ...`) to win. Colours stay with the
   plugin -- each announcement's bg_color / text_color / link_color attributes
   drive them from the admin -- so the host only owns layout, matching the
   mockup: a compact 40px single line, no carousel dots. */
body .announce {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-4);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body .announce-dots { display: none; }

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 230, 210, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  min-height: 104px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding: var(--sp-4) 0; }
/* Horizontal logo (aspect ~4:1): brand minimum 56px tall on desktop, 40px on phones. */
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  gap: var(--sp-5);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}
.nav-links a { color: var(--cocoa); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-links li { position: relative; }
.has-dd > a .dd-caret { margin-left: 4px; vertical-align: middle; transition: transform var(--dur) var(--ease); }
.has-dd:hover > a .dd-caret,
.has-dd:focus-within > a .dd-caret { transform: rotate(180deg); }

/* Dropdown */
.has-dd .dd {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  min-width: 200px;
  box-shadow: var(--shadow-sm);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.has-dd .dd::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.has-dd:hover .dd,
.has-dd:focus-within .dd {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}
.dd a { display: block; padding: var(--sp-2) 0; font-size: .82rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.dd a .da { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.dd-sep { border-top: 1px solid var(--line-soft); margin: var(--sp-2) 0; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cocoa);
  position: relative;
}
.icon-btn:hover { background: var(--line-soft); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
/* Empty badge (0 items) stays hidden; the live hx-swap-oob update reveals it. */
.cart-count:empty { display: none; }
.hamburger { display: none; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost, .btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover, .btn-outline:hover { background: var(--accent); color: #fff; }
/* Light pill for dark/photo backgrounds (service hero, B2B card). */
.btn-cream { background: var(--cream); color: var(--accent); border-color: var(--cream); }
.btn-cream:hover { background: #fff; border-color: #fff; }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: .8rem; }
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.btn-link:hover { color: var(--accent-deep); }
.btn:disabled, .btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* === Form fields === */
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font: 500 11px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kraft-deep);
  margin-bottom: 7px;
}
.field .input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font: 400 14px/1.4 var(--font-ui);
  color: var(--cocoa);
  transition: border-color var(--dur) var(--ease);
}
.field .input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(78, 92, 67, .12); }
.field .help { font-size: .78rem; color: var(--muted); margin-top: var(--sp-1); }
.field.has-error .input { border-color: var(--danger); }
.field .error { font-size: .78rem; color: var(--danger); margin-top: var(--sp-1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23231a17' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.input { resize: vertical; min-height: 120px; }

/* === Honeypot === */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* === Consent checkbox row (contact form privacy, etc.) === */
.field-check { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: .85rem; margin: var(--sp-4) 0; }
.field-check input { margin-top: 3px; }

/* === Form messages === */
.form-message {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: var(--sp-4);
}
.form-message.success { background: rgba(75, 122, 82, .1); color: var(--ok); border: 1px solid rgba(75, 122, 82, .2); }
.form-message.error { background: rgba(163, 50, 68, .1); color: var(--danger); border: 1px solid rgba(163, 50, 68, .2); }
.form-message.warning { background: var(--cream-warm); color: var(--kraft-deep); border: 1px solid var(--line); }

/* === Breadcrumbs === */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: var(--sp-4) 0;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li + li::before { content: '/'; margin-right: var(--sp-2); color: var(--line); }

/* === Accordion (FAQ) === */
.qitem { border-bottom: 1px solid var(--line); }
.qitem summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  list-style: none;
}
.qitem summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.qitem[open] summary::after { content: '\00d7'; transform: rotate(90deg); }
.qitem summary::-webkit-details-marker { display: none; }
.qa-a { padding: 0 0 var(--sp-4); color: var(--muted); line-height: 1.7; }

/* === Pagination === */
.pagination {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  padding: var(--sp-6) 0;
  list-style: none;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  text-decoration: none;
  color: var(--cocoa);
}
.pagination a:hover { background: var(--line-soft); }
.pagination .active { background: var(--accent); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* === Empty state === */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--muted);
}
.empty-state h2 { font-family: var(--font-heading); margin-bottom: var(--sp-3); color: var(--cocoa); }

/* The old bottom-right `.toast` (a dark Alpine card nothing dispatched to)
   is retired - all toasts live in `.toast-stack` (top-right) below. */

/* === Flash toasts (server-rendered .message inside .toast-stack) === */
.toast-stack { position: fixed; top: 16px; right: 16px; z-index: 9100; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast-stack .message { pointer-events: auto; position: relative; display: flex; align-items: flex-start; gap: 11px; background: #fff; color: var(--ink); border: 1px solid rgba(61, 54, 48, .12); border-radius: 12px; padding: 14px 38px 14px 15px; box-shadow: 0 12px 32px -10px rgba(61, 54, 48, .30), 0 3px 10px -3px rgba(61, 54, 48, .12); font-size: .875rem; font-weight: 600; line-height: 1.45; cursor: pointer; animation: mc-toast-in .34s cubic-bezier(.16, 1, .3, 1) both; }
.toast-stack .message.hidden, .toast-stack .message:empty { display: none; }
.message__icon { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; margin-top: 1px; }
.message__text { flex: 1 1 auto; min-width: 0; }
.message.success .message__icon { background: #1b9e4b; }
.message.error .message__icon { background: var(--danger); }
.message.warning .message__icon { background: #e0932a; }
.message.info .message__icon, .message:not(.success):not(.error):not(.warning) .message__icon { background: var(--ink); }
.message__close { position: absolute; top: 8px; right: 9px; background: none; border: none; font-size: 17px; line-height: 1; color: rgba(61, 54, 48, .4); cursor: pointer; padding: 3px 5px; border-radius: 6px; }
.message__close:hover { color: var(--ink); background: rgba(61, 54, 48, .05); }
.message.is-leaving { animation: mc-toast-out .26s ease forwards; }
@keyframes mc-toast-in { from { opacity: 0; transform: translateX(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mc-toast-out { to { opacity: 0; transform: translateX(18px) scale(.98); } }
@media (max-width: 600px) { .toast-stack { top: 12px; right: 12px; left: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast-stack .message, .toast-stack .message.is-leaving { animation: none; } }

/* === Overlay === */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 54, 48, .5);
  z-index: 500;
  display: none;
}
.overlay.active { display: block; }

/* === Modal / Popup === */
.pop-ov {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 54, 48, .5);
}
.pop {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pop-media img { width: 100%; }
.pop-body { padding: var(--sp-5); }
.pop-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(61, 54, 48, .1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cocoa);
}
.pop-off { margin-top: var(--sp-4); padding: var(--sp-4); background: var(--cream-warm); border-radius: var(--radius); text-align: center; }
.fine { font-size: .72rem; color: var(--muted); margin-top: var(--sp-3); }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: 0 -8px 24px rgba(61, 54, 48, .1);
}
.cookie-banner .wrap { display: flex; align-items: flex-start; gap: var(--sp-4); flex-wrap: wrap; }
.cookie-banner p { flex: 1; min-width: 280px; font-size: .85rem; color: var(--muted); }
.cookie-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cookie-categories { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; }
.cookie-categories label { display: flex; align-items: center; gap: var(--sp-2); font-size: .85rem; }

/* === Seals (trust badges) === */
.seals {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.seals-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-5);
}
.seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--cocoa);
  text-align: left;
}
.seal svg { flex: none; color: var(--accent); width: 22px; height: 22px; }
.seal + .seal { border-left: 1px solid var(--line-soft); }
.seal h3 { font-family: var(--font-ui); font-size: .82rem; font-weight: 500; }
.seal p { font-size: .78rem; color: var(--muted); }

/* === Newsletter === */
.nl {
  background: var(--sage);
  color: var(--ink);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}
.nl .script { font-size: 2.75rem; color: var(--accent-deep); line-height: .9; }
.nl h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 34px);
  color: var(--ink);
  margin: var(--sp-2) 0 var(--sp-3);
}
.nl p { color: var(--ink); margin-bottom: var(--sp-4); }
.nl-form { display: flex; flex-wrap: wrap; gap: var(--sp-2); max-width: 420px; margin: 0 auto; }
.nl-form .input {
  flex: 1;
  min-width: 0;
  order: 1;
  background: var(--paper);
  border: 1px solid rgba(61, 54, 48, .2);
  border-radius: var(--radius-pill);
  padding: var(--sp-3) var(--sp-5);
}
.nl-form .input:focus { border-color: var(--accent); outline: none; }
.nl-form .btn { order: 2; white-space: nowrap; }
.nl-consent { flex-basis: 100%; order: 3; display: flex; align-items: flex-start; gap: var(--sp-1); font-size: .72rem; text-align: left; color: var(--ink); justify-content: center; }
.nl-consent a { color: var(--ink); }
.nl-privacy { font-size: .78rem; margin-top: var(--sp-3); color: var(--ink); }
.nl-privacy a { color: var(--ink); }

/* === Hero === */
.hero {
  position: relative;
  padding: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 620px;
}
.hero-copy {
  padding: 76px 64px 76px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--kraft-deep);
  margin-bottom: var(--sp-3);
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--forest); margin-bottom: 22px; }
.hero h1 {
  font: 500 clamp(54px, 7vw, 104px)/.98 var(--font-heading);
  letter-spacing: -.02em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em { font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--accent); }
.hero-lede { font: 400 18px/1.6 var(--font-body); max-width: 460px; color: rgba(61, 54, 48, .78); margin-bottom: 32px; }
.hero-cta { margin-bottom: var(--sp-3); }
.hero-note { font: 400 italic 16px/1.4 var(--font-heading); color: var(--kraft-deep); }
.hero-media { position: relative; border-radius: 0; }
.hero-media .placeholder { position: absolute; inset: 0; min-height: auto; border-radius: 0; }
.hero-badge {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: -42px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--cocoa);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: var(--shadow);
}
.hero-badge .script { font-size: 1.875rem; color: var(--accent); line-height: .9; }
.hero-badge small {
  font-family: var(--font-ui);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--kraft-deep);
  margin-top: 4px;
}

/* === Page hero === */
.n-hero, .c-hero, .f-hero {
  background: var(--paper);
  padding: var(--sp-8) 0 var(--sp-6);
  text-align: center;
}
.n-hero h1, .c-hero h1, .f-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 72px);
  margin-bottom: var(--sp-3);
}
/* The search page reuses the page hero, but at a more modest scale: the
   input and the results are the focus, not the heading. */
.search-hero { padding: var(--sp-7) 0 var(--sp-5); }
.search-hero h1 { font-size: clamp(24px, 2.8vw, 38px); }
.filet {
  width: 60px;
  height: 2px;
  background: var(--kraft);
  margin: var(--sp-3) auto;
}

/* === Story === */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-8) 0;
}
.story.rev { direction: rtl; }
.story.rev > * { direction: ltr; }
.story-media img { border-radius: var(--radius-lg); }
.pull { font-family: var(--font-heading); font-style: italic; font-size: 1.6rem; color: var(--accent); margin: var(--sp-4) 0; }
.sign { font-family: var(--font-script); font-size: 1.75rem; color: var(--rose-ink); }

/* === Band === */
.n-band {
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.n-band img { width: 100%; height: 100%; object-fit: cover; }

/* === Values === */
.values { padding: var(--sp-8) 0; text-align: center; }
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-6); }
.val .ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
}
.val .ic-img { width: 88px; height: 88px; overflow: hidden; }
.val .ic-img img { width: 100%; height: 100%; display: block; }
.val h3 { margin-bottom: var(--sp-2); }
.val p { color: var(--muted); font-size: .9rem; }

/* === Team === */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); padding: var(--sp-6) 0; }
.team-grid--few { grid-template-columns: repeat(auto-fit, minmax(0, 260px)); justify-content: center; }
.member { text-align: center; }
.member-media {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.member-media img { width: 100%; height: 100%; object-fit: cover; }
.role { font-size: .82rem; color: var(--muted); }

/* === CTA strip === */
.cta-strip {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
}
.cta-strip h2 { color: #fff; margin-bottom: var(--sp-4); }

/* === FAQ layout === */
.faq-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
}
.faq-side { position: sticky; top: calc(var(--header-h) + var(--sp-5)); align-self: start; }
.faq-side a, .faq-side button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: .88rem;
  color: var(--cocoa);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
.faq-side .on { background: var(--accent); color: #fff; }
.faq-group { margin-bottom: var(--sp-6); }
.faq-group h2 { font-size: 1.3rem; margin-bottom: var(--sp-2); }
.gcount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-warm);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--font-ui);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-left: var(--sp-2);
  vertical-align: middle;
}
.intro { color: var(--muted); font-size: .9rem; margin-bottom: var(--sp-3); }

/* === FAQ search === */
.f-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.f-search input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: .95rem;
  background: #fff;
}
.f-search input:focus { border-color: var(--accent); outline: none; }
.f-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
}

/* === Help CTA === */
.help-cta {
  text-align: center;
  padding: var(--sp-7) 0;
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  margin-top: var(--sp-6);
}
.help-cta h3 { margin-bottom: var(--sp-3); }

/* === Contact form card === */
.form-card {
  background: var(--paper);
  color: var(--cocoa);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card h3 {
  font: 400 26px/1 var(--font-heading);
  margin-bottom: 4px;
}
.form-card .fnote {
  font: 400 13px/1.4 var(--font-body);
  color: rgba(61, 54, 48, .6);
  margin-bottom: 22px;
}
.form-card .btn-primary { width: 100%; margin-top: 6px; }
.form-card .sub { font-size: .85rem; color: var(--muted); margin-bottom: var(--sp-5); }

/* === Contact layout === */
.c-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
}

/* === Info card === */
.info-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-row:last-child { border-bottom: none; }
.info-row .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === Hours === */
.hours { padding: var(--sp-4) 0; }
.hr {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  font-size: .88rem;
}
.hr.closed { color: var(--muted); }
.hr.today { font-weight: 600; }

/* === Location === */
.locator { padding: var(--sp-7) 0; }
.loc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.store {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.store:hover, .store.on { border-color: var(--accent); }
.store h3 { display: flex; align-items: center; }
.store h3 a { display: flex; align-items: center; color: inherit; text-decoration: none; }
.pin-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  margin-right: var(--sp-2);
}
.tag {
  display: inline-block;
  background: var(--cream-warm);
  color: var(--accent-deep);
  font-size: .72rem;
  font-weight: 600;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.store-detail {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* === Map === */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-warm);
}

/* === Section head === */
.section-head {
  text-align: center;
  padding: var(--sp-6) 0 var(--sp-4);
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
}

/* === Section shell (generic block wrapper + grid modifier) === */
.block { padding: var(--sp-9) 0; }
.grid-4 { --cols: 4; }

@media (max-width: 560px) {
  .block { padding: var(--sp-8) 0; }
}

/* === Placeholder === */
.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(61, 54, 48, .05) 0 2px, transparent 2px 11px),
    var(--cream-warm);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  min-height: 200px;
}

/* === Legal meta === */
.legal-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

/* === Rich text === */
.rich-text { line-height: 1.8; }
.rich-text h2 { font-size: 1.5rem; margin: var(--sp-6) 0 var(--sp-3); padding-top: var(--sp-4); }
.rich-text h3 { font-size: 1.2rem; margin: var(--sp-4) 0 var(--sp-2); }
.rich-text p { margin-bottom: var(--sp-4); }
.rich-text ul, .rich-text ol { margin-bottom: var(--sp-4); padding-left: var(--sp-5); }
.rich-text a { color: var(--accent); }
.rich-text blockquote {
  border-left: 3px solid var(--kraft);
  padding-left: var(--sp-4);
  margin: var(--sp-4) 0;
  font-style: italic;
  color: var(--muted);
}

/* === Search === */
.search-result {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-soft);
}
.search-result .type-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}
.search-result h3 { font-size: 1.1rem; margin-bottom: var(--sp-1); }
.search-result h3 a { color: var(--cocoa); text-decoration: none; }
.search-result h3 a:hover { color: var(--accent); }
.search-result p { color: var(--muted); font-size: .9rem; }
.search-result mark { background: rgba(78, 92, 67, .12); color: var(--accent); padding: 1px 3px; border-radius: 2px; }

/* === Events === */
.kicker {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--kraft-deep);
}
.events { background: var(--accent); color: var(--cream); padding: var(--sp-8) 0; }
.events-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
.events .kicker { color: var(--cream); }
.events h2 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  margin: var(--sp-2) 0 var(--sp-3);
  color: var(--cream);
}
.events p { color: rgba(239, 230, 210, .82); max-width: 440px; margin-bottom: var(--sp-4); }
.events .form-card { color: var(--cocoa); }

/* === WhatsApp button === */
.whatsapp-btn {
  position: fixed;
  bottom: var(--sp-5);
  left: var(--sp-5);
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 28px; height: 28px; }

/* === Footer === */
footer {
  background: var(--forest);
  color: var(--cream);
}
/* The brand's tablecloth tartan (cuadro 8) as a ribbon along the top edge. */
footer::before {
  content: '';
  display: block;
  height: 14px;
  background: url('../img/brand/tartan.svg') repeat-x left top / 112px 112px;
}
.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
}
.foot a { color: var(--cream); text-decoration: none; font-size: .88rem; }
.foot a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cream);
  margin-bottom: var(--sp-3);
}
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: .88rem; }
.foot-logo { display: block; margin: 20px 0 16px; }
.foot-logo img { height: 56px; width: auto; }
.foot-brand p { font-size: .95rem; color: rgba(239, 230, 210, .9); max-width: 320px; line-height: 1.6; }
.foot-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 230, 210, .08);
  color: var(--cream);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.foot-social a:hover { background: var(--kraft); color: var(--cocoa); }
.foot-bottom {
  border-top: 1px solid rgba(239, 230, 210, .2);
  padding: var(--sp-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(239, 230, 210, .85);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.foot-bottom a { font-size: .78rem; }
.foot-legal { display: flex; gap: var(--sp-4); }

/* === Mobile menu === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--paper);
  z-index: 600;
  overflow-y: auto;
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
}
.mobile-menu.active { transform: translateX(0); }
#menu-movil:target ~ .mobile-menu,
.mobile-menu:target { display: block; transform: translateX(0); }
.mobile-menu .close-btn {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sp-4);
}
.mobile-menu nav a {
  display: block;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--cocoa);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.mobile-menu nav a.mm-sub { padding-left: var(--sp-4); font-size: .95rem; }
/* Group divider between the shop categories and the "Giftlovers" link: a small
   gap, not an empty tappable row (which showed as a broken double line). */
.mobile-menu nav .mm-sub-sep { display: block; height: var(--sp-2); }
/* The "para regalar" subtitle, matching the desktop dropdown note (.da). */
.mobile-menu nav a.mm-sub .mm-note { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; color: var(--muted); }
.mm-cta { margin-top: var(--sp-4); }

/* === Responsive === */
@media (max-width: 1024px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { min-height: 480px; }
}

@media (max-width: 860px) {
  header { min-height: 80px; }
  .nav-logo img { height: 44px; }
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 56px 0 40px; }
  .hero-media { height: 420px; }
  .story { grid-template-columns: 1fr; }
  .story.rev { direction: ltr; }
  .c-layout { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-side { position: static; display: flex; overflow-x: auto; gap: var(--sp-2); padding-bottom: var(--sp-3); }
  .seals-inner { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3) 8px; }
  .seal:nth-child(odd) { border-left: none; }
  .events-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* The horizontal logo is wider than the old square mark: at its 40px brand
     minimum it still leaves room for the four header icons. */
  .nav { gap: var(--sp-3); }
  .nav-logo img { height: 40px; }
  .nav-actions { gap: 4px; }
  body .announce { letter-spacing: .06em; font-size: .72rem; }
  .foot { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .val-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .hero h1 { font-size: clamp(36px, 10vw, 54px); }
  .hero-badge { width: 90px; height: 90px; font-size: .72rem; }
}

/*
 * === Services & B2B (M6) — ported from `Miss Cake Servicios.html` (spec §5.2) ===
 *
 * `.field`, `.field-row`, `.form-card`, `.form-message`, `.breadcrumbs`,
 * `.block`, `.kicker`, `.script`, `.placeholder` and the `.btn*` family
 * already exist above (§7 tokens, shared sitewide) and are reused as-is.
 * `.dot` and `.ic` already exist for unrelated components (the announcement
 * carousel and value/info cards); the M6 rules below scope their own
 * meaning to `.brand-strip .dot` / `.prop .ic` so neither collides with the
 * other.
 */

/* --- Shared block head --- */
.block-head { max-width: 620px; margin: 0 0 var(--sp-8); }
.block-head.center { margin: 0 auto var(--sp-8); text-align: center; }
.block-head h2 {
  font: 500 clamp(32px, 4.4vw, 54px)/1.04 var(--font-heading);
  letter-spacing: -.01em;
  margin: var(--sp-3) 0 var(--sp-3);
}
.block-head p { font: 400 16px/1.65 var(--font-body); color: rgba(61, 54, 48, .7); margin: 0; }
.block-head--sub { margin-bottom: var(--sp-5); }
.block-head--sub h2 { font-size: clamp(26px, 3vw, 38px); }

/* --- Hero (.s-hero) --- */
.s-hero { position: relative; overflow: hidden; background: var(--cocoa); color: var(--cream); }
.s-hero .placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: rgba(239, 230, 210, .5);
  background:
    repeating-linear-gradient(135deg, rgba(239, 230, 210, .05) 0 2px, transparent 2px 13px),
    var(--accent-deep);
}
.s-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Heavy enough that a busy photo (logos, wrappers) never fights the copy. */
  background: linear-gradient(120deg, rgba(61, 54, 48, .9) 25%, rgba(61, 54, 48, .66));
}
.s-hero .wrap { position: relative; z-index: 2; padding: 76px var(--sp-5) 72px; max-width: 760px; text-shadow: 0 2px 18px rgba(61, 54, 48, .6); }
.s-hero .wrap .btn { text-shadow: none; }
.s-hero .script { font-size: 44px; color: var(--kraft); display: block; line-height: .9; margin-bottom: 6px; }
.s-hero h1 {
  font: 500 clamp(44px, 6vw, 84px)/1 var(--font-heading);
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: var(--sp-5);
}
.s-hero p {
  font: 400 18px/1.6 var(--font-body);
  color: rgba(239, 230, 210, .94);
  max-width: 560px;
  margin-bottom: var(--sp-6);
}
.s-hero .cta { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.s-hero .btn-ghost { color: var(--cream); border-color: rgba(239, 230, 210, .4); }
.s-hero .stats { display: flex; gap: var(--sp-7); margin-top: var(--sp-7); flex-wrap: wrap; }
.s-hero .stats .n { font: 500 40px/1 var(--font-heading); color: var(--kraft); }
.s-hero .stats .l { font: 400 13px/1.4 var(--font-body); color: rgba(239, 230, 210, .88); }

/* --- Anchor strip (.snav) --- */
.snav { position: sticky; top: var(--header-h); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.snav .wrap { display: flex; gap: var(--sp-2); overflow-x: auto; padding: var(--sp-3) var(--sp-5); }
.snav a {
  white-space: nowrap;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-pill);
  font: 600 12px/1 var(--font-ui);
  color: rgba(61, 54, 48, .62);
  text-decoration: none;
}
.snav a:hover { background: var(--cream); color: var(--accent); }

/* --- Catering block (#catering) --- */
.cater { background: var(--paper); }
.cater-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; margin-bottom: var(--sp-8); }
.cater-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.cater-media img, .cater-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; border-radius: 0; }
.cater-media .tagpill {
  position: absolute;
  z-index: 2;
  left: var(--sp-4);
  bottom: var(--sp-4);
  background: var(--cream);
  color: var(--cocoa);
  border-radius: var(--radius-pill);
  padding: 9px var(--sp-4);
  font: 600 11px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cater-copy h3 { font: 400 30px/1.1 var(--font-heading); margin-bottom: var(--sp-2); }
.cater-copy p { font: 400 15px/1.6 var(--font-body); color: var(--muted); margin: 0; }

.cater-list { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.cater-list li { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 9px 0; font: 400 15px/1.5 var(--font-body); color: rgba(61, 54, 48, .82); }
.cater-list svg { flex: none; color: var(--accent); margin-top: 3px; }
.cater-list--dark { margin: 0 0 var(--sp-6); }
.cater-list--dark li { align-items: center; gap: 11px; padding: 7px 0; font: 400 14px/1.4 var(--font-body); color: rgba(239, 230, 210, .9); }
.cater-list--dark svg { color: var(--kraft); margin-top: 0; }

.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.ev { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--cream); }
.ev-media { position: relative; aspect-ratio: 4 / 3; }
.ev-media img, .ev-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; border-radius: 0; }
.ev-body { padding: var(--sp-5) var(--sp-5) 22px; }
.ev-body h3 { font: 400 26px/1 var(--font-heading); margin-bottom: 6px; }
.ev-body p { font: 400 13px/1.5 var(--font-body); color: rgba(61, 54, 48, .65); margin: 0 0 var(--sp-3); }
.ev-body .from { font: 600 12px/1 var(--font-body); color: var(--kraft-deep); letter-spacing: .04em; }

/* --- Configurator (#configurador) --- */
.cfg { background: var(--cocoa); color: var(--cream); }
.cfg .block-head h2 { color: var(--cream); }
.cfg .block-head p { color: rgba(239, 230, 210, .75); }
.cfg .kicker { color: var(--kraft); }

.cfg-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-7); align-items: start; }
.cfg-panel { background: rgba(239, 230, 210, .05); border: 1px solid rgba(239, 230, 210, .14); border-radius: var(--radius-lg); padding: var(--sp-6); }
.cfg-group { margin-bottom: var(--sp-6); border: 0; padding: 0; }
.cfg-group:last-child { margin-bottom: 0; }
.cfg-group > label,
.cfg-group > legend,
.cfg-group > .cfg-label {
  display: block;
  font: 600 12px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kraft);
  margin-bottom: var(--sp-4);
  padding: 0;
}

.people { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid rgba(239, 230, 210, .25); border-radius: var(--radius-pill); }
.stepper input[type='number'] {
  background: none;
  border: none;
  width: 60px;
  text-align: center;
  font: 600 18px/1 var(--font-ui);
  color: var(--cream);
}
.stepper input[type='number']::-webkit-outer-spin-button,
.stepper input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { background: none; border: none; width: 44px; height: 46px; font-size: 20px; color: var(--cream); cursor: pointer; }
.people .hint { font: 400 13px/1.4 var(--font-body); color: rgba(239, 230, 210, .6); }
.cfg-note { font: 400 13px/1.45 var(--font-body); color: rgba(239, 230, 210, .6); margin: var(--sp-3) 0 0; }
.cfg-incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cfg-incl li { font: 400 15px/1.45 var(--font-body); color: var(--cream); padding-left: 18px; position: relative; }
.cfg-incl li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--kraft); }
.cfg-sum .total--custom { display: block; font: 500 15px/1.45 var(--font-ui); }
.cfg-sum .row .num { white-space: nowrap; }

.opt-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.opt-input, .assort-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.opt {
  display: inline-flex;
  background: rgba(239, 230, 210, .04);
  border: 1.5px solid rgba(239, 230, 210, .16);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  color: var(--cream);
  font: 500 13px/1 var(--font-ui);
  cursor: pointer;
}
.opt-input:checked + .opt { border-color: var(--kraft); background: rgba(196, 162, 124, .14); }
.opt-input:focus-visible + .opt { outline: 2px solid var(--kraft); outline-offset: 2px; }

.assort { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.assort label {
  display: block;
  background: rgba(239, 230, 210, .04);
  border: 1.5px solid rgba(239, 230, 210, .16);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.assort label .t { font: 600 14px/1.2 var(--font-ui); display: block; margin-bottom: 4px; }
.assort label .d { font: 400 12px/1.4 var(--font-body); color: rgba(239, 230, 210, .62); }
.assort-input:checked + label { border-color: var(--kraft); background: rgba(196, 162, 124, .14); }
.assort-input:focus-visible + label { outline: 2px solid var(--kraft); outline-offset: 2px; }

.cfg-sum { background: var(--cream); color: var(--cocoa); border-radius: var(--radius-lg); padding: var(--sp-6); position: sticky; top: 120px; }
.cfg-sum h3 { font: 400 28px/1 var(--font-heading); margin-bottom: 6px; }
.cfg-sum .cap { font: 400 13px/1.4 var(--font-ui); color: var(--muted); margin-bottom: var(--sp-5); }
.cfg-sum .row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 9px 0; font: 500 14px/1.3 var(--font-ui); border-bottom: 1px solid var(--line-soft); }
.cfg-sum .row span:last-child { color: var(--cocoa); font-weight: 600; text-align: right; }
.cfg-sum .row small { display: block; font: 400 12px/1 var(--font-ui); color: rgba(61, 54, 48, .5); font-weight: 400; }
.cfg-sum .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: var(--sp-2); padding-top: 15px; font: 600 15px/1 var(--font-ui); }
.cfg-sum .total > div { text-align: right; }
.cfg-sum .total .amt { font: 500 34px/1 var(--font-heading); }
.cfg-sum .per { font: 400 12px/1.4 var(--font-ui); color: rgba(61, 54, 48, .55); margin-top: 2px; }
.cfg-sum .btn-primary { width: 100%; margin-top: var(--sp-4); }
.cfg-sum .note { font: 400 12px/1.5 var(--font-ui); color: var(--muted); text-align: center; margin-top: var(--sp-3); }

/* --- B2B (#b2b) --- */
.b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.b2b-props { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-3); }
.prop { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-5); }
.prop .ic {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--cream-warm);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.prop h4 { font: 600 14px/1.3 var(--font-body); margin-bottom: 5px; }

.b2b-card { background: var(--accent); color: var(--cream); border-radius: var(--radius-lg); padding: var(--sp-7); box-shadow: var(--shadow); }
.b2b-card .script { font-size: 2rem; color: var(--kraft); display: block; line-height: .9; margin-bottom: 6px; }
.b2b-card h3 { font: 500 34px/1.05 var(--font-heading); color: var(--cream); margin-bottom: var(--sp-3); }
.b2b-card p { font: 400 15px/1.6 var(--font-body); color: rgba(239, 230, 210, .85); margin-bottom: var(--sp-5); }
.b2b-card .cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.b2b-card .btn-ghost { color: var(--cream); border-color: rgba(239, 230, 210, .4); }

/* --- Branding (#branding) --- */
.brand { background: var(--paper); }
.brand-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-3); }
.bfeat { text-align: left; }
.bfeat-media { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-4); }
.bfeat-media img, .bfeat-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; border-radius: 0; }
.bfeat h3 { font: 400 24px/1.05 var(--font-heading); margin-bottom: 6px; }
.bfeat p { font: 400 14px/1.55 var(--font-body); color: rgba(61, 54, 48, .68); margin: 0; }

.brand-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-8);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-soft);
}
.brand-strip span { font: 400 italic 20px/1 var(--font-heading); color: rgba(61, 54, 48, .4); }
.brand-strip .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--kraft); margin: 0; }

/* --- Workshops + leads (#talleres) --- */
.work-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
.work-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-3); }
.wshop { display: flex; gap: var(--sp-4); background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-5); align-items: center; }
.wshop-media { position: relative; width: 88px; height: 88px; flex: none; border-radius: 11px; overflow: hidden; }
.wshop-media img, .wshop-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; border-radius: 0; }
.wshop h3 { font: 400 24px/1.05 var(--font-heading); margin-bottom: 3px; }
.wshop p { font: 400 13px/1.45 var(--font-body); color: rgba(61, 54, 48, .65); margin: 0 0 6px; }
.wshop .meta { font: 600 12px/1 var(--font-body); color: var(--kraft-deep); display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.lead-card { background: var(--sage); color: var(--ink); border-radius: var(--radius-lg); padding: var(--sp-7); box-shadow: var(--shadow); }
.lead-card .script { font-size: 1.875rem; color: var(--accent-deep); display: block; line-height: .9; }
.lead-card h3 { font: 400 30px/1.05 var(--font-heading); color: var(--ink); margin: 2px 0 6px; }
.lead-box { background: var(--cream); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; font: 400 14px/1.45 var(--font-body); }
.lead-solo { max-width: 640px; margin: var(--sp-7) auto 0; }
.lead-card > p { font: 400 14px/1.5 var(--font-body); color: rgba(61, 54, 48, .72); margin-bottom: var(--sp-5); }
.lead-card .field label { color: var(--ink); }
.lead-card .field .input { background: var(--paper); }
.lead-card .btn-primary { width: 100%; margin-top: var(--sp-2); }

.lead-msg, .form-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font: 400 italic 15px/1.4 var(--font-heading);
  color: var(--accent-deep);
  text-align: center;
  margin-top: var(--sp-3);
  min-height: 20px;
}
.lead-msg svg, .form-msg svg { flex: none; color: var(--ok); }

/* --- Responsive (1024 / 860 / 560, desktop-first — canon §1) --- */
@media (max-width: 1024px) {
  .events-grid, .brand-feat, .assort { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .cater-top, .cfg-layout, .b2b-grid, .work-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cfg-sum { position: static; }
  .b2b-props, .events-grid, .brand-feat { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .events-grid, .brand-feat, .b2b-props { grid-template-columns: 1fr; }
  .s-hero .stats { gap: var(--sp-5); }
}

/*
 * === Blog (M7) — ported from `Miss Cake Blog.html` / `Miss Cake
 * Artículo.html` (spec §5.2/§5.3).
 *
 * `.script`, `.block`, `.wrap`, `.btn*`, `.nl`, `.pagination`,
 * `.empty-state` and `.form-message` already exist above and are reused
 * as-is. The announcement carousel already owns a bare `.dot` (a flex
 * container of small dots); the article byline's own single-dot separator
 * is scoped under `.art-byline` below so the two never collide.
 */

/* --- Hero (.b-hero) --- */
.b-hero { background: var(--paper); border-bottom: 1px solid var(--line-soft); text-align: center; padding: var(--sp-8) 0 var(--sp-7); }
.b-hero .script { font-size: 40px; color: var(--accent); display: block; line-height: .9; }
.b-hero h1 { font: 500 clamp(38px, 5vw, 64px)/1 var(--font-heading); letter-spacing: -.02em; margin: var(--sp-2) 0 var(--sp-3); }
.b-hero p { font: 400 17px/1.6 var(--font-body); color: rgba(61, 54, 48, .7); max-width: 520px; margin: 0 auto; }

/* --- Featured post (.feat) --- */
.feat {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--sp-6);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-7);
  text-decoration: none;
  color: inherit;
}
.feat-media { position: relative; aspect-ratio: 16 / 11; min-height: 100%; }
.feat-media img, .feat-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; min-height: 0; }
.feat-body { padding: var(--sp-7) var(--sp-7) var(--sp-7) var(--sp-2); }
.feat .cat {
  font: 600 11px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--cream);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.feat h2 { font: 500 clamp(28px, 3.2vw, 42px)/1.08 var(--font-heading); margin-bottom: var(--sp-3); }
.feat p { font: 400 15px/1.65 var(--font-body); color: rgba(61, 54, 48, .72); margin: 0 0 var(--sp-4); }
.feat .meta { font: 400 13px/1 var(--font-body); color: rgba(61, 54, 48, .55); margin-bottom: var(--sp-4); }

/* --- Category filter (.b-filter) --- */
.b-filter { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.b-filter a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font: 500 12px/1 var(--font-ui);
  color: rgba(61, 54, 48, .7);
  text-decoration: none;
}
.b-filter a:hover { border-color: var(--accent); color: var(--accent); }
.b-filter a.on { background: var(--accent); color: var(--cream); border-color: var(--accent); }

/* --- Grid + post card (.b-grid, .post) --- */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
#blog-grid.htmx-request { opacity: .6; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.post {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { position: relative; aspect-ratio: 16 / 10; }
.post-media img, .post-media .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; min-height: 0; }
.post-media .cat {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 2;
  font: 600 10px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--cocoa);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}
.post-body { padding: var(--sp-5) var(--sp-5) 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font: 400 26px/1.08 var(--font-heading); margin-bottom: var(--sp-2); }
.post-body p { font: 400 14px/1.55 var(--font-body); color: rgba(61, 54, 48, .65); margin: 0 0 var(--sp-4); }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; font: 400 12px/1 var(--font-body); color: rgba(61, 54, 48, .55); }
.post-foot .rm { font: 600 12px/1 var(--font-body); color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }

/* --- Newsletter strip, inset-card variant on the blog listing (.nl.nl-card) --- */
.nl.nl-card { border-radius: var(--radius-lg); margin-top: var(--sp-7); }

/* --- Article width utility + breadcrumbs + head (.article, .crumbs, .art-head) --- */
.article { max-width: 720px; margin: 0 auto; padding: 0 var(--sp-5); }
.art-head { text-align: center; padding: var(--sp-7) 0 var(--sp-5); }
.crumbs { font: 500 12px/1 var(--font-body); letter-spacing: .06em; color: rgba(61, 54, 48, .55); margin-bottom: var(--sp-4); }
.crumbs a { color: rgba(61, 54, 48, .55); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .cur { color: var(--accent); }
.art-head .cat {
  font: 600 11px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  display: inline-block;
  margin-bottom: var(--sp-4);
}
.art-head h1 { font: 500 clamp(34px, 4.6vw, 58px)/1.05 var(--font-heading); letter-spacing: -.015em; margin-bottom: var(--sp-4); }
.art-byline { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; font: 400 13px/1 var(--font-body); color: rgba(61, 54, 48, .6); }
.art-byline .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cream);
  font: 600 13px/1 var(--font-ui);
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-byline .dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: rgba(61, 54, 48, .3); margin: 0; }

/* --- Cover image (.art-cover) --- */
.art-cover { position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius-lg); overflow: hidden; margin: var(--sp-6) auto 0; max-width: 1000px; box-shadow: var(--shadow); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Body (.art-body) --- */
.art-body { padding: var(--sp-7) 0 var(--sp-8); }
.art-body .lead { font: 400 italic 22px/1.55 var(--font-heading); color: var(--kraft-deep); margin: 0 0 var(--sp-5); }
.art-body p { font: 400 17px/1.8 var(--font-body); color: rgba(61, 54, 48, .82); margin: 0 0 var(--sp-5); }
.art-body h2 { font: 500 32px/1.1 var(--font-heading); margin: var(--sp-7) 0 var(--sp-3); }
.art-body h3 { font: 600 15px/1.3 var(--font-body); letter-spacing: .02em; margin: var(--sp-6) 0 var(--sp-2); }
.art-body ul, .art-body ol { margin: 0 0 var(--sp-5); padding-left: 22px; }
.art-body li { font: 400 17px/1.75 var(--font-body); color: rgba(61, 54, 48, .82); margin-bottom: var(--sp-2); }
.art-body blockquote { margin: var(--sp-6) 0; padding: 6px 0 6px var(--sp-5); border-left: 2px solid var(--kraft); font: 500 italic 26px/1.4 var(--font-heading); color: var(--accent); }
.art-body figure { margin: var(--sp-6) 0; }
.art-body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; }
.art-body figcaption { font: 400 12px/1.5 var(--font-body); color: rgba(61, 54, 48, .5); text-align: center; margin-top: var(--sp-2); }

/* --- Tags (.art-tags) --- */
.art-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-6) 0; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.art-tags span { font: 500 12px/1 var(--font-ui); color: rgba(61, 54, 48, .65); background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-pill); padding: 8px 14px; }

/* --- Author box (.author) --- */
.author { display: flex; gap: var(--sp-4); align-items: center; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.author .av { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--accent); color: var(--cream); font: 600 20px/1 var(--font-body); display: flex; align-items: center; justify-content: center; }
.author h4 { font: 400 24px/1 var(--font-heading); margin-bottom: 4px; }
.author p { margin: 0; font: 400 13px/1.5 var(--font-body); color: rgba(61, 54, 48, .65); }

/* --- Share (.share) --- */
.share { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.share span:first-child { font: 500 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(61, 54, 48, .5); }
.share a, .share-copy {
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cocoa);
  background: transparent;
  cursor: pointer;
}
.share a:hover, .share-copy:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.share-copy { padding: 0 var(--sp-4); gap: 6px; font: 500 12px/1 var(--font-ui); }

/* --- Related (.rel) --- */
.rel { background: var(--paper); padding: var(--sp-8) 0; }
.rel h2 { font: 500 38px/1 var(--font-heading); text-align: center; margin-bottom: var(--sp-6); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.rel .post { background: var(--cream); }

/* --- Reading progress (.progress) --- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); z-index: 110; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }

/* --- Responsive (1024 / 860 / 560, desktop-first — canon §1) --- */
@media (max-width: 1024px) {
  .b-grid, .rel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; }
  .feat-media { aspect-ratio: 16 / 9; }
  .feat-body { padding: var(--sp-6); }
  .rel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .b-grid { grid-template-columns: 1fr; }
  .author { flex-direction: column; text-align: center; }
}

/*
 * === Loyalty club (M7) — ported from `Miss Cake Cuenta.html` (spec
 * §5.1/§5.2/§5.3).
 *
 * `.wrap`, `.f-hero`, `.script`, `.filet`, `.breadcrumbs`, `.btn*`,
 * `.field`, `.form-message`, `.empty-state` and `.pagination` already exist
 * above and are reused as-is. `Shop.account/nav` (the sidebar) is `Shop`'s
 * own element, styled here as `.account-nav` since no host page had given
 * it CSS yet — a gap this section also closes for every other
 * `Shop\Controller\AccountController` page, not just this one.
 */

/* --- Account shell (.account-layout, .account-nav, .account-content) --- */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--sp-7); align-items: start; padding: var(--sp-6) 0 var(--sp-9); }
.account-nav { position: sticky; top: calc(var(--header-h) + var(--sp-4)); background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: var(--sp-2); }
.account-nav ul { list-style: none; padding: 0; margin: 0; }
.account-nav a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  font: 500 14px/1 var(--font-ui);
  color: var(--cocoa);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.account-nav a:hover { background: var(--cream); }
.account-nav a.active { background: var(--accent); color: var(--cream); }
.account-content h2 { font: 500 28px/1 var(--font-heading); margin: var(--sp-7) 0 var(--sp-4); }
.account-content h2:first-child { margin-top: 0; }

/* --- Balance card (.loyalty-summary) --- */
.loyalty-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  background: var(--accent);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.loyalty-summary .ls-balance { display: flex; align-items: baseline; gap: var(--sp-2); }
.loyalty-summary .ls-balance .n { font: 600 42px/1 var(--font-ui); }
.loyalty-summary .ls-balance .l { font: 500 12px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(239, 230, 210, .75); }
.loyalty-summary .ls-tier { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); text-align: right; }
.loyalty-summary .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font: 600 11px/1 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--shop-badge-bg);
  color: var(--shop-badge-text);
}
.loyalty-summary .ls-next { font: 400 13px/1.4 var(--font-body); color: rgba(239, 230, 210, .82); }
.loyalty-summary .ls-disabled { font: 400 15px/1.5 var(--font-body); color: var(--cream); margin: 0; }

/* --- Tier progress bar (.tier-meter), same pattern as Shop.cart/free-shipping-meter --- */
.tier-meter { background: var(--cream); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6); }
.tier-meter .t { font: 400 13px/1.4 var(--font-body); color: rgba(61, 54, 48, .75); margin-bottom: var(--sp-3); }
.tier-meter .t b { color: var(--accent); font-weight: 600; }
.tier-meter .bar { height: 6px; border-radius: var(--radius-pill); background: var(--cream-warm); overflow: hidden; }
.tier-meter .bar i { display: block; height: 100%; width: 100%; background: var(--sage); transform: scaleX(var(--meter-pct, 0)); transform-origin: left; transition: transform .35s var(--ease); }

/* --- Redeem form (.redeem-panel) --- */
.redeem-panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: var(--sp-6); margin-bottom: var(--sp-7); max-width: 460px; }
.redeem-panel .field:last-of-type { margin-bottom: var(--sp-4); }
.redeem-empty { font: 400 14px/1.5 var(--font-body); color: var(--muted); margin: 0; }
.redeem-success { display: flex; align-items: flex-start; gap: var(--sp-3); }
.redeem-success svg { flex: none; color: var(--ok); margin-top: 2px; }
.redeem-success p { margin: 0; font: 400 14px/1.5 var(--font-body); }
.redeem-success strong { font-weight: 600; color: var(--accent); }

/* --- Points history (.tx-list, .tx-row) --- */
.tx-list { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-5); }
.tx-row { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2) var(--sp-5); align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line-soft); }
.tx-row:last-child { border-bottom: 0; }
.tx-main { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); min-width: 0; }
.tx-date { font: 600 13px/1.2 var(--font-ui); color: var(--cocoa); }
.tx-reason { font: 400 13px/1.3 var(--font-ui); color: var(--muted); }
.tx-order { font: 600 12px/1 var(--font-ui); color: var(--accent); text-decoration: none; }
.tx-order:hover { color: var(--accent-deep); }
.tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; justify-self: end; }
.tx-points { font: 600 16px/1 var(--font-ui); }
.tx-points.is-positive { color: var(--ok); }
.tx-points.is-negative { color: var(--danger); }
.tx-balance { font: 400 12px/1 var(--font-ui); color: var(--muted); }

/* --- Responsive (1024 / 860 / 560, desktop-first — canon §1) --- */
@media (max-width: 1024px) {
  .account-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 860px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .loyalty-summary { flex-direction: column; align-items: flex-start; }
  .loyalty-summary .ls-tier { align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .tx-row { grid-template-columns: 1fr; }
  .tx-right { align-items: flex-start; justify-self: start; }
}

/*
 * === Testimonials (M7, §6.10) — ported from `Miss Cake Nosotros.html`
 * `.tst`/`.review`/`.who`/`.av`/`.n`/`.m` (l. 79-85, 215-217).
 *
 * Renamed `.review` → `.tst-card` and `.review .stars` → `.tst-stars`: this
 * block is shared by Home and Nosotros (`testimonial/card`), while `.review`
 * is `Shop`'s own class for product reviews (`Shop.review/card`) — same
 * mockup pattern, two different owners, so they get two different class
 * names rather than fighting over one. `.who`/`.av`/`.n`/`.m` stay scoped
 * under `.tst-card` so they never bleed into `.author .av` (blog) or
 * `.art-byline .av`, which already use those letters for something else.
 */
.tst { background: var(--paper); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.tst-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.tst-stars { color: var(--kraft-deep); font-size: .9375rem; letter-spacing: 3px; margin-bottom: var(--sp-3); }
.tst-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--cocoa);
  margin: 0 0 var(--sp-5);
}
.tst-card .who { display: flex; align-items: center; gap: var(--sp-3); }
.tst-card .av {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--cream);
  font: 600 .875rem/1 var(--font-ui);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tst-card .n { display: block; font: 600 .8125rem/1.3 var(--font-body); }
.tst-card .m { display: block; font: 400 .75rem/1.3 var(--font-body); color: var(--muted); }

/* === Shared newsletter consent (M7, `newsletter/consent`) === */
.consent { display: flex; align-items: flex-start; gap: var(--sp-2); cursor: pointer; }
.consent input { margin-top: 3px; }

/* --- Responsive (1024 / 860 / 560, desktop-first — canon §1) --- */
@media (max-width: 1024px) {
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .tst-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tst-card { padding: var(--sp-5); }
}

/* === Checkout pickup obrador info (PickupInfo cell) === */
.pickup-info { display: flex; flex-direction: column; gap: 2px; margin-top: 10px;
  padding: 12px 14px; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: .9rem; line-height: 1.4; }
.pickup-info__label { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pickup-info strong { font-weight: 600; color: var(--ink); }
.pickup-info a { color: var(--accent); text-decoration: none; }
.pickup-info a:hover { text-decoration: underline; }

/* Checkout gift step: the Save button sits clear of the switches above it. */
#checkout-gift form > .btn { margin-top: var(--sp-4); }

#a-gran-escala .work-layout { margin-top: var(--sp-7); }

/* Hostelería: link under the catalogue preview. */
.block-more { text-align: center; margin-top: var(--sp-6); }
