/* Plantilla "Café" (cafeterías y pastelerías). Mezcla de las referencias Hitchin Bakery y Cofe:
   cabecera crema, portada con titular serif y foto en arco, borde de papel rasgado,
   categorías en tarjetas redondeadas rosadas, especiales en arcos, carta con pestañas
   (destacado grande + lista con precios), banda "en vivo" y pie con ola.
   Colores del dueño: --fondo (crema), --pri (marrón: botones y bandas), --sec (rosa: detalles). */
:root {
  --fondo: #fbf4ec; --tinta: #2a1a14; --tinta-2: rgba(42,26,20,.66); --superficie: #fffaf5; --superficie-2: #f3e9df; --linea: rgba(60,30,20,.12);
  --pri: #4a2c21; --sobre-pri: #ffffff; --sec: #e8a598; --sobre-sec: #2a1a14; --acento: #4a2c21; --acento-oscuro: #e8a598; --borde-pri: none;
  --rosa: color-mix(in srgb, var(--sec) 22%, var(--fondo));
  --f-titulo: 'Fraunces', 'Lora', Georgia, 'Times New Roman', serif;
  --f-texto: 'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radio: 22px; --ancho: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-texto); font-size: 15px; line-height: 1.55; color: var(--tinta); background: var(--fondo); overflow-x: hidden; }
body.t-sin-scroll { position: fixed; left: 0; right: 0; overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sec); outline-offset: 2px; border-radius: 8px; }
.contenedor { width: 100%; max-width: calc(var(--ancho) + 40px); margin: 0 auto; padding: 0 20px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.solo-ancho { display: none !important; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--acento); }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--fondo) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s; }
.cabecera.con-sombra { box-shadow: 0 1px 0 var(--linea), 0 10px 30px -22px rgba(60,30,20,.5); }
.cabecera-in { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1; }
.marca-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--pri); color: var(--sobre-pri); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-family: var(--f-titulo); font-size: 1.2rem; font-style: italic; }
.marca-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.marca-nombre { font-family: var(--f-titulo); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 2px; padding: 4px; border-radius: 999px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.nav a { text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 16px; border-radius: 999px; color: var(--tinta-2); transition: background .2s, color .2s; }
.nav a:hover { color: var(--tinta); background: var(--superficie-2); }
.cabecera-acciones { display: flex; align-items: center; gap: 8px; }
.link-pedido { font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--rosa); white-space: nowrap; }
.boton-bolsa { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); display: grid; place-items: center; }
.boton-bolsa svg { width: 20px; height: 20px; }
.boton-bolsa b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sec); color: var(--sobre-sec); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.boton-bolsa b.t-vacio { display: none; }
.t-rebote { animation: rebote .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes rebote { 40% { transform: scale(1.18); } }

/* ---------- Botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .18s, filter .2s; }
.boton:hover { transform: translateY(-1px); }
.boton-chico { min-height: 42px; padding: 0 20px; font-size: 14px; }
.boton-pri { background: var(--pri); color: var(--sobre-pri); box-shadow: var(--borde-pri); }
.boton-pri:hover { filter: brightness(1.12); }
.flecha { transition: transform .2s; }
.boton:hover .flecha { transform: translateX(3px); }
.link-subrayado { font-weight: 600; text-decoration: underline; text-decoration-color: var(--sec); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Portada ---------- */
.portada { position: relative; padding: 26px 0 70px; overflow: hidden; }
.portada-in { display: grid; gap: 30px; }
.portada-etiqueta { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); }
.portada-etiqueta span { width: 34px; height: 1.5px; background: currentColor; }
.portada h1 { margin: 0; font-family: var(--f-titulo); font-weight: 500; font-size: clamp(2.7rem, 11.5vw, 5.4rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.portada-desc { margin: 18px 0 0; max-width: 44ch; color: var(--tinta-2); font-size: 16.5px; white-space: pre-line; }
.portada-botones { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.aviso-cerrado { margin: 22px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--rosa); font-size: 14px; max-width: 46ch; }
.portada-arte { position: relative; justify-self: center; width: min(86%, 340px); }
.portada-arco { aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--rosa); box-shadow: 0 30px 60px -30px rgba(60,30,20,.5); }
.portada-arco img { width: 100%; height: 100%; object-fit: cover; }
.portada-arco.sin-foto { background: radial-gradient(circle at 50% 35%, var(--sec), var(--rosa) 70%); }
.sello-redondo { position: absolute; left: -10px; bottom: 34px; width: 110px; height: 110px; border-radius: 50%; background: var(--sec); color: var(--sobre-sec); display: grid; place-items: center; box-shadow: 0 14px 30px -14px rgba(60,30,20,.5); }
.sello-redondo svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: girar 22s linear infinite; }
.sello-redondo text { font-family: var(--f-texto); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; fill: currentColor; }
.sello-redondo img { position: relative; width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(40,20,10,.35)); }
@keyframes girar { to { transform: rotate(360deg); } }
.papel { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 34px; fill: var(--rosa); }

/* ---------- Bloques ---------- */
.bloque { padding: 52px 0; }
.bloque-rosa { background: var(--rosa); }
.bloque-cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 26px; }
.bloque-cabeza.centrada { display: block; text-align: center; }
.sobretitulo { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tinta-2); }
.bloque h2, .banda h2 { margin: 0; font-family: var(--f-titulo); font-weight: 500; font-size: clamp(2rem, 7.5vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }

/* Categorías (tarjetas redondeadas) */
.categorias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.categoria { display: grid; justify-items: center; gap: 4px; padding: 14px 12px 16px; border: 0; border-radius: 28px; background: var(--superficie); box-shadow: 0 14px 30px -24px rgba(60,30,20,.55); text-align: center; transition: transform .25s, box-shadow .25s; }
.categoria:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--sec), 0 20px 36px -24px rgba(60,30,20,.6); }
.categoria-foto { width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; margin-bottom: 8px; background: var(--rosa); }
.categoria-foto img, .categoria-foto .t-sin-foto { width: 100%; height: 100%; object-fit: cover; }
.categoria-nombre { font-family: var(--f-titulo); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.categoria small { color: var(--tinta-2); font-size: 12.5px; }

/* Especiales en arco */
.flechas { display: none; gap: 8px; }
.boton-flecha { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); font-size: 18px; display: grid; place-items: center; transition: background .2s, color .2s; }
.boton-flecha:hover { background: var(--pri); color: var(--sobre-pri); }
.fila-arcos { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 4px 20px 12px; }
.fila-arcos { scroll-padding-inline: 20px; }
.fila-arcos::-webkit-scrollbar { display: none; }
.arco { scroll-snap-align: start; min-width: 0; cursor: pointer; display: grid; gap: 12px; }
.arco-foto { aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--rosa); transition: transform .3s; }
.arco-foto img, .arco-foto .t-sin-foto { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.arco:hover .arco-foto img { transform: scale(1.05); }
.arco-cuerpo { display: grid; gap: 6px; padding: 0 4px; }
.arco h3 { margin: 0; font-family: var(--f-titulo); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.arco-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.arco.agotado .arco-foto img { filter: grayscale(1); opacity: .7; }
.precio { font-weight: 700; font-variant-numeric: tabular-nums; }
.boton-mas { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--pri); color: var(--sobre-pri); box-shadow: var(--borde-pri); display: grid; place-items: center; font-weight: 700; font-size: 14px; transition: transform .15s, filter .2s; }
.boton-mas svg { width: 17px; height: 17px; }
.boton-mas:hover:not(:disabled) { filter: brightness(1.15); }
.boton-mas:active:not(:disabled) { transform: scale(.92); }
.boton-mas.con-cantidad { background: var(--sec); color: var(--sobre-sec); }
.boton-mas:disabled { background: var(--superficie-2); color: var(--tinta-2); box-shadow: none; }
.boton-mas-chico { width: 36px; height: 36px; }
.etiqueta-agotado { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--superficie-2); color: var(--tinta-2); white-space: nowrap; }

/* La carta */
.bloque-carta { background: var(--superficie); border-radius: 36px 36px 0 0; }
.carta-controles { display: grid; gap: 14px; margin-bottom: 24px; }
.pestanas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
.pestanas::-webkit-scrollbar { display: none; }
.pestana { flex-shrink: 0; min-height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--fondo); box-shadow: inset 0 0 0 1px var(--linea); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.pestana[aria-selected="true"] { background: var(--pri); color: var(--sobre-pri); box-shadow: none; }
.buscador { position: relative; }
.buscador svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--tinta-2); }
.buscador input { width: 100%; height: 46px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--linea); background: var(--fondo); color: var(--tinta); padding: 0 18px 0 44px; font: inherit; font-size: 15px; outline: none; }
.buscador input:focus { box-shadow: inset 0 0 0 1.5px var(--tinta); }
.carta { display: grid; gap: 26px; }
.carta-estrella { display: grid; border-radius: 28px; overflow: hidden; background: var(--rosa); cursor: pointer; }
.estrella-foto { aspect-ratio: 4 / 3; overflow: hidden; }
.estrella-foto img, .estrella-foto .t-sin-foto { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carta-estrella:hover .estrella-foto img { transform: scale(1.04); }
.estrella-texto { padding: 22px 22px 24px; display: grid; gap: 8px; align-content: center; }
.estrella-texto .sobretitulo { margin: 0; }
.estrella-texto h3 { margin: 0; font-family: var(--f-titulo); font-weight: 500; font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.estrella-texto > p { margin: 0; color: var(--tinta-2); }
.estrella-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.estrella-pie .precio { font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 600; }
.renglones { list-style: none; margin: 0; padding: 0; display: grid; }
.renglon { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--linea); cursor: pointer; }
.renglon:last-child { border-bottom: 0; }
.renglon-foto { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--rosa); }
.renglon-foto img, .renglon-foto .t-sin-foto { width: 100%; height: 100%; object-fit: cover; font-size: 1.5rem; }
.renglon-texto { min-width: 0; }
.renglon-linea { display: flex; align-items: baseline; gap: 8px; }
.renglon h3 { margin: 0; font-family: var(--f-titulo); font-weight: 600; font-size: 1.08rem; line-height: 1.25; min-width: 0; }
.renglon-linea i { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--linea); transform: translateY(-4px); }
.renglon-texto p { margin: 2px 0 0; color: var(--tinta-2); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.renglon:hover h3 { color: var(--acento); }
.renglon.agotado { opacity: .6; }
.vacio { text-align: center; color: var(--tinta-2); padding: 36px 12px; border: 1px dashed var(--linea); border-radius: var(--radio); }
.cargando { display: grid; gap: 14px; }
.cargando i { height: 84px; border-radius: 18px; background: linear-gradient(100deg, var(--fondo) 30%, var(--superficie-2) 50%, var(--fondo) 70%); background-size: 300% 100%; animation: carga 1.3s linear infinite; }
.cargando i:first-child { height: 260px; border-radius: 28px; }
@keyframes carga { to { background-position: -150% 0; } }

/* Banda "en vivo" */
.banda { background: var(--pri); color: var(--sobre-pri); padding: 56px 0; }
.banda .sobretitulo { color: inherit; opacity: .7; }
.banda h2 em { color: var(--sec); }
.banda-in { display: grid; gap: 28px; }
.banda-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.banda-pasos li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
.banda-pasos span { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--sec); color: var(--sobre-sec); display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 600; font-size: 1.2rem; }
.banda-pasos b { font-size: 16px; }
.banda-pasos small { opacity: .75; font-size: 14px; }

/* Pie con ola */
.pie { position: relative; background: var(--pri); color: var(--sobre-pri); padding: 16px 0 calc(100px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid color-mix(in srgb, var(--sobre-pri) 14%, transparent); }
.ola { display: none; }
.pie-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; padding-top: 20px; }
.pie-nombre { margin: 0; font-family: var(--f-titulo); font-weight: 500; font-style: italic; font-size: 1.8rem; }
.pie-estado { margin: 2px 0 0; font-size: 13px; opacity: .8; display: flex; align-items: center; gap: 8px; }
.pie-estado i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.pie-estado i.cerrado { background: #f87171; }
.pie-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pie-links a { text-decoration: none; font-weight: 500; font-size: 14px; opacity: .85; }
.pie-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Botón flotante del pedido (celular) */
.pedido-flotante { position: fixed; z-index: 35; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 0; border-radius: 999px; background: var(--pri); color: var(--sobre-pri); box-shadow: 0 18px 40px -14px rgba(40,20,10,.6); transform: translateY(150%); transition: transform .4s cubic-bezier(.2,1.2,.3,1); }
.t-con-pedido .pedido-flotante { transform: none; }
.pf-cant { min-width: 34px; height: 34px; border-radius: 50%; background: var(--sec); color: var(--sobre-sec); display: grid; place-items: center; font-weight: 700; }
.pf-txt { flex: 1; text-align: left; font-weight: 600; }
.pf-total { background: var(--fondo); color: var(--tinta); padding: 9px 16px; border-radius: 999px; font-weight: 700; }

/* ---------- Capas del núcleo (ventana del producto y cajón del pedido) ---------- */
.t-capa { position: fixed; inset: 0; z-index: 60; background: rgba(42,26,20,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.t-capa.t-abierto { opacity: 1; pointer-events: auto; }
.t-cerrar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(42,26,20,.55); color: #fff; display: grid; place-items: center; }
.t-cerrar svg { width: 18px; height: 18px; }
.t-modal { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: var(--fondo); color: var(--tinta); border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.9,.2,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.t-modal.t-abierto { transform: none; }
.t-modal > .t-cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; }
.t-modal-scroll { overflow-y: auto; flex: 1; min-height: 0; }
.t-det-foto { position: relative; aspect-ratio: 16 / 10; background: var(--rosa); border-radius: 28px 28px 0 0; overflow: hidden; }
.t-det-foto img, .t-det-foto .t-sin-foto { width: 100%; height: 100%; object-fit: cover; }
.t-det-cuerpo { padding: 18px 20px 10px; display: grid; gap: 6px; }
.t-det-cat { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.t-det-nombre { margin: 0; font-family: var(--f-titulo); font-weight: 500; letter-spacing: -.02em; font-size: 2.2rem; line-height: 1; }
.t-det-precio { margin: 0; font-weight: 800; font-size: 1.35rem; }
.t-det-desc { margin: 4px 0 0; color: var(--tinta-2); white-space: pre-line; }
.t-extras { display: grid; gap: 8px; margin-top: 10px; }
.t-extras h3 { margin: 0; display: flex; justify-content: space-between; font-size: 14px; }
.t-extras h3 small { color: var(--tinta-2); font-weight: 500; }
.t-extra { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linea); cursor: pointer; }
.t-extra input { position: absolute; opacity: 0; pointer-events: none; }
.t-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--linea); display: grid; place-items: center; flex-shrink: 0; }
.t-check svg { width: 14px; height: 14px; opacity: 0; color: var(--sobre-pri); }
.t-extra-nombre { flex: 1; font-weight: 600; }
.t-extra em { font-style: normal; font-weight: 700; }
.t-extra:has(input:checked) { border-color: var(--tinta); }
.t-extra:has(input:checked) .t-check { background: var(--pri); border-color: var(--pri); }
.t-extra:has(input:checked) .t-check svg { opacity: 1; }
.t-extra:has(input:focus-visible) { outline: 3px solid var(--pri); outline-offset: 2px; }
.t-modal-pie, .t-cajon-pie { display: flex; gap: 10px; align-items: center; padding: 12px 16px 14px; border-top: 1px solid var(--linea); }
.t-cantidad { display: inline-flex; align-items: center; height: 50px; border-radius: 999px; border: 1px solid var(--linea); background: var(--superficie); }
.t-cantidad button { width: 44px; height: 50px; border: 0; background: none; display: grid; place-items: center; }
.t-cantidad button svg { width: 18px; height: 18px; }
.t-cantidad span { min-width: 22px; text-align: center; font-weight: 800; }
.t-boton { flex: 1; min-height: 50px; border: 0; border-radius: 999px; font-weight: 800; font-size: 15px; padding: 0 18px; }
.t-boton-pri { background: var(--pri); color: var(--sobre-pri); box-shadow: var(--borde-pri); }
.t-boton-pri:disabled { filter: grayscale(.8); opacity: .7; }
.t-boton-sec { flex: 0 0 auto; background: var(--superficie); border: 1px solid var(--linea); }
.t-sin-foto { display: grid; place-items: center; width: 100%; height: 100%; background: var(--rosa); color: var(--pri); font-family: var(--f-titulo); font-size: 2.4rem; }
.t-sello { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; background: var(--pri); color: var(--sobre-pri); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.t-cajon { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column; background: var(--fondo); color: var(--tinta); border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.9,.2,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.t-cajon.t-abierto { transform: none; }
.t-cajon-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.t-cajon-cabeza h2 { margin: 0; font-family: var(--f-titulo); font-weight: 500; letter-spacing: -.02em; font-size: 1.9rem; }
.t-cajon-cabeza .t-cerrar { background: var(--superficie); color: var(--tinta); border: 1px solid var(--linea); }
.t-pasos { display: flex; gap: 6px; padding: 0 18px 12px; }
.t-pasos i { flex: 1; height: 4px; border-radius: 4px; background: var(--linea); }
.t-pasos i.t-hecho { background: var(--pri); }
.t-cajon-scroll { overflow-y: auto; flex: 1; min-height: 0; padding: 0 16px 12px; }
.t-lista { display: grid; gap: 10px; }
.t-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linea); }
.t-item-foto { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; }
.t-item-foto img, .t-item-foto .t-sin-foto { width: 100%; height: 100%; object-fit: cover; font-size: 1.4rem; }
.t-item-info { min-width: 0; display: grid; gap: 2px; }
.t-item-info b { font-size: 14.5px; }
.t-item-info small { color: var(--tinta-2); font-size: 12.5px; }
.t-precio { font-weight: 800; font-variant-numeric: tabular-nums; }
.t-paso { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: var(--pri); color: var(--sobre-pri); }
.t-paso button { width: 32px; height: 36px; border: 0; background: none; color: inherit; display: grid; place-items: center; }
.t-paso button svg { width: 15px; height: 15px; }
.t-paso span { min-width: 14px; text-align: center; font-weight: 800; }
.t-vacio-cajon { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 40px 10px; color: var(--tinta-2); }
.t-vacio-cajon b { color: var(--tinta); font-size: 17px; }
.t-sumale h3 { margin: 18px 0 10px; font-size: 15px; }
.t-sumale-fila { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.t-mini { flex: 0 0 140px; display: grid; gap: 6px; padding: 8px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linea); }
.t-mini-foto { height: 80px; border-radius: 8px; overflow: hidden; }
.t-mini-foto img, .t-mini-foto .t-sin-foto { width: 100%; height: 100%; object-fit: cover; font-size: 1.5rem; }
.t-mini b { font-size: 12.5px; line-height: 1.25; }
.t-mini-pie { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.t-mas { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--pri); color: var(--sobre-pri); display: grid; place-items: center; }
.t-mas svg { width: 15px; height: 15px; }
.t-totales { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--linea); color: var(--tinta-2); }
.t-totales .t-precio { color: var(--tinta); font-size: 1.4rem; margin-left: 6px; }
.t-form { display: grid; gap: 14px; }
.t-campo { display: grid; gap: 6px; }
.t-campo > label, .t-etq { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-2); }
.t-campo input { height: 50px; border-radius: 10px; border: 1px solid var(--linea); background: var(--superficie); color: var(--tinta); padding: 0 14px; font: inherit; font-size: 16px; outline: none; }
.t-campo input:focus { border-color: var(--tinta); }
.t-campo input[aria-invalid="true"] { border-color: #dc2626; }
.t-error { color: #dc2626; font-size: 12.5px; font-weight: 600; }
.t-error:empty { display: none; }
.t-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-opcion { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--linea); background: var(--superficie); cursor: pointer; }
.t-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.t-opcion small { color: var(--tinta-2); font-size: 12px; }
.t-opcion:has(input:checked) { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta), 0 0 0 4px color-mix(in srgb, var(--pri) 35%, transparent); }
.t-opcion:has(input:focus-visible) { outline: 3px solid var(--pri); outline-offset: 2px; }
.t-resumen { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 16px; background: var(--superficie); border: 1px solid var(--linea); color: var(--tinta-2); }
.t-resumen .t-precio { color: var(--tinta); font-size: 1.3rem; }
.t-error-envio { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-weight: 600; font-size: 14px; }
.t-error-envio:empty { display: none; }
.t-aviso { position: fixed; z-index: 90; left: 50%; top: 84px; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; background: var(--pri); color: var(--sobre-pri); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); transition: opacity .25s, transform .3s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.t-aviso.t-visible { opacity: 1; transform: translate(-50%, 0); }


/* Cerrados: invisibles de verdad (no se ven ni reciben clics mientras se van) */
.t-modal, .t-cajon { visibility: hidden; transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .25s, visibility 0s linear .35s; }
.t-modal.t-abierto, .t-cajon.t-abierto { visibility: visible; transition-delay: 0s; }
.t-paso, .t-mas, .t-boton-pri, .t-extra:has(input:checked) .t-check { box-shadow: none; }
.t-sin-foto { font-style: italic; }

/* ---------- Tablet / compu ---------- */
@media (min-width: 640px) {
  .categorias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fila-arcos { grid-auto-columns: 38%; }
  .carta-estrella { grid-template-columns: 1.1fr 1fr; }
  .estrella-foto { aspect-ratio: auto; min-height: 320px; }
  .estrella-texto { padding: 34px; }
  .banda-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banda-pasos li { grid-template-columns: 1fr; row-gap: 6px; }
  .banda-pasos span { grid-row: auto; margin-bottom: 6px; }
}
@media (min-width: 960px) {
  .contenedor { padding: 0 32px; }
  .solo-ancho { display: inline-flex !important; }
  .nav { display: flex; }
  .marca { flex: 0 0 auto; }
  .cabecera-in { min-height: 78px; justify-content: space-between; }
  .portada { padding: 40px 0 100px; }
  .portada-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; }
  .portada h1 { font-size: 5.6rem; }
  .portada-arte { width: 100%; max-width: 440px; justify-self: end; }
  .sello-redondo { left: -48px; bottom: 60px; width: 128px; height: 128px; }
  .papel { height: 50px; }
  .bloque { padding: 80px 0; }
  .categorias { grid-template-columns: repeat(auto-fit, minmax(170px, 220px)); justify-content: center; gap: 22px; }
  .flechas { display: flex; }
  .fila-arcos { grid-auto-columns: calc((100% - 72px) / 5); margin: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .bloque-carta { border-radius: 56px 56px 0 0; }
  .carta-controles { grid-template-columns: 1fr 300px; align-items: center; }
  .pestanas { margin: 0; padding-inline: 0; }
  .carta { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .carta-estrella { grid-template-columns: 1fr; position: sticky; top: 100px; }
  .estrella-foto { min-height: 0; aspect-ratio: 5 / 4; }
  .renglones-solos { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .renglones-solos .renglon:nth-last-child(2) { border-bottom: 0; }
  .carta > .vacio { grid-column: 1 / -1; }
  .banda { padding: 80px 0; }
  .banda-in { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; }
  .pedido-flotante { display: none; }
  .t-modal { left: 50%; right: auto; top: 50%; bottom: auto; width: min(880px, calc(100% - 64px)); max-height: min(88dvh, 620px); border-radius: 28px; transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; overflow: hidden; }
  .t-modal.t-abierto { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .t-modal-scroll { display: grid; grid-template-columns: 1fr 1fr; }
  .t-det-foto { aspect-ratio: auto; min-height: 100%; border-radius: 0; }
  .t-det-cuerpo { padding: 32px 30px 16px; align-content: start; }
  .t-det-nombre { font-size: 2.6rem; }
  .t-cajon { left: auto; top: 12px; bottom: 12px; right: 12px; width: 440px; max-height: none; border-radius: 28px; transform: translateX(110%); }
  .t-cajon.t-abierto { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
