/* LlegooYa · sitio público. Paleta oficial, Manrope servida desde el propio dominio, sin dependencias. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fuentes/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fuentes/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Color: lima para reconocer y actuar; carbón para contraste; blanco y grises para respirar. */
  --lime: #A6FF00; --lime-deep: #3E7A00; --lime-soft: #F1FFDB;
  --ink: #17191C; --ink-2: #202327; --ink-3: #2E3236;
  --muted: #697078; --muted-on-dark: #AEB4BA;
  --soft: #F5F6F3; --line: #E3E6DF; --white: #FFFFFF;
  --danger: #B3261E; --danger-soft: #FDECEA;

  /* Tipografía: escala de 1.25 aprox.; nada de lectura por debajo de 14px. */
  /* Montserrat (geométrica y ancha, como la letra del logo) para titulares y botones; Manrope para leer. */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", "Manrope", system-ui, sans-serif;
  --t-display: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --t-h3: 1.1875rem;
  --t-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-fine: .875rem;

  /* Espacio: múltiplos de 4. */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section: clamp(72px, 9vw, 128px);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Formas: radios sobrios; sombra solo en lo que flota. */
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --control: 52px;
  --shadow-float: 0 16px 40px rgba(23, 25, 28, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: var(--t-body); font-weight: 450; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 700; color: inherit; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--lime-deep); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.i { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Texto ---------- */
.kicker, .eyebrow { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); font-weight: 600; color: var(--lime-deep); margin: 0 0 var(--s-4); }
.kicker::before, .eyebrow::before { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--lime); }
.sub { color: var(--muted); font-size: var(--t-lead); line-height: 1.55; max-width: 34em; }
.block h2 { font-size: var(--t-h2); line-height: 1.12; letter-spacing: -.02em; max-width: 16em; margin-bottom: var(--s-3); }
.note { font-size: var(--t-fine); color: var(--muted); margin-top: var(--s-2); }

/* ---------- Botones y enlaces de acción ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control); padding: 0 24px; border-radius: var(--r); border: 0;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; background: var(--lime); color: var(--ink);
  transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: #B8FF33; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-3); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: .875rem; border-radius: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; font-size: var(--t-small); cursor: pointer; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.brand { flex: none; }
.brand img { height: 28px; width: auto; }
.top nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.navlink { color: var(--ink); text-decoration: none; font-size: var(--t-small); font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap; transition: color .2s; }
.navlink:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top nav .btn { margin-left: var(--s-3); }
.where { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 240px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--ink); font-size: var(--t-small); font-weight: 600; cursor: pointer; }
.where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px dashed var(--muted); }
.where:hover span { border-bottom-color: var(--ink); }
.where .chev { color: var(--muted); }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; place-items: center; }
@media (max-width: 1100px) {
  .top .wrap { gap: var(--s-3); min-height: 64px; }
  .navlink { display: none; }
  #menu:not(.open) .btn { display: none; }
  .menu-btn { display: grid; }
  .where { max-width: 46vw; }
  .top nav#menu.open { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; padding: var(--s-2) var(--gutter) var(--s-5); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); }
  #menu.open .navlink { display: block; font-size: 1.0625rem; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  #menu.open .btn { margin: var(--s-4) 0 0; width: 100%; min-height: var(--control); }
}
@media (max-width: 420px) { .brand img { height: 24px; } .where .chev { display: none; } }

/* ---------- Hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 7vw, 104px); }
.hero h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 0 0 var(--s-5); }
.mark { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 90%, transparent 90%); padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-size: var(--t-lead); color: var(--muted); max-width: 27em; margin-bottom: var(--s-7); }
.locator { max-width: 560px; }
.locator-label { font-weight: 600; margin-bottom: var(--s-3); }
.picker { display: grid; gap: var(--s-3); position: relative; }
.bar { display: flex; align-items: center; gap: var(--s-2); min-height: 64px; padding: 6px 6px 6px 18px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; position: relative; transition: box-shadow .2s var(--ease); }
.bar:focus-within { box-shadow: 0 0 0 4px var(--lime-soft), 0 0 0 5px var(--lime-deep); }
.bar > .i { color: var(--muted); }
.bar input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; font-size: 1.0625rem; outline: none; }
.bar input::placeholder { color: #8C9299; }
.bar input::-webkit-search-cancel-button { display: none; }
.bar .btn { min-height: 50px; border-radius: 10px; }
.locate { display: inline-flex; align-items: center; gap: 8px; justify-self: start; border: 0; background: none; padding: 6px 0; color: var(--ink); font-size: var(--t-small); font-weight: 600; cursor: pointer; }
.locate span { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.locate:hover span { text-decoration-color: var(--ink); }
.locate[disabled] { opacity: .6; cursor: progress; }
.place { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding: 8px 18px; border-radius: 14px; background: var(--soft); }
.place p { flex: 1; min-width: 0; }
.place small { display: block; color: var(--muted); font-size: var(--t-fine); font-weight: 500; line-height: 1.3; }
.place b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-5); color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-cta.btn { text-decoration: none; margin-top: var(--s-4); }
.fine { margin-top: var(--s-5); max-width: 520px; color: var(--muted); font-size: var(--t-fine); line-height: 1.5; }

/* Dirección: resultados y confirmación, sin tarjetas dentro de tarjetas. */
.addr-note { font-size: var(--t-small); color: var(--muted); }
.addr-note.err { color: var(--danger); }
.addr-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; border-top: 1px solid var(--line); max-height: 300px; overflow: auto; }
.addr-list li { border-bottom: 1px solid var(--line); }
.addr-option { width: 100%; text-align: left; border: 0; background: none; padding: 12px 4px; cursor: pointer; transition: background-color .15s; }
.addr-option:hover, .addr-option:focus-visible { background: var(--soft); }
.addr-option b { display: block; font-weight: 600; }
.addr-option small, .addr-confirm span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: var(--t-fine); line-height: 1.45; }
.addr-confirm { display: grid; gap: var(--s-3); padding: var(--s-4) 0 0; border-top: 1px solid var(--line); }
.addr-confirm small { display: block; color: var(--muted); font-size: var(--t-fine); }
.addr-confirm b { display: block; font-size: 1.125rem; font-weight: 700; }
.addr-confirm .actions { justify-content: flex-start; margin: 0; }

/* Ilustración y fotografía */
.media { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.media svg, .media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { aspect-ratio: 5 / 6; --art-bg: var(--ink); --art-street: var(--ink-3); --art-block: #262A2E; --art-route: var(--lime); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; max-height: 420px; }
  .locator { max-width: none; }
}
@media (max-width: 480px) {
  .bar { padding-left: 14px; }
  .bar .btn { padding: 0 16px; }
  .hero .lead { margin-bottom: var(--s-6); }
}

/* ---------- Secciones ---------- */
section.block { padding: var(--section) 0; scroll-margin-top: 64px; }
section.block.soft { background: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-5); }

/* Comercios: cabecera con buscador */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: var(--s-6); align-items: end; margin-bottom: var(--s-4); }
.section-head .sub { margin: 0; }
.search-box { min-height: 58px; border-width: 1px; border-color: var(--line); background: var(--soft); }
.search-box:focus-within { background: #fff; border-color: var(--ink); }
.search-box input { height: 44px; }
.search-box .btn { min-height: 44px; }
.popular { color: var(--muted); font-size: var(--t-small); margin-bottom: var(--s-6); }
.popular button { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.popular button:hover { text-decoration-color: var(--lime); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Sugerencias de búsqueda */
.suggest { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-float); max-height: 360px; overflow: auto; }
.suggest li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li[role="option"]:hover { background: var(--soft); }
.suggest li b { display: block; font-weight: 600; }
.suggest li small { display: block; color: var(--muted); font-size: var(--t-fine); }
.suggest li em { font-style: normal; font-size: var(--t-fine); color: var(--muted); flex: none; }
.suggest .sg-all { font-weight: 600; color: var(--lime-deep); }
.suggest .sg-note { color: var(--muted); font-size: var(--t-small); cursor: default; }
.suggest .sg-note.err { color: var(--danger); }

/* Categorías: una fila ligera, sin tarjetas */
.cats { display: flex; gap: var(--s-1); margin: 0 0 var(--s-6); padding-bottom: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 14px 16px 16px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: var(--t-small); cursor: pointer; position: relative; transition: color .2s; }
.cat::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -3px; height: 3px; border-radius: 2px; background: transparent; transition: background-color .2s; }
.cat:hover { color: var(--ink); }
.cat[aria-pressed="true"] { color: var(--ink); }
.cat[aria-pressed="true"]::after { background: var(--lime); }
.cat .i { width: 22px; height: 22px; }

/* Resultados */
.status-box { max-width: 560px; margin: 0 auto; padding: var(--s-7) 0; text-align: center; color: var(--muted); }
.status-box strong { display: block; color: var(--ink); font-size: 1.25rem; font-weight: 700; margin-bottom: var(--s-2); }
.status-box.err strong { color: var(--danger); }
.filterbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); margin: 0 0 var(--s-5); color: var(--muted); font-size: var(--t-small); }
.filterbar b { color: var(--ink); font-weight: 600; }
.results-h { font-size: var(--t-h3); margin: var(--s-7) 0 var(--s-4); }
.results-h:first-of-type { margin-top: 0; }
.merchants { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-7) var(--s-5); }
.mcard { display: grid; gap: 4px; align-content: start; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.mcard .photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--muted); margin-bottom: var(--s-3); }
.mcard .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mcard:hover .photo img { transform: scale(1.03); }
.mcard .photo .i { width: 44px; height: 44px; stroke-width: 1.25; }
.mcard .closed { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23, 25, 28, .55); color: #fff; font-weight: 700; font-size: var(--t-small); }
.mcard h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.mcard:hover h3 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mcard .line { color: var(--muted); font-size: var(--t-small); }
.mcard .promo { color: var(--lime-deep); font-size: var(--t-small); font-weight: 600; }
.mcard .price { font-weight: 700; }
.mcard .price s { color: var(--muted); font-weight: 450; margin-left: 6px; }
.skeleton { aspect-ratio: 4 / 3; border-radius: var(--r); background: linear-gradient(90deg, var(--soft), #ECEEE9, var(--soft)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 560px) { .merchants { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Editorial: titular a la izquierda, contenido a la derecha */
.editorial { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7) clamp(32px, 6vw, 96px); align-items: start; }
.editorial > div:first-child, .editorial > h2 { position: sticky; top: 112px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-6); }
.points > div { padding-top: var(--s-5); border-top: 2px solid var(--ink); }
.points h3 { font-size: var(--t-h3); line-height: 1.3; margin-bottom: var(--s-2); }
.points p { color: var(--muted); }
@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; gap: var(--s-6); }
  .editorial > div:first-child, .editorial > h2 { position: static; }
}
@media (max-width: 560px) { .points { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Lista de puntos con marca */
.checks { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-6); display: grid; gap: var(--s-3); }
.checks li { display: flex; gap: var(--s-3); align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 2px solid var(--lime-deep); border-bottom: 2px solid var(--lime-deep); transform: translateY(-3px) rotate(-45deg); }

/* Restaurantes y motoristas: titular y acción a un lado, lo que ofrecemos en filas al otro */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7) clamp(32px, 7vw, 112px); align-items: start; }
.split .sub { margin-bottom: var(--s-6); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-1) var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.rows b { font-weight: 700; }
.rows span { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-media { aspect-ratio: 6 / 5; }
.riders { background: var(--ink); color: #fff; }
.riders .kicker { color: var(--lime); }
.riders .sub { color: var(--muted-on-dark); }
.riders h2.display { font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; max-width: 12em; margin-bottom: var(--s-7); }
.riders .rows { border-top-color: var(--lime); }
.riders .rows li { border-bottom-color: var(--ink-3); }
.riders .rows span { color: var(--muted-on-dark); }
.riders-media { aspect-ratio: 16 / 9; margin-top: var(--s-8); background: var(--ink-2); }
@media (max-width: 860px) {
  .split, .feature-grid { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; }
}

/* Confianza: enlaces como filas, no tarjetas */
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-4); padding: var(--s-5) 0; color: var(--ink); text-decoration: none; }
.links a::after { content: "→"; grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.links a:hover::after { transform: translateX(4px); color: var(--ink); }
.links b { font-weight: 700; }
.links span { color: var(--muted); font-size: var(--t-small); }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; padding: var(--s-5) 0; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { margin: 0 0 var(--s-5); color: var(--muted); max-width: 40em; }

/* App */
.app { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.app-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.app-row h2 { margin-bottom: var(--s-2); }

/* ---------- Formularios (páginas internas) ---------- */
.form { display: grid; gap: var(--s-5); max-width: 560px; margin-top: var(--s-5); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--t-small); }
.field input, .field select, .field textarea { min-height: var(--control); border: 1px solid #CDD2C8; border-radius: var(--r-sm); padding: 12px 14px; font-size: 1rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { color: var(--muted); font-size: var(--t-fine); }
.field .error { color: var(--danger); font-size: var(--t-fine); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-small); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); }
.form .btn { justify-self: start; }
.alert { border-radius: var(--r-sm); padding: var(--s-4); font-size: var(--t-small); }
.alert.ok { background: var(--lime-soft); color: var(--lime-deep); }
.alert.err { background: var(--danger-soft); color: var(--danger); }

/* ---------- Diálogo del menú ---------- */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(640px, calc(100vw - 32px)); max-height: 86vh; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(23, 25, 28, .55); }
dialog .head { position: sticky; top: 0; z-index: 1; background: #fff; padding: var(--s-5); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-3); align-items: flex-start; }
dialog .head h3 { font-size: 1.375rem; letter-spacing: -.01em; }
dialog .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: var(--t-small); }
dialog .content { padding: 0 var(--s-5) var(--s-5); }
dialog h4 { font-size: var(--t-small); font-weight: 700; color: var(--muted); margin: var(--s-5) 0 var(--s-1); }
dialog .product { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
dialog .product b { font-weight: 600; }
dialog .product small { display: block; color: var(--muted); font-size: var(--t-fine); }
dialog .product.hl { background: var(--lime-soft); border-radius: var(--r-sm); padding: var(--s-3); margin: 0 calc(-1 * var(--s-3)); }
dialog .price { text-align: right; white-space: nowrap; }
dialog .price s { display: block; color: var(--muted); font-weight: 450; font-size: var(--t-fine); }
dialog .cta { position: sticky; bottom: 0; background: #fff; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
dialog .cta .btn { width: 100%; }
.tag.closed { color: var(--danger); font-weight: 600; }

/* ---------- Páginas internas ---------- */
article.page { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) var(--s-8); }
article.page h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 0 0 var(--s-4); }
article.page h1 + p { font-size: var(--t-lead); color: var(--muted); }
article.page h2 { font-size: 1.375rem; letter-spacing: -.01em; margin: var(--s-7) 0 var(--s-3); }
article.page p { margin: 0 0 var(--s-4); }
article.page ul:not(.checks), article.page ol { padding-left: 1.25em; margin: 0 0 var(--s-4); }
article.page li { margin: 6px 0; }
article.page .updated { color: var(--muted); font-size: var(--t-small); }
.box { background: var(--soft); border-left: 3px solid var(--lime); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; }

/* ---------- Pie ---------- */
footer.foot { background: var(--ink); color: var(--muted-on-dark); padding: var(--s-8) 0 var(--s-6); }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s-6); }
.foot h3 { color: #fff; font-size: var(--t-small); font-weight: 600; margin: 0 0 var(--s-3); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.foot a { color: var(--muted-on-dark); text-decoration: none; font-size: var(--t-small); transition: color .2s; }
.foot a:hover { color: #fff; }
.foot p { font-size: var(--t-small); line-height: 1.6; }
.foot .logo img { height: 28px; width: auto; margin-bottom: var(--s-4); }
.foot .legal { border-top: 1px solid var(--ink-3); margin-top: var(--s-7); padding-top: var(--s-5); font-size: var(--t-fine); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }
