@import url('fonts.css');

/* Rojo Tomate · brandbook: rojo 2347 U, amarillo 7401 U, blanco 11-0601 TCX.
   Flat color blocks, square corners, bold Helvetica headings and Helvetica-like text. */
:root {
  --paper: #f4f5f0;
  --paper-2: #e9e8e2;
  --stone: #dfded9;
  --ink: #1a1a17;
  --ink-2: #4a4843;
  --ink-3: #7a776f;
  --line: #d6d4cb;
  --red: #e74639;
  --red-2: #c1513b;
  --red-ink: #b5352a;
  --yellow: #fee5ad;
  --sand: #eed99b;
  /* rosa tomate: tinte del rojo de marca, puente con el rosa del folleto de Laura */
  --blush: #fae3df;
  --green: #2f6b2e;
  --ok: #2e7d4f;
  --warn: #a8551b;
  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 1px 2px rgba(26, 26, 23, .06), 0 10px 24px -14px rgba(26, 26, 23, .22);
  --shadow-lg: 0 2px 4px rgba(26, 26, 23, .05), 0 24px 48px -20px rgba(26, 26, 23, .3);
  /* titulares: Helvetica negrita en Apple, Arial negrita en Windows, Inter Tight alojada en el resto */
  --display: 'Titular', 'Inter Tight', sans-serif; /* ver fonts.css */
  --label: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --wordmark: url(/img/rojo-tomate.svg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---------- marca ---------- */
/* La palabra se dibuja con la SVG como máscara: toma el color del texto (currentColor). */
.wordmark {
  display: block; height: 1em; aspect-ratio: 3502 / 760; background: currentColor; color: var(--red);
  -webkit-mask: var(--wordmark) center / contain no-repeat; mask: var(--wordmark) center / contain no-repeat;
  font-size: 26px; overflow: hidden; text-indent: 110%; white-space: nowrap;
}
.lockup { display: inline-grid; color: var(--red); }
.lockup .wordmark { width: 100%; height: auto; font-size: inherit; color: inherit; }
.lockup .tagline { display: flex; justify-content: space-between; font: 400 clamp(.7rem, 1.6vw, 1.05rem)/1 var(--sans); margin-top: .7em; }

/* ---------- tipografía ---------- */
/* Titulares en mayúsculas y en negrita: como los rótulos del brandbook y el folleto de Laura. */
/* overflow-wrap: red de seguridad si una palabra larga no cabe en la línea (rompe en vez de desbordar la página). */
.display { font-family: var(--display); font-weight: 700; letter-spacing: .005em; line-height: .9; margin: 0; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
h1.display { font-size: clamp(2.8rem, 7.2vw, 5.8rem); }
h2.display { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.box-card h3, .season-card h3, .panel h2, .card h2, .co-step h2, .summary h2, .sheet-inner h3, .poster-head h1,
.confirm-hero .big, .box-picker button, .mobile-bar .t { text-transform: uppercase; }
h3.display { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.eyebrow {
  font: 700 .74rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink);
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.serif-quote { font: italic 400 clamp(1.4rem, 2.6vw, 2rem)/1.3 var(--serif); }
.mono { font-family: var(--label); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
/* Texto negro sobre rojo: contraste AA (el blanco sobre #e74639 no llega a 4,5:1). */
.btn.red { --bg: var(--red); --fg: var(--ink); }
.btn.red:hover { --bg: var(--red-2); }
.btn.dark { --bg: var(--ink); --fg: var(--paper); }
.btn.dark:hover { box-shadow: 4px 4px 0 var(--red); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { --bg: #fff; --fg: var(--ink); border-color: var(--line); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cabecera ---------- */
.topbar {
  background: var(--ink); color: var(--paper); font: 600 .78rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 10px 16px;
}
@media (max-width: 640px) { .topbar .opt { display: none; } }
.topbar strong { color: var(--yellow); font-weight: 700; }
.header {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { text-decoration: none; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; flex: none; }
.logo img { grid-row: span 2; width: 46px; height: auto; }
.logo .wordmark { align-self: end; }
.logo span:not(.wordmark) { font: 600 .62rem/1 var(--label); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); margin-top: 5px; align-self: start; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; padding: 8px 12px; font-size: .95rem; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.nav a.active { border-bottom-color: var(--red); }
.header .account { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); font: 700 1rem/1 var(--display); border: 1.5px solid var(--ink);
}
.menu-toggle { display: none; flex: none; background: none; border: 0; width: 44px; height: 44px; margin-left: auto; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; margin: auto; transition: .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: var(--paper); padding: 12px 16px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: .2s;
  }
  .nav a { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  body.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .header .cta-head { display: none; }
}

/* ---------- idioma ---------- */
/* Segmentos separados por un hueco fijo dentro del marco: sin bordes de 1,5px entre botones ni overflow:hidden,
   el fondo del activo no tiene que casar al píxel con el marco (evitaba la rendija clara al redondear subpíxeles). */
.lang-switch {
  display: inline-flex; gap: 2px; padding: 2px; flex: none;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); background: #fff;
}
.lang-switch button {
  border: 0; border-radius: 1px; background: transparent; color: var(--ink-3); min-width: 32px; padding: 7px 8px;
  font: 700 .72rem/1 var(--label); letter-spacing: .06em; cursor: pointer; transition: background-color .15s, color .15s;
}
@media (hover: hover) { .lang-switch button:hover { color: var(--ink); background: var(--paper-2); } }
.lang-switch button[aria-pressed='true'], .lang-switch button[aria-pressed='true']:hover { background: var(--ink); color: var(--paper); cursor: default; }
.lang-switch button:focus-visible { outline-offset: 1px; }
@media (max-width: 960px) { .lang-switch { margin-left: auto; } .menu-toggle { margin-left: 4px; } }
/* Móvil estrecho: el logo puede encogerse hasta su min-content (el subtítulo pasa a dos líneas, p. ej.
   "FRUTERÍA ·/VERDULERÍA") y el selector de idioma se compacta, para que logo + idiomas + hamburguesa quepan
   en 288px (320px de viewport) en es/en/de sin desbordar el .wrap. */
@media (max-width: 440px) {
  .header .wrap { gap: 8px; }
  .logo { flex: 0 1 auto; column-gap: 8px; }
  .logo img { width: 36px; }
  .logo .wordmark { font-size: 20px; white-space: nowrap; }
  .logo span:not(.wordmark) { letter-spacing: .16em; line-height: 1.2; }
  .lang-switch button { min-width: 26px; padding: 7px 4px; }
  .menu-toggle { margin-left: 0; }
}
@media (max-width: 360px) {
  .header .wrap { gap: 6px; }
  .logo { column-gap: 6px; }
  .logo img { width: 32px; }
}

/* ---------- héroe ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1.display { letter-spacing: -.015em; line-height: .95; font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.deadline-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 12px 16px 12px 14px;
  background: var(--yellow); font: 400 .92rem/1.35 var(--sans);
}
.deadline-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 125, 79, .18); flex: none; animation: pulse 2s infinite; }
.deadline-chip.closed .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(168, 85, 27, .18); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(46, 125, 79, 0); } }
/* Cómo va la semana (portada): tres pasos y, si hoy hay reparto, cuántas cajas van entregadas. */
.wf-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.wf-steps li { display: grid; gap: 2px; padding-top: 8px; border-top: 3px solid rgba(26, 26, 23, .18); font-size: .84rem; line-height: 1.3; color: var(--ink-2); }
.wf-steps li.now { border-top-color: var(--red); }
.wf-steps b { color: var(--ink); font-size: .9rem; }
.wf-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; font-size: .92rem; }
.wf-live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; animation: pulse 2s infinite; }
.wf-live a { font-weight: 700; }
@media (max-width: 520px) { .wf-steps { grid-template-columns: 1fr; gap: 6px; } }

.hero-photo { position: relative; justify-self: center; width: min(100%, 460px); margin: 24px 0 36px; }
.hero-photo .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* bloque rojo superpuesto (maquetación del brandbook) */
.hero-photo .sticker {
  position: absolute; right: -18px; bottom: -36px; width: 46%; min-width: 150px; aspect-ratio: 1; background: var(--red); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  font: 700 clamp(1.5rem, 2.6vw, 2rem)/.95 var(--display);
}
.hero-photo .sticker small { display: block; font: 700 .64rem/1.2 var(--label); letter-spacing: .14em; margin-top: 8px; }
.hero-photo .tag { margin: 10px 0 0; max-width: 52%; font: italic 400 1.05rem/1.3 var(--serif); color: var(--ink-2); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { width: min(100% - 24px, 380px); margin-top: 28px; }
  .hero-photo .sticker { right: -12px; min-width: 132px; }
}

/* ---------- valores ---------- */
.values { background: var(--red); color: var(--paper); overflow: hidden; }
.values .track { display: flex; gap: 40px; padding: 16px 0; width: max-content; animation: marquee 38s linear infinite; }
.values span { font: 700 1.9rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.values span::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .values .track { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------- secciones ---------- */
section.block { padding: clamp(56px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .lead { margin: 12px 0 0; }

/* Bloque rojo con texto negro y cursiva serif (como las tarjetas del moodboard). */
.manifesto { background: var(--red); color: var(--ink); position: relative; }
.manifesto .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.manifesto .eyebrow { color: var(--ink); }
.manifesto h2 { color: var(--ink); font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.manifesto p { color: var(--ink); font-size: 1.08rem; }
.manifesto .serif-quote { color: var(--ink); margin: 0 0 28px; }
.manifesto .serif-quote mark { background: none; color: var(--paper); }
.manifesto .sign { font: italic 400 1.4rem/1 var(--serif); color: var(--ink); margin-top: 24px; }
.manifesto .man-strong b { color: var(--ink); background: var(--yellow); padding: 0 .2em; }
@media (max-width: 880px) { .manifesto .wrap { grid-template-columns: 1fr; } }

/* ---------- tarjetas de caja (estilo cartel) ---------- */
.boxes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
/* Todas las cajas con el mismo fondo: el color lo ponen el precio y el borde, no seis tonos distintos. */
.box-card {
  position: relative; display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 2px solid var(--ink);
  padding: 20px 22px 20px; text-decoration: none; container-type: inline-size;
  transition: transform .2s ease, box-shadow .2s ease; min-height: 380px; overflow: hidden;
}
.box-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--red); }
.box-card .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
/* el nombre más largo (EXTRAGRANDE) y el precio comparten línea: el tamaño sigue al ancho de la tarjeta */
.box-card h3 { font: 700 clamp(1.3rem, 8.6cqi, 2.1rem)/.92 var(--display); margin: 0; }
.box-card .price { font: 700 clamp(1.3rem, 8.6cqi, 2.1rem)/.92 var(--display); color: var(--red); white-space: nowrap; }
.box-card .meta { font: 700 .72rem/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 14px; }
.box-card .desc { font-size: .97rem; color: var(--ink); margin: 0 0 14px; }
.box-card ul { list-style: none; margin: 0 0 18px; padding: 0; font: 500 .8rem/1.65 var(--label); letter-spacing: .03em; text-transform: uppercase; columns: 2; column-gap: 14px; }
.box-card ul li { break-inside: avoid; }
.box-card .more { font: 700 .78rem/1 var(--label); }
.box-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.box-card:hover .foot .go { color: var(--red-ink); }
.box-card .foot .go { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.box-card .foot .go::after { content: '→'; transition: transform .2s; }
.box-card:hover .foot .go::after { transform: translateX(4px); }
.box-card .ribbon { margin-left: 8px; vertical-align: 1px; }
.box-card .badge { background: var(--red); color: var(--ink); }

/* ---------- cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.step { padding: 22px 22px 26px 0; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero); font: 700 3.4rem/1 var(--display); color: var(--red);
  display: block; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* ---------- temporada ---------- */
.season { background: var(--blush); }
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.season-card { background: #fff; padding: 26px; border-top: 4px solid var(--ink); }
.season-card h3 { margin: 0 0 14px; font: 700 1.6rem/1 var(--display); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--line); font-size: .9rem;
}
.chip .origin { font: 700 .64rem/1 var(--label); letter-spacing: .08em; color: var(--green); text-transform: uppercase; }
.chip.island { background: var(--paper); border-color: var(--green); }
.week-note { font: italic 400 1.35rem/1.4 var(--serif); margin: 0 0 24px; max-width: 40em; }
@media (max-width: 780px) { .season-grid { grid-template-columns: 1fr; } }

/* ---------- sobre Laura ---------- */
.about { background: var(--blush); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
/* Retrato en blanco y negro con bloque rojo detrás, como en la maquetación del brandbook. */
.about-photo { position: relative; isolation: isolate; }
.about-photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.about-photo::before { content: ''; position: absolute; inset: 26px -26px -26px 26px; z-index: -1; background: var(--red); }
.about p { color: var(--ink-2); }
.about .serif-quote { color: var(--ink); margin: 18px 0; }
.about .sign { font: italic 400 1.5rem/1.1 var(--serif); color: var(--red-ink); }
@media (max-width: 880px) { .about .wrap { grid-template-columns: 1fr; } .about-photo { max-width: 360px; margin: 0 26px 26px 0; } }

/* ---------- zonas ---------- */
/* Zonas agrupadas por día de reparto, como en el folleto. */
.zone-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 36px; align-items: start; }
.zone-day h3 { font: 700 1.9rem/1 var(--display); text-transform: uppercase; margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.zone-day ul { list-style: none; margin: 0; padding: 0; }
.zone-day li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.zone-day li small { color: var(--ink-2); }
.zone-day.shop { background: var(--yellow); padding: 18px 20px; }
.zone-day.shop h3 { font-size: 1.5rem; border-bottom-color: var(--ink); }
.zone-day.shop p { margin: 12px 0 0; font-weight: 500; }
.zone-day.shop h4 { margin: 18px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font: 700 .72rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.zone-day .hours { margin: 0; }
.zone-day .hours div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.12); font-weight: 500; }
.zone-day .hours div:last-child { border-bottom: 0; padding-bottom: 0; }
.zone-day .hours dt { margin: 0; }
.zone-day .hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zone-day .hours .off dd { font-weight: 500; color: var(--ink-2); }

/* ---------- FAQ (maquetación del folleto de Laura: dos columnas, preguntas en mayúsculas, filetes negros) ---------- */
.faq-block { background: var(--blush); }
.faq { columns: 2; column-gap: 56px; column-rule: 1.5px solid var(--ink); margin-top: 26px; border-top: 3px solid var(--ink); }
.qa { break-inside: avoid; padding: 18px 0 20px; border-bottom: 1.5px solid var(--ink); }
.qa h3 { font: 700 1.45rem/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.qa p { margin: 0; font-size: .98rem; line-height: 1.5; }
@media (max-width: 820px) { .faq { columns: 1; } }

/* ---------- logotipo grande antes del pie: tomate + palabra, como en la cabecera ---------- */
.brand-stage { background: var(--paper); padding: clamp(56px, 9vw, 112px) 0; }
.logo-big { display: grid; grid-template-columns: minmax(84px, 24%) 1fr; align-items: center; gap: clamp(14px, 3.5vw, 48px); text-decoration: none; }
.logo-big img { width: 100%; height: auto; transform: rotate(-6deg); }
.logo-big .lockup { display: grid; width: 100%; }
.logo-big .tagline { color: var(--ink); font-size: clamp(.8rem, 2.2vw, 1.6rem); }
/* Los dos lemas ocupan la misma celda y se funden cada 4 s: "Cercano y honesto" ⇄ "Frutería y verdulería". */
.tagline-swap { display: grid; }
.tagline-swap > .tagline { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr auto 1fr; animation: tagline-swap 8s ease-in-out infinite; }
.tagline-swap > .tagline > :last-child { text-align: right; }
.tagline-swap > .tagline + .tagline { animation-delay: -4s; }
@keyframes tagline-swap { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tagline-swap > .tagline { animation: none; }
  .tagline-swap > .tagline + .tagline { visibility: hidden; }
}

/* ---------- pie ---------- */
.footer { background: var(--red); color: var(--ink); padding: clamp(48px, 7vw, 80px) 0 28px; margin-top: 0; }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 32px 40px; }
/* Franja de contacto como el pie del folleto: tres bloques separados por filetes. */
.contact-band { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 2px solid var(--ink); }
.footer .contact { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; text-decoration: none; }
.contact + .contact { border-left: 2px solid var(--ink); }
.contact .k { font: 700 .74rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.contact .kh { display: flex; align-items: center; gap: 10px; }
.contact .ci { width: 26px; height: 26px; flex: none; }
.contact b { font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.contact small { font-size: .84rem; }
.footer a.contact:hover { text-decoration: none; }
.footer a.contact:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.foot-about p { max-width: 32em; margin: 0 0 12px; }
@media (max-width: 780px) {
  .contact-band { grid-template-columns: 1fr; }
  .footer .contact { padding: 16px 0; }
  .contact + .contact { border-left: 0; border-top: 1.5px solid var(--ink); }
}
.footer p { color: var(--ink); }
.footer h4 { font: 700 .74rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.footer a { text-decoration: none; display: block; padding: 4px 0; color: var(--ink); }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer .legal { grid-column: 1 / -1; border-top: 1.5px solid var(--ink); padding-top: 20px; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer .legal a { display: inline; }
.footer .legal a + a { margin-left: 14px; }
@media (max-width: 780px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- configurador ---------- */
.page { padding: 32px 0 120px; }
.crumbs { font: 600 .8rem/1 var(--label); letter-spacing: .06em; margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.config { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .config { grid-template-columns: 1fr; } }

.box-picker { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 18px; scrollbar-width: thin; }
.box-picker button {
  flex: none; border: 2px solid var(--ink); background: #fff; padding: 8px 14px; cursor: pointer;
  font: 700 1.15rem/1 var(--display); display: inline-flex; gap: 8px; align-items: center;
}
.box-picker button small { font: 600 .74rem/1 var(--label); }
.box-picker button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

.poster {
  --c: var(--blush); background: var(--c); color: var(--ink); padding: clamp(20px, 4vw, 36px);
  position: relative; overflow: hidden;
}
.poster-head { text-align: center; margin-bottom: 22px; }
.poster-head h1 { font: 700 clamp(2.8rem, 7vw, 4.6rem)/.9 var(--display); margin: 0; }
.poster-head .dates { font: 700 .82rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.poster-head p { margin: 12px auto 0; max-width: 34em; color: var(--ink); }
.swap-meter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--paper);
  padding: 10px 14px; margin-bottom: 18px; font-size: .92rem;
}
.swap-meter .pips { display: inline-flex; gap: 5px; }
.swap-meter .pip { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; }
.swap-meter .pip.used { background: var(--ink); }

.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 640px) { .items { grid-template-columns: 1fr; } }
.item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(26, 26, 23, .3); font: 400 .95rem/1.25 var(--label); letter-spacing: .02em; text-transform: uppercase;
}
.item .name { font-weight: 700; }
.item .qty { color: var(--ink); opacity: .75; }
.item .origin {
  font: 700 .62rem/1 var(--label); letter-spacing: .08em; padding: 3px 6px; background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(26, 26, 23, .25); margin-left: 6px; vertical-align: 2px; white-space: nowrap;
}
.item .origin.island { background: var(--green); color: #fff; border-color: var(--green); }
.item .actions { display: flex; gap: 4px; }
.item .icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: .95rem; text-transform: none; transition: .15s;
}
.item .icon-btn:hover { background: var(--ink); color: #fff; }
.item .icon-btn[disabled] { opacity: .3; cursor: not-allowed; background: #fff; color: var(--ink); }
.item .was { grid-column: 1 / -1; font: 400 .76rem/1.3 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); opacity: .8; }
.item .was s { opacity: .7; }
.item.swapped .name, .item.excluded .name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.item.swapped { background: linear-gradient(90deg, rgba(255, 255, 255, .6), transparent); }
.item.removed { opacity: .5; }
.item.removed .name { text-decoration: line-through; }
.poster-foot { margin-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 700 .74rem/1.3 var(--label); letter-spacing: .08em; }
.notes { margin-top: 14px; font-size: .9rem; color: var(--warn); }

.panel { background: #fff; border: 1px solid var(--line); padding: 24px; margin-top: 22px; }
.panel h2 { font: 700 1.7rem/1 var(--display); margin: 0 0 6px; }
.panel > p { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; }

.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.extra { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); transition: .15s; }
.extra.on { border-color: var(--ink); background: var(--yellow); }
.extra .info { flex: 1; min-width: 0; }
.extra .info b { display: block; font-size: .95rem; line-height: 1.2; }
.extra .info span { font: 400 .8rem/1 var(--label); color: var(--ink-2); }
.extra-photo { flex: none; width: 48px; height: 48px; object-fit: cover; display: block; background: var(--paper-2); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); overflow: hidden; background: #fff; }
.stepper button { width: 32px; height: 32px; border: 0; background: #fff; cursor: pointer; font-size: 1.1rem; }
.stepper button:hover { background: var(--paper-2); }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; }

.freq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .freq { grid-template-columns: 1fr; } }
.option {
  position: relative; display: block; border: 1.5px solid var(--line); padding: 14px 16px; cursor: pointer;
  background: #fff; transition: .15s;
}
.option:hover { border-color: var(--ink-3); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--ink); background: var(--yellow); box-shadow: inset 0 0 0 1px var(--ink); }
.option:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.option b { display: block; }
.option span { font-size: .86rem; color: var(--ink-2); }
.option .badge { position: absolute; top: -10px; right: 12px; }
.badge { display: inline-block; background: var(--red); color: var(--ink); font: 700 .64rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; }
.badge.ok { background: var(--ok); color: #fff; }
.badge.warn { background: var(--warn); color: #fff; }
.badge.soft { background: var(--paper-2); color: var(--ink-2); }

.summary { position: sticky; top: 96px; background: #fff; border: 2px solid var(--ink); padding: 24px; box-shadow: 8px 8px 0 var(--red); }
.summary h2 { font: 700 1.7rem/1 var(--display); margin: 0 0 16px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .95rem; }
.summary .line.total { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 1.1rem; }
.summary .line.total span:last-child { font: 700 2rem/.9 var(--display); }
.summary .hint { font-size: .84rem; color: var(--ink-2); margin: 14px 0 0; display: flex; gap: 8px; }
.summary .btn { margin-top: 16px; }
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .summary { position: static; box-shadow: none; }
  .mobile-bar {
    display: flex; position: fixed; z-index: 30; inset: auto 0 0 0; background: var(--ink); color: var(--paper);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .15);
  }
  .mobile-bar .t { font: 700 1.7rem/1 var(--display); }
  .mobile-bar small { display: block; font: 600 .68rem/1 var(--label); color: #c9c7bf; letter-spacing: .08em; }
}

/* ---------- hoja de cambios (modal) ---------- */
dialog.sheet {
  border: 0; padding: 0; width: min(560px, 100% - 24px); max-height: min(86vh, 720px);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); border-top: 6px solid var(--red);
}
dialog.sheet::backdrop { background: rgba(26, 26, 23, .5); backdrop-filter: blur(2px); }
.sheet-inner { padding: 26px; overflow: auto; max-height: inherit; }
.sheet-inner h3 { font: 700 1.8rem/1 var(--display); margin: 0 0 6px; padding-right: 40px; }
.sheet-inner > p { color: var(--ink-2); margin: 0 0 18px; font-size: .95rem; }
.sheet .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; font-size: 1.2rem; }
.swap-options { display: grid; gap: 8px; }
.swap-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff;
  border: 1.5px solid var(--line); cursor: pointer; text-align: left; font: 400 .92rem/1.2 var(--label); letter-spacing: .02em; text-transform: uppercase;
}
.swap-opt:hover { border-color: var(--ink); }
.swap-opt b { font-weight: 700; }
.swap-opt.has-photo { padding: 8px 16px 8px 8px; }
.swap-opt .swap-txt { flex: 1; min-width: 0; }
.swap-photo { flex: none; width: 64px; height: 64px; object-fit: cover; display: block; background: var(--paper-2); }
@media (max-width: 640px) {
  dialog.sheet { margin: auto auto 0; width: 100%; max-width: 100%; }
}

/* ---------- formularios ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .help { font-size: .82rem; color: var(--ink-3); margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s; font-size: 1rem;
}
textarea.input { min-height: 90px; resize: vertical; }
/* Desplegables: flecha propia con aire a la derecha (la del navegador queda pegada al borde). */
select.input, td select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%231a1a17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px;
}
td select { padding-right: 34px; background-position: right 11px center; background-size: 11px 7px; }
select.input:hover, td select:hover { border-color: var(--ink-3); }
select.input::-ms-expand { display: none; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(231, 70, 57, .22); }
.input:user-invalid { border-color: #c0392b; }
.alert { padding: 14px 16px; background: #fdecea; color: #8e2a1d; border-left: 4px solid var(--red); margin: 14px 0; font-size: .95rem; }
.alert.info { background: var(--yellow); color: var(--ink); border-left-color: var(--ink); }
.alert.ok { background: #e3efdf; color: #24502a; border-left-color: var(--green); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .checkout { grid-template-columns: 1fr; } }
.co-step { background: #fff; border: 1px solid var(--line); padding: 24px; margin-bottom: 18px; }
.co-step h2 { display: flex; align-items: center; gap: 12px; font: 700 1.7rem/1 var(--display); margin: 0 0 18px; }
.co-step h2 .n { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .pay-opts { grid-template-columns: 1fr; } }
.pay-opts .option { padding: 18px; }
.pay-logo { font: 800 1.35rem/1 var(--sans); letter-spacing: -.02em; display: block; margin-bottom: 6px; }
.pay-logo.bizum { color: #05a6aa; }
.pay-logo.cash { color: var(--green); }
.pay-opts.pay-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .pay-opts.pay-3 { grid-template-columns: 1fr; } }

/* ---------- confirmación ---------- */
.confirm-hero { text-align: center; padding: 20px 0 30px; }
.confirm-hero .big { font: 700 clamp(3rem, 9vw, 5.4rem)/.9 var(--display); margin: 0; }
.confirm-hero .code { display: inline-block; margin-top: 14px; font: 700 1.1rem/1 var(--label); letter-spacing: .06em; background: var(--yellow); padding: 9px 14px; }
.pay-box { border: 2px solid var(--ink); padding: 24px; background: #fff; }
/* seguimiento del reparto */
.delivery-track { max-width: 980px; margin: 0 auto 22px; padding: 22px 24px; background: var(--yellow); border: 2px solid var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; text-align: left; }
.delivery-track h2 { font: 700 clamp(1.8rem, 5vw, 2.4rem)/1 var(--display); text-transform: uppercase; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.delivery-track h2 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 125, 79, .18); flex: none; animation: pulse 2s infinite; }
.delivery-track p { margin: 0; }
.delivery-track .eta { text-align: right; }
.delivery-track .eta .k { font: 700 .7rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.delivery-track .eta .v { font: 700 clamp(2rem, 7vw, 3rem)/1 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: 6px; }
.delivery-track .foot { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-2); }
.delivery-track.done { background: #e3efdf; }
.delivery-track .btn { justify-self: end; }
@media (max-width: 600px) { .delivery-track { grid-template-columns: 1fr; } .delivery-track .eta { text-align: left; } .delivery-track .btn { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .delivery-track h2 .dot { animation: none; } }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper); margin: 8px 0; }
.copy-row .k { font-size: .82rem; color: var(--ink-2); }
.copy-row .v { font: 700 1.25rem/1.2 var(--label); font-variant-numeric: tabular-nums; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 0 auto; }
@media (max-width: 820px) { .confirm-grid { grid-template-columns: 1fr; } }

/* ---------- cuenta ---------- */
.auth-card { max-width: 460px; margin: 20px auto; background: #fff; border: 2px solid var(--ink); padding: 28px; box-shadow: 8px 8px 0 var(--red); }
.tabs { display: flex; gap: 0; border: 1.5px solid var(--ink); margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--paper); }
.account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 880px) { .account-grid { grid-template-columns: 1fr; } }
.side-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.side-nav a { text-decoration: none; padding: 12px 14px; font-weight: 500; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--paper-2); }
.side-nav a.active { background: var(--ink); color: var(--paper); border-left-color: var(--red); }
@media (max-width: 880px) { .side-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .side-nav a { white-space: nowrap; } }
.card { background: #fff; border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; }
.card h2 { font: 700 1.7rem/1 var(--display); margin: 0 0 12px; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.this-week { --c: var(--blush); background: var(--c); border: 0; color: var(--ink); }
.excl-group { margin-bottom: 20px; }
.excl-group h3 { font: 700 .76rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.toggle-chip {
  border: 1.5px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-size: .92rem; transition: .15s;
}
.toggle-chip:hover { border-color: var(--ink-3); }
.toggle-chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.orders-list { display: grid; gap: 8px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }

/* ---------- utilidades ---------- */
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.center { text-align: center; }
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-left: 4px solid var(--red); box-shadow: var(--shadow-lg); transition: .25s; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.skeleton { background: linear-gradient(90deg, var(--paper-2), #fff, var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 35; width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 980px) { body.has-bar .wa-float { display: none; } }
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- registro y cuenta ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(28px, 6vw, 80px); align-items: center; max-width: 1040px; margin: 10px auto; }
.auth-wrap .auth-card { margin: 0; width: 100%; }
.auth-why h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); margin-bottom: 22px; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.why li { display: grid; gap: 2px; padding-left: 34px; position: relative; }
.why li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: var(--ink); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.why span { color: var(--ink-2); }
@media (max-width: 820px) { .auth-wrap { grid-template-columns: 1fr; } .auth-why { order: 2; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.danger-zone { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.danger-zone summary { cursor: pointer; color: #b0281a; font-weight: 700; }
.box-card.sold-out { filter: saturate(.55); }
.box-card.sold-out:hover { transform: none; box-shadow: none; }
.extra .left { display: block; font: 700 .72rem/1.2 var(--label); color: var(--warn); margin-top: 3px; }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }

/* Pedido personal y formas de pago sólo para clientas habituales */
.option.off { opacity: .45; cursor: not-allowed; }
.option.off:hover { border-color: var(--line); }
.personal-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px;
  background: var(--yellow); color: var(--ink); text-decoration: none; font: 700 1.05rem/1.3 var(--label); border: 1.5px solid var(--ink); }
.personal-cta:hover { background: var(--sand); }
.link-btn { font-size: .85em; }

/* Tira de fotos de la tienda y del género */
.gallery { padding: 28px 0 56px; overflow: hidden; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 13.5%); gap: 12px; overflow-x: auto;
  padding: 0 max(16px, calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2));
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { margin-top: 8px; font: 700 .72rem/1.3 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 700px) { .gallery-track { grid-auto-columns: 42%; gap: 10px; } }

/* Clic de prueba: accesos de ejemplo */
.demo-logins { display: grid; gap: 8px; margin: 0 0 18px; padding: 14px; background: var(--yellow); border: 1.5px dashed var(--ink); font-size: .9rem; }
.demo-logins .btn { justify-content: flex-start; text-align: left; white-space: normal; }

/* Nota «todo fresco» bajo las cajas y enlaces en «Quién soy» */
.fresh-note { margin: 14px 0 0; max-width: 62ch; padding: 12px 16px; border-left: 4px solid var(--red, #E74639); background: rgba(254, 229, 173, .45); }
.links-inline a { font-weight: 700; }
@media (max-width: 1000px) and (min-width: 781px) { .contact-band { grid-template-columns: repeat(2, 1fr); } .contact:nth-child(3) { border-left: 0; } .contact:nth-child(n+3) { border-top: 2px solid var(--ink); } }

/* Cajas de más en el pedido */
.more-row { padding: 14px 0; border-top: 1.5px solid var(--line); }
.more-row:first-child { border-top: 0; padding-top: 0; }
.more-row > .row { gap: 10px 16px; flex-wrap: wrap; }
.more-row select.input { max-width: 260px; }
#more-add { margin-top: 6px; }
.confirm-grid .sub { font: 700 .74rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 22px 0 10px; }
.confirm-grid ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
.confirm-grid ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.contact.insta b { font-size: clamp(1.25rem, 1.9vw, 1.8rem); white-space: nowrap; }

/* Contenido de Laura: portada «en la tienda» y recetas */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hl-card { background: #fff; border: 2px solid var(--ink); display: flex; flex-direction: column; }
.hl-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hl-card .hl-body { padding: 16px 18px 18px; }
.hl-card h3 { font: 700 1.6rem/1 var(--display); text-transform: uppercase; margin: 6px 0 10px; }
.hl-card p { margin: 0 0 10px; }
.hl-card.oferta { border-color: var(--red); }
.hl-card .badge { display: inline-block; white-space: normal; line-height: 1.4; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.rec-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); text-decoration: none; color: inherit; }
.rec-card img, .rec-card .rec-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rec-card .rec-ph { display: grid; place-items: center; font-size: 3rem; background: var(--yellow); }
.rec-card h2 { font: 700 1.5rem/1 var(--display); text-transform: uppercase; margin: 14px 16px 6px; }
.rec-card p { margin: 0 16px 10px; }
.rec-card .go { margin: auto 16px 16px; font-weight: 700; }
.rec-card:hover { box-shadow: 6px 6px 0 var(--red); }
.recipe-img { width: 100%; height: auto; margin: 10px 0 18px; display: block; }
.recipe-body ul { padding-left: 1.2em; }
.recipe-body li { margin: 4px 0; }

/* Canal de WhatsApp */
.wa-channel { background: #25d366; color: var(--ink); padding: 34px 0; }
.wa-channel .wrap { display: flex; gap: 18px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wa-channel h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 6px; }
.wa-channel p { margin: 0; max-width: 52ch; }
.foot-about a { display: block; margin-top: 6px; }

/* Invitación a crear cuenta (inicio y confirmación de invitados) */
.account-pitch { background: var(--yellow); padding: 48px 0; }
.account-pitch .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px 56px; align-items: center; }
.account-pitch h2 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin: 0 0 10px; }
.account-pitch .ap-head p { margin: 0 0 20px; color: var(--ink-2); max-width: 40ch; }
.account-pitch .row { align-items: center; gap: 18px; }
@media (max-width: 820px) { .account-pitch { padding: 36px 0; } .account-pitch .wrap { grid-template-columns: 1fr; } }
.ok-pitch { display: flex; gap: 14px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 24px auto 0; max-width: 760px; padding: 18px 20px; background: var(--yellow); border-radius: var(--radius); }
.ok-pitch p { margin: 4px 0 0; color: var(--ink-2); max-width: 52ch; }

/* Proyecto familiar: certificado ecológico de la finca y la bodega (sólo vigente) */
.eco-seal { width: 100%; height: auto; display: block; }
.eco-seal .s-bg { fill: var(--green); }
.eco-seal .s-in { fill: none; stroke: var(--paper); stroke-width: 1.5; opacity: .55; }
.eco-seal .s-ring { fill: var(--paper); font: 700 9.4px/1 var(--label); letter-spacing: .06em; }
.eco-seal .s-leaf { fill: var(--paper); }
.eco-seal .s-code { fill: var(--paper); font: 700 6.6px/1 var(--label); letter-spacing: .04em; text-anchor: middle; }
.eco-seal-link { position: absolute; right: -22px; top: -22px; width: 112px; transform: rotate(-8deg); border-radius: 50%; box-shadow: var(--shadow); transition: transform .2s; }
.eco-seal-link:hover { transform: rotate(0) scale(1.04); }
.eco-cert { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px 22px; margin: 26px 0 18px; padding: 22px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.eco-cert h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.eco-cert p { margin: 0 0 12px; }
.eco-cert dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 12px; font-size: .92rem; }
.eco-cert dt { color: var(--ink-3); }
.eco-cert dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.eco-cert .eco-links a { font-weight: 700; color: var(--green); }
@media (max-width: 560px) {
  .eco-cert { grid-template-columns: 1fr; padding: 18px; }
  .eco-cert > .eco-seal { width: 84px; }
  .eco-cert dl { grid-template-columns: 1fr; gap: 0; }
  .eco-cert dd { margin-bottom: 6px; }
  .eco-seal-link { width: 92px; right: -14px; top: -14px; }
}

/* ---------- novedades: franja de aviso, página y tarjetas ---------- */
/* Franja arriba en toda la web para avisos urgentes (festivos, cambios de reparto). Amarilla de la marca, con la etiqueta en rojo. */
.notice-bar { background: var(--yellow); color: var(--ink); border-bottom: 2px solid var(--ink); }
.notice-bar[hidden] { display: none; }
.notice-bar .wrap { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; padding-right: 48px; position: relative; font-size: .95rem; line-height: 1.3; }
.notice-bar .badge { flex: none; }
.notice-bar .nb-main { color: inherit; text-decoration: none; flex: 1 1 260px; min-width: 0; }
.notice-bar .nb-main b { font-weight: 700; }
.notice-bar .nb-more, .notice-bar .nb-others { color: var(--red-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.notice-bar .nb-others { font-size: .85rem; }
.notice-bar .nb-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.notice-bar .nb-close:hover { color: var(--red-ink); }

.news-avisos { display: grid; gap: 14px; margin: 22px 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 22px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); text-decoration: none; color: inherit; }
.news-card:hover { box-shadow: 6px 6px 0 var(--red); }
.news-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.news-card .news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-card h2 { font: 700 1.6rem/1 var(--display); text-transform: uppercase; margin: 8px 0 10px; }
.news-card p { margin: 0 0 10px; }
.news-card .badge { white-space: normal; line-height: 1.4; align-self: flex-start; }
.news-card .go { margin-top: auto; font-weight: 700; }
.news-card.oferta { border-color: var(--red); }
/* Los avisos van arriba, anchos y en amarillo: se tienen que ver antes que nada. */
.news-card.aviso { background: var(--yellow); flex-direction: row; box-shadow: 6px 6px 0 var(--ink); }
.news-card.aviso img { width: 180px; aspect-ratio: 1; flex: none; }
.news-card.aviso h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.news-card.aviso:hover { box-shadow: 6px 6px 0 var(--red); }
@media (max-width: 560px) { .news-card.aviso { flex-direction: column; } .news-card.aviso img { width: 100%; aspect-ratio: 4 / 3; } }
.news-item.aviso .recipe-body { background: var(--yellow); padding: 4px 20px; border-left: 4px solid var(--ink); margin-top: 20px; }

/* ---------- «muy pronto» (COMING_SOON=1) ---------- */
.deadline-chip.soon .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(231, 70, 57, .2); }
.box-card.soon:hover { transform: none; box-shadow: none; }
.box-card.soon .foot .go { color: var(--red-ink); }
.soon-page .soon-block { margin-top: 0; }
.soon-page h1.display { font-size: clamp(2.6rem, 9vw, 4.6rem); }

/* ---------- textos legales ---------- */
.legal-text h2 { font: 700 clamp(1.25rem, 3.4vw, 1.6rem)/1.15 var(--display); margin: 34px 0 10px; }
.legal-text p, .legal-text li { line-height: 1.6; }
.legal-text ul, .legal-text ol { padding-left: 1.3em; }
.legal-text li + li { margin-top: 6px; }
.legal-data { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 6px 18px; margin: 0 0 16px; }
.legal-data dt { font-weight: 700; }
.legal-data dd { margin: 0; overflow-wrap: anywhere; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0 18px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); min-width: 9em; }
.legal-table th { font: 700 .72rem/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.legal-table code, .legal-text code { font-size: .85em; overflow-wrap: anywhere; }
.legal-form { border: 1.5px dashed var(--ink-3); padding: 14px 18px; border-radius: 10px; }
.legal-summary ul { margin: 6px 0 0; padding-left: 1.2em; }
.legal-summary p { margin: 0 0 6px; }
.legal-index { font-size: 1.15rem; line-height: 2; }
@media (max-width: 560px) { .legal-data { grid-template-columns: 1fr; gap: 2px; } .legal-data dd { margin-bottom: 8px; } }
.soon-block h1.display, .soon-block h2.display { margin-bottom: 14px; }
body.preview .footer a[href="#/registro"] { display: none; }
