/* lentocooking.food — hoja de estilos de la web.
   Paleta de Sevilla: cal de las fachadas, azul cobalto de azulejo, albero de la Maestranza,
   aceituna y granada. Tipografía: Lora (titulares y nombres de platos) + la del sistema para la interfaz. */
@font-face { font-family: 'Lora'; src: url('/fonts/Lora-Variable.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --cal: #fafaf7; --surface: #ffffff; --tile: #eef1f8;
  --ink: #18233d; --muted: #5a6479; --line: #dde1ea;
  --cobalt: #2346a0; --cobalt-ink: #ffffff; --cobalt-soft: #e3e9f8;
  --albero: #e2a93b; --albero-soft: #fbf0d9;
  --oliva: #56662b; --oliva-soft: #eaeedb;
  --granada: #b8322a; --granada-soft: #f8e3e1;
  --serif: 'Lora', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow: 0 1px 0 rgba(24, 35, 61, .06), 0 8px 24px -12px rgba(24, 35, 61, .25);
  --gutter: 16px; --maxw: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cal: #0f1626; --surface: #151e33; --tile: #1b2640;
    --ink: #e9ecf4; --muted: #a2abc0; --line: #2a3551;
    --cobalt: #7e9bea; --cobalt-ink: #0f1626; --cobalt-soft: #1e2b4d;
    --albero: #f0be5a; --albero-soft: #3a2f17;
    --oliva: #a9bd6a; --oliva-soft: #253015;
    --granada: #f07e72; --granada-soft: #3d1c1a;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cal: #0f1626; --surface: #151e33; --tile: #1b2640;
  --ink: #e9ecf4; --muted: #a2abc0; --line: #2a3551;
  --cobalt: #7e9bea; --cobalt-ink: #0f1626; --cobalt-soft: #1e2b4d;
  --albero: #f0be5a; --albero-soft: #3a2f17;
  --oliva: #a9bd6a; --oliva-soft: #253015;
  --granada: #f07e72; --granada-soft: #3d1c1a;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cal); color: var(--ink); font: 16px/1.55 var(--sans); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--cobalt); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--albero); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Cabecera ── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cal) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.brand .mark { width: 30px; height: 30px; border-radius: 7px; overflow: hidden; flex: none; }
.brand small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--tile); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--cobalt-soft); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; text-decoration: none; color: var(--ink); }
.iconbtn:hover { background: var(--tile); }
.iconbtn svg { width: 20px; height: 20px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--albero); color: #2b1d00; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.lang { font-size: .85rem; font-weight: 600; }

.demo-band { background: var(--albero-soft); color: var(--ink); font-size: .85rem; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid var(--line); }

/* ── Barra inferior en móvil ── */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .brand small { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: .7rem; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--cobalt); }
  .tabbar .badge { position: absolute; top: 2px; left: 54%; transform: scale(.85); }
  main { padding-bottom: 84px; }
  .hide-m { display: none !important; }
}

/* ── Botones y formularios ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--cobalt-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--cobalt) 86%, black); }
.btn.albero { background: var(--albero); border-color: var(--albero); color: #2b1d00; }
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:hover { background: var(--tile); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.f { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px var(--cobalt-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.err { color: var(--granada); font-size: .88rem; margin-top: 6px; }

/* Fichas seleccionables (dietas, alérgenos, franjas) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .92rem; user-select: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--cobalt-ink); }
.chip.no[aria-pressed="true"] { background: var(--granada); border-color: var(--granada); color: #fff; }
.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice button { text-align: left; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.choice button strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.choice button span { font-size: .82rem; color: var(--muted); }
.choice button[aria-pressed="true"] { border-color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--cobalt); background: var(--cobalt-soft); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; border-radius: 999px; }
.stepper button:hover { background: var(--tile); }
.stepper output { min-width: 36px; text-align: center; font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--cobalt); }

/* ── Inicio ── */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 28px; } }

/* El zócalo: la semana como un panel de azulejos */
.zocalo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 6px solid var(--cobalt); border-radius: 4px; background: var(--cobalt); box-shadow: var(--shadow); }
.zocalo .z { position: relative; aspect-ratio: 1; overflow: hidden; outline: 1px solid color-mix(in srgb, var(--cobalt) 70%, white); }
.zocalo .z svg, .zocalo .z img { width: 100%; height: 100%; object-fit: cover; }
.zocalo .z .day { position: absolute; left: 8px; top: 8px; background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.zocalo .z .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-family: var(--serif); font-size: .9rem; line-height: 1.2; color: #fff; background: linear-gradient(transparent, rgba(12, 20, 40, .82)); }
@media (max-width: 600px) { .zocalo .z .nm { font-size: .74rem; padding: 14px 6px 6px; } .zocalo .z .day { font-size: .68rem; left: 5px; top: 5px; } }
.zocalo-cap { display: flex; justify-content: space-between; margin-top: 10px; font-size: .88rem; color: var(--muted); }

.section { padding: 48px 0; }
.section.tinted { background: var(--tile); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--cobalt); color: var(--cobalt-ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.steps h3 { margin-bottom: 6px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; } }
.diet-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── Cocinas ── */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.store-card { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.store-card:hover { border-color: var(--ink); }
.store-card .art { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.store-card strong { font-family: var(--serif); font-size: 1.1rem; display: block; line-height: 1.2; }
.store-card span { font-size: .85rem; color: var(--muted); }
.store-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding: 28px 0; }
.store-head .art { width: 160px; height: 160px; border-radius: 12px; overflow: hidden; border: 5px solid var(--cobalt); }
@media (max-width: 600px) { .store-head { grid-template-columns: 90px 1fr; gap: 14px; } .store-head .art { width: 90px; height: 90px; border-width: 3px; } }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }

/* ── Platos ── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.toolbar input[type=search] { flex: 1 1 260px; border-radius: 999px; padding-left: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.dish { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dish .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--tile); }
.dish .media svg, .dish .media img { width: 100%; height: 100%; object-fit: cover; }
.dish .media a { position: absolute; inset: 0; }
.dish .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish h3 { font-size: 1.08rem; margin: 0; }
.dish h3 a { color: var(--ink); text-decoration: none; }
.dish h3 a:hover { text-decoration: underline; }
.dish .from { font-size: .84rem; color: var(--muted); }
.dish .from a { color: inherit; }
.dish .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: var(--tile); color: var(--muted); }
.tag.diet { background: var(--oliva-soft); color: var(--oliva); }
.tag.al { background: var(--granada-soft); color: var(--granada); }
.tag.warn { background: var(--granada); color: #fff; }
.tag.frozen { background: var(--cobalt-soft); color: var(--cobalt); }
.addbtn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--cobalt); color: var(--cobalt-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; flex: none; }
.addbtn.in { background: var(--oliva); color: #fff; font-size: .9rem; width: auto; padding: 0 12px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* Ficha del plato */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; padding: 28px 0 48px; align-items: start; }
.detail .media { border-radius: var(--r-md); overflow: hidden; border: 6px solid var(--cobalt); position: sticky; top: 80px; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; gap: 20px; } .detail .media { position: static; } }
.buy { display: flex; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.buy .price { font-size: 1.6rem; }
table.al { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 6px 0 4px; }
table.al td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
table.al td:last-child { text-align: right; font-weight: 600; }
table.al tr.yes td:last-child { color: var(--granada); }
table.al tr.tr td:last-child { color: var(--albero); }
table.al tr.no td { color: var(--muted); }
table.al tr.no td:last-child { font-weight: 400; }
.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 18px; }
.nutri div { background: var(--tile); border-radius: var(--r-sm); padding: 10px; text-align: center; }
.nutri b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.nutri span { font-size: .78rem; color: var(--muted); }
.callout { border-left: 4px solid var(--albero); background: var(--albero-soft); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .92rem; margin: 14px 0; }
.callout.red { border-color: var(--granada); background: var(--granada-soft); }
.callout.green { border-color: var(--oliva); background: var(--oliva-soft); }

/* ── Mi semana ── */
.week-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding: 28px 0 10px; }
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; border: 6px solid var(--cobalt); background: var(--cobalt); border-radius: 4px; }
.wd { background: var(--surface); display: flex; flex-direction: column; outline: 1px solid color-mix(in srgb, var(--cobalt) 60%, white); }
.wd .media { position: relative; aspect-ratio: 1; overflow: hidden; }
.wd .media svg, .wd .media img { width: 100%; height: 100%; object-fit: cover; }
.wd .day { position: absolute; left: 8px; top: 8px; background: var(--surface); font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.wd .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wd h3 { font-size: 1rem; margin: 0; }
.wd h3 a { color: var(--ink); text-decoration: none; }
.wd .acts { display: flex; gap: 4px; margin-top: auto; padding-top: 6px; }
.why { font-size: .78rem; color: var(--muted); }
.explain { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; max-width: 46em; min-height: 3.2em; }
.meter { height: 8px; background: var(--tile); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.meter i { display: block; height: 100%; background: var(--oliva); border-radius: 999px; }
.meter.over i { background: var(--granada); }
.week-sum { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 18px 0; }
@media (max-width: 640px) { .week-sum { grid-template-columns: 1fr; } }
.filtered { font-size: .88rem; color: var(--muted); }

/* ── Cesta ── */
.cart { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 28px 0 48px; align-items: start; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.group h3 { font-size: 1.05rem; display: flex; justify-content: space-between; gap: 8px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.line .art { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; }
.line .nm { font-weight: 600; line-height: 1.25; }
.line .sub { font-size: .82rem; color: var(--muted); }
.totals { width: 100%; border-collapse: collapse; }
.totals td { padding: 6px 0; }
.totals td:last-child { text-align: right; }
.totals tr.total td { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slots button { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; line-height: 1.3; }
.slots button b { display: block; }
.slots button[aria-pressed="true"] { border-color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--cobalt); background: var(--cobalt-soft); }

/* ── Pedido ── */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 24px 0; list-style: none; padding: 0; }
.timeline li { position: relative; padding-top: 30px; font-size: .88rem; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 4px; background: var(--line); }
.timeline li::after { content: ''; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 4px solid var(--line); }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::before { background: var(--oliva); }
.timeline li.done::after { border-color: var(--oliva); background: var(--oliva); }
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--tile); }
.status.paid, .status.preparing { background: var(--albero-soft); }
.status.on_the_way { background: var(--cobalt-soft); color: var(--cobalt); }
.status.delivered { background: var(--oliva-soft); color: var(--oliva); }
.status.cancelled { background: var(--granada-soft); color: var(--granada); }

/* ── Cuenta y formularios largos ── */
.narrow { max-width: 560px; margin: 0 auto; padding: 32px 0 48px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--cobalt); }
.form-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { font-size: 1.3rem; }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--cal) 94%, transparent); backdrop-filter: blur(8px); padding: 12px 0; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .sticky-actions { bottom: 64px; } }

/* ── Vende ── */
.sell { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 0 48px; }
@media (max-width: 860px) { .sell { grid-template-columns: 1fr; } }
.sell ul.points { padding-left: 1.1em; }
.sell ul.points li { margin-bottom: 8px; }

/* ── Pie ── */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: inherit; }

/* ── Diálogos ── */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(12, 18, 34, .55); display: grid; place-items: center; padding: 16px; }
.modal .box { width: 100%; max-width: 760px; max-height: 88vh; overflow: auto; background: var(--cal); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.modal .box header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
@media (max-width: 600px) { .modal { place-items: end center; padding: 0; } .modal .box { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 300; background: var(--ink); color: var(--cal); padding: 10px 18px; border-radius: 999px; font-size: .92rem; box-shadow: var(--shadow); }
@media (min-width: 761px) { .toast { bottom: 28px; } }

/* ── Lentejita ── */
.ask-fab { position: fixed; right: 18px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 6px; height: 52px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cal); font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.ask-fab .face { width: 40px; height: 40px; border-radius: 50%; background: var(--albero); display: grid; place-items: center; }
@media (max-width: 760px) { .ask-fab { bottom: 80px; right: 12px; height: 46px; padding-right: 14px; } .ask-fab .face { width: 34px; height: 34px; } .ask-fab .lbl { display: none; } .ask-fab { padding: 0 6px; } }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 120; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 100px)); background: var(--cal); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 760px) { .chat { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; } }
.chat header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat header .face { width: 36px; height: 36px; border-radius: 50%; background: var(--albero); display: grid; place-items: center; flex: none; }
.chat header strong { font-family: var(--serif); font-size: 1.1rem; display: block; line-height: 1.1; }
.chat header span { font-size: .8rem; color: var(--muted); }
.chat .msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg ul { margin: .3em 0; padding-left: 1.2em; }
.msg.me { align-self: flex-end; background: var(--cobalt); color: var(--cobalt-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.err { border-color: var(--granada); }
.minis { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.mini { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; text-decoration: none; color: var(--ink); }
.mini .art { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; }
.mini b { font-size: .9rem; display: block; line-height: 1.2; }
.mini span { font-size: .78rem; color: var(--muted); }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat form input { border-radius: 999px; }
.chat .suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.chat .suggest button { font-size: .82rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* Una sola animación de entrada: los azulejos del zócalo se colocan uno a uno */
@media (prefers-reduced-motion: no-preference) {
  .zocalo.lay .z { animation: lay .5s cubic-bezier(.2, .7, .2, 1) both; }
  .zocalo.lay .z:nth-child(2) { animation-delay: .07s; } .zocalo.lay .z:nth-child(3) { animation-delay: .14s; }
  .zocalo.lay .z:nth-child(4) { animation-delay: .21s; } .zocalo.lay .z:nth-child(5) { animation-delay: .28s; } .zocalo.lay .z:nth-child(6) { animation-delay: .35s; }
  @keyframes lay { from { opacity: 0; transform: scale(.94); } }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Ofertas, días especiales y tarjetas regalo ── */
.tag.offer { background: var(--albero); color: #2b1d00; font-weight: 700; }
.price s.was { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 2px; }
.special { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 760px) { .special { grid-template-columns: 1fr; } }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.spec:hover { border-color: var(--ink); }
.spec-art { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; border: 4px solid var(--cobalt); }
.spec strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 4px; }
.spec span span { color: var(--muted); font-size: .95rem; }
.giftcard { position: relative; aspect-ratio: 1.586; max-width: 460px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--cobalt); color: #fff; }
.giftcard .gc-art { position: absolute; inset: 0; }
.giftcard .gc-art svg { width: 100%; height: 100%; }
.giftcard .gc-body { position: absolute; inset: 14% 10%; background: rgba(250, 250, 247, .94); color: var(--ink); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; color-scheme: light; }
.gc-brand { font-family: var(--serif); font-weight: 600; font-size: .9rem; color: #2346a0; }
.gc-amount { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1.1; color: #18233d; }
.gc-to, .gc-from { font-size: .88rem; color: #18233d; }
.gc-msg { font-family: var(--serif); font-style: italic; font-size: .92rem; color: #18233d; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gc-code { margin-top: auto; font: 600 .95rem ui-monospace, Menlo, monospace; letter-spacing: .06em; color: #2346a0; }
@media print { .top, .tabbar, footer, .ask-fab, .demo-band, .noprint, #chatRoot { display: none !important; } body { background: #fff; } .giftcard { box-shadow: none; } }

/* ── A medida: verticales (azulejos con su color), valoraciones y profesionales ── */
.verticals { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 0 16px; }
.vchip { --vc: var(--cobalt); text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-top: 4px solid var(--vc); border-radius: var(--r-sm); background: var(--surface); font-size: .9rem; }
.vchip.small { min-height: 28px; font-size: .82rem; padding: 0 9px; border-top-width: 3px; }
.vchip:hover { border-color: var(--vc); }
.vchip[aria-pressed="true"] { background: var(--vc); border-color: var(--vc); color: #fff; }
.v-embarazo { --vc: #b0457a; } .v-deporte { --vc: var(--cobalt); } .v-menos450 { --vc: var(--oliva); } .v-temporada { --vc: #b7791f; }
.vhint { margin: -6px 0 16px; max-width: 60em; }
.rating { white-space: nowrap; font-size: .9rem; }
.stars { color: var(--albero); letter-spacing: 1px; } .stars span { color: var(--line); }
.rating-big { font-family: var(--sans); font-size: 1rem; font-weight: 400; margin-left: 8px; }
.tag.pro { background: #f3e3ec; color: #8f2f5f; }
:root[data-theme="dark"] .tag.pro { background: #3a1c2c; color: #f0a6c8; }
a.plain { text-decoration: none; color: inherit; }
.reviews { max-width: 820px; margin: 32px 0 0; }
.reviews h2 { font-size: 1.4rem; }
.pros { border: 1px solid var(--line); border-left: 5px solid #b0457a; border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 28px; background: var(--surface); }
.pro { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.pro header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.pro footer { font-size: .92rem; }
.verdict { font-weight: 600; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.verdict.green { background: var(--oliva-soft); color: var(--oliva); } .verdict.albero { background: var(--albero-soft); color: #8a5a00; } .verdict.red { background: var(--granada-soft); color: var(--granada); }
:root[data-theme="dark"] .verdict.albero { color: var(--albero); }
.rev { border-top: 1px solid var(--line); padding: 12px 0; }
.rev p { margin: 6px 0 0; }
.rev .reply { margin: 10px 0 0 18px; padding-left: 12px; border-left: 3px solid var(--cobalt-soft); }
.rev-form { margin: 12px 0 20px; display: grid; gap: 10px; }
.starpick { display: flex; gap: 4px; }
.starpick button { font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--line); cursor: pointer; padding: 2px; }
.starpick button[aria-checked="true"] { color: var(--albero); }
.starpick button:focus-visible { outline: 2px solid var(--cobalt); border-radius: 4px; }
.chat-fb { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.chat-fb button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 10px; cursor: pointer; color: var(--ink); }
.near { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.near input { width: 7.5em; }
.tag.km { background: var(--tile); color: var(--ink); }
.chat-ai { font-size: .75rem; color: var(--muted); margin: 0; padding: 6px 14px; border-bottom: 1px solid var(--line); background: var(--tile); }
