/* Base compartida de las tres direcciones. Cada a/b/c.css define estos tokens:
   --papel --papel-2 --tinta --tinta-suave --acento --acento-tinta --marca --linea
   --fuente-display --fuente-texto --radio --sombra */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--fuente-texto); font-size: 1rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--fuente-display); font-style: normal; line-height: 1.05; margin: 0; overflow-wrap: anywhere; min-width: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo: pez + palabra (la palabra usa la letra de la marca, Outfit) */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--marca); min-height: 44px; }
.logo svg { width: 3.1rem; height: auto; flex: none; }
.logo-palabra { font-family: "Outfit", var(--fuente-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1; }

/* Botón del pedido */
.btn-pedido { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; white-space: nowrap; font-weight: 600; }
.btn-pedido .cuenta { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; border-radius: 999px; background: var(--tinta-suave); color: var(--papel); font-size: .85rem; }
.btn-pedido.tiene-items .cuenta { background: var(--acento); color: var(--acento-tinta); }

/* Agregar al pedido */
.btn-agregar, .btn-mas { min-height: 44px; padding: 0 1rem; border: 0; border-radius: var(--radio); background: var(--marca); color: #fff; font-weight: 600; white-space: nowrap; transition: transform 120ms var(--ease, ease-out), background-color 160ms ease-out; }
.btn-agregar:hover, .btn-mas:hover { background: var(--tinta); }
.btn-agregar:active, .btn-mas:active { transform: translateY(1px); }
.btn-agregar.agregado, .btn-mas.agregado { background: var(--exito, oklch(55% 0.13 150)); }

/* Panel del pedido */
.pedido-panel { width: min(100% - 1.5rem, 28rem); max-height: min(90dvh, 40rem); padding: 0; border: 0; border-radius: calc(var(--radio) * 2); background: var(--papel); color: var(--tinta); box-shadow: 0 24px 60px oklch(20% 0.05 255 / .35); }
.pedido-panel::backdrop { background: oklch(20% 0.05 255 / .45); }
.pedido-panel[open] { display: flex; flex-direction: column; }
.pedido-cabeza { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--linea); }
.pedido-cabeza h2 { font-size: 1.4rem; }
.pedido-cerrar { width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; }
.pedido-nota { padding: .75rem 1.25rem 0; font-size: .875rem; color: var(--tinta-suave); }
.pedido-lista { list-style: none; margin: 0; padding: .5rem 1.25rem; overflow-y: auto; flex: 1; }
.pedido-vacio { padding: 1.5rem 0; color: var(--tinta-suave); }
.pedido-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--linea); }
.pedido-nombre { font-weight: 600; }
.pedido-precio { grid-column: 1; font-size: .875rem; color: var(--tinta-suave); }
.pedido-cantidad { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: .25rem; }
.pedido-cantidad button { width: 44px; height: 44px; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--papel-2); font-size: 1.2rem; }
.pedido-cantidad output { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.pedido-pie { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--linea); display: grid; gap: .75rem; }
.pedido-pie p { display: flex; justify-content: space-between; font-size: 1.05rem; }
.btn-whatsapp { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radio); background: oklch(62% 0.16 150); color: #fff; font-weight: 700; text-decoration: none; }
.btn-whatsapp[aria-disabled] { pointer-events: none; opacity: .45; }

/* WhatsApp flotante: solo ícono, con zona segura para no tapar precios */
.flotante-whatsapp { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: oklch(62% 0.16 150); color: #fff; box-shadow: 0 6px 18px oklch(20% 0.05 255 / .3); }
.flotante-whatsapp svg { width: 28px; height: 28px; }
main { padding-bottom: 5rem; }

/* Rótulo de comparación: andamiaje temporal, se quita al elegir */
.rotulo-direccion { position: relative; z-index: 50; padding: .4rem 1rem; background: oklch(22% 0.02 255); color: oklch(92% 0.01 255); font: 500 .8rem/1.4 system-ui, sans-serif; text-align: center; }
.rotulo-direccion a { color: oklch(80% 0.12 60); }

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

/* Enlaces de teléfono dentro de texto: área táctil de 44 px sin cambiar el tamaño visual */
.pie-datos a, .franja a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .15rem; }

/* Capturas para el cliente (url#captura): sin el rótulo de comparación */
.captura .rotulo-direccion { display: none; }

/* Que ningún display de componente le gane al atributo hidden */
[hidden] { display: none !important; }
