/* Neblina · café de altura (demo). Papel claro, espresso y caramelo; un verde de cafetal como segundo acento.
   Tipografía: Instrument Serif (titulares, con itálicas) e Inter (texto). Primero el teléfono. */

:root {
  --papel: #efebe4;
  --papel-2: #e5ded3;
  --papel-3: #d9d0c2;
  --espresso: #2b1a12;
  --cafe: #6b4226;
  --caramelo: #c58a52;
  --verde: #4f6b3a;
  --gris: #7a6c60;
  --linea: rgb(43 26 18 / .12);
  --r: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --cab-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--papel); color: var(--espresso); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
.envoltura { width: min(1180px, 100% - 32px); margin-inline: auto; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Tipos ---------- */
.antetitulo { margin-bottom: .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cafe); }
.titulo-sec, .titulo-fase { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 11vw, 6rem); line-height: .95; letter-spacing: -.02em; }
.titulo-sec em, .titulo-fase em { color: var(--caramelo); }
.nota { color: var(--gris); font-size: .82rem; margin-top: .8rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 52px; padding: 0 1.5rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .25s; }
.btn:active { transform: scale(.97); }
.btn-oscuro { background: var(--espresso); color: var(--papel); }
.btn-oscuro:hover { background: var(--cafe); }
.btn-borde { box-shadow: inset 0 0 0 1.5px var(--espresso); background: rgb(239 235 228 / .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-borde:hover { background: var(--espresso); color: var(--papel); }
.btn-sm { height: 40px; padding: 0 1.1rem; font-size: .85rem; }
.btn-lg { height: 58px; padding: 0 2rem; font-size: 1rem; }
.cuenta { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--caramelo); color: var(--espresso); font-size: .75rem; font-weight: 700; }
.cuenta[hidden] { display: none; }
:focus-visible { outline: 2px solid var(--cafe); outline-offset: 3px; border-radius: 8px; }

/* ---------- Carga ---------- */
.carga { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: .8rem; background: var(--papel); }
.carga-taza { width: 120px; height: 120px; }
.carga-vapor path { animation: vapor 1.8s ease-in-out infinite; }
.carga-vapor path:nth-child(2) { animation-delay: .3s; } .carga-vapor path:nth-child(3) { animation-delay: .6s; }
@keyframes vapor { 0% { transform: translateY(4px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
.carga-num { font-family: var(--serif); font-size: 1.5rem; color: var(--gris); }
.carga-num b { color: var(--espresso); font-weight: 400; }
html:not(.js) .carga { display: none; }

/* ---------- Cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cab-h); display: flex; align-items: center; gap: 1rem; padding: 0 16px; transition: background-color .4s; }
.cab.solida { background: rgb(239 235 228 / .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.marca { display: grid; line-height: 1; text-decoration: none; font-family: var(--serif); font-size: 1.7rem; }
.marca span { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gris); margin-top: .2rem; }
.cab-nav { display: none; gap: 2rem; margin-left: auto; }
.cab-nav a { text-decoration: none; font-weight: 500; font-size: .9rem; color: var(--gris); }
.cab-nav a:hover { color: var(--espresso); }
.cab .btn { margin-left: auto; }
@media (min-width: 900px) { .cab { padding: 0 32px; } .cab-nav { display: flex; } .cab .btn { margin-left: 1.5rem; } }

/* ---------- Inicio ---------- */
.inicio { position: relative; height: 280vh; }
.inicio-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 55%, #f6f3ee, var(--papel) 60%, var(--papel-2)); }
.escena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.escena-respaldo { position: absolute; left: 50%; top: 52%; width: min(120vw, 900px); transform: translate(-50%, -50%); opacity: 0; mix-blend-mode: multiply; }
.sin-3d .escena-respaldo { opacity: 1; }
.fase { position: absolute; left: 16px; right: 16px; z-index: 2; text-align: center; }
.fase-1 { top: calc(var(--cab-h) + 2vh); }
.titulo { font-family: var(--serif); font-weight: 400; font-size: clamp(5.5rem, 30vw, 14rem); line-height: .82; letter-spacing: -.03em; }
.titulo .l { display: inline-block; }
.fase-1 .bajada { margin: .8rem auto 0; max-width: 30ch; color: var(--gris); }
.acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.fase-2, .fase-3 { opacity: 0; visibility: hidden; }
.fase-2 { top: calc(var(--cab-h) + 3vh); }
.fase-3 { top: calc(var(--cab-h) + 3vh); }
@media (min-width: 900px) { .fase-3 { top: auto; bottom: 10vh; } }
.fase-2 .titulo-fase, .fase-3 .titulo-fase { font-size: clamp(2.4rem, 10vw, 5rem); }
@media (min-width: 900px) {
  .fase-1 { top: auto; bottom: 12vh; left: 6vw; right: auto; text-align: left; max-width: 38vw; }
  .fase-1 .bajada { margin: .8rem 0 0; }
  .acciones { justify-content: flex-start; margin-top: 1.4rem; }
}

/* ---------- Origen ---------- */
.origen { position: relative; padding: 14vh 0 22vh; overflow: hidden; }
.origen-grid { display: grid; gap: 2.4rem; }
.altura { display: flex; align-items: baseline; gap: .6rem; margin: 1.4rem 0 1.8rem; }
.altura b { font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 22vw, 9rem); line-height: .85; color: var(--verde); font-variant-numeric: tabular-nums; }
.altura span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.origen-pasos { display: grid; gap: 1rem; counter-reset: o; }
.origen-pasos li { counter-increment: o; padding: 1rem 0 0 2.6rem; border-top: 1px solid var(--linea); position: relative; }
.origen-pasos li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: 1rem; font-family: var(--serif); font-size: 1.4rem; color: var(--caramelo); line-height: 1; }
.origen-pasos b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.origen-pasos p { color: var(--gris); }
.origen-fotos { position: relative; height: 120vw; max-height: 720px; }
.of { position: absolute; overflow: hidden; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgb(43 26 18 / .5); }
.of img { width: 100%; height: 100%; object-fit: cover; }
.of-1 { width: 58%; aspect-ratio: 3 / 4; left: 0; top: 0; }
.of-2 { width: 48%; aspect-ratio: 2 / 3; right: 0; top: 18%; }
.of-3 { width: 44%; aspect-ratio: 3 / 4; left: 18%; bottom: 0; }
.montanas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; }
.montanas .m1 { fill: #d6cdbf; }
.montanas .m2 { fill: #cbbfae; }
@media (min-width: 900px) { .origen-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; } .origen-fotos { height: 680px; } }

/* ---------- Carta ---------- */
.carta { padding: 12vh 0; background: var(--espresso); color: var(--papel); }
.carta .antetitulo { color: var(--caramelo); }
.pestanas { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 2rem -16px 1.2rem; padding: 0 16px; }
.pestanas::-webkit-scrollbar { display: none; }
.pestana { flex: none; height: 40px; padding: 0 1rem; border-radius: 99px; border: 0; cursor: pointer; background: rgb(239 235 228 / .08); color: #c9bcae; font-weight: 600; font-size: .88rem; }
.pestana[aria-selected="true"] { background: var(--papel); color: var(--espresso); }
.lista { display: grid; gap: .8rem; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: center; padding: .7rem; border-radius: 18px; background: rgb(239 235 228 / .05); border: 1px solid rgb(239 235 228 / .08); }
.item img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.item-sin { width: 76px; height: 76px; border-radius: 14px; background: radial-gradient(circle at 40% 35%, #5a3a26, #2f1d13); display: grid; place-items: center; }
.item-sin svg { width: 30px; height: 40px; transform: rotate(-28deg); }
.item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.05; }
.item p { color: #b8aa9b; font-size: .85rem; }
.item-lado { display: grid; justify-items: end; gap: .4rem; }
.item-precio { font-weight: 600; font-variant-numeric: tabular-nums; }
.sumar { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--caramelo); color: var(--espresso); font-size: 1.4rem; font-weight: 600; display: grid; place-items: center; transition: transform .3s var(--ease); }
.sumar:hover { transform: rotate(90deg); }
@media (min-width: 900px) { .pestanas { margin-inline: 0; padding: 0; } .lista { grid-template-columns: 1fr 1fr; } }

/* ---------- Arma tu bebida ---------- */
.bebida { padding: 12vh 0; }
.bebida-grid { display: grid; gap: 2rem; align-items: center; }
.vaso-escena { position: relative; display: grid; justify-items: center; padding: 1.4rem 0 .6rem; border-radius: 30px; background: radial-gradient(60% 50% at 50% 45%, #fbf8f3, var(--papel-2)); }
.vaso { width: min(68vw, 300px); height: auto; overflow: visible; }
.vaso-nombre { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin-top: .4rem; }
.vaso-precio { color: var(--gris); font-weight: 600; }
.opciones { display: grid; gap: 1.2rem; margin: 1.6rem 0 1.6rem; }
.opciones legend { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); margin-bottom: .5rem; }
.opciones fieldset { display: flex; flex-wrap: wrap; gap: .45rem; }
.opciones label { cursor: pointer; }
.opciones input { position: absolute; opacity: 0; pointer-events: none; }
.opciones label span { display: inline-flex; align-items: center; height: 44px; padding: 0 1.1rem; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--linea); background: #f7f4ef; font-weight: 500; transition: background-color .25s, color .25s, box-shadow .25s; }
.opciones input:checked + span { background: var(--espresso); color: var(--papel); box-shadow: none; }
.opciones input:focus-visible + span { outline: 2px solid var(--cafe); outline-offset: 2px; }
@media (max-width: 899px) {
  /* en el teléfono el vaso queda arriba mientras eliges: se ve cómo cambia */
  .vaso-escena { position: sticky; top: calc(var(--cab-h) + 6px); z-index: 2; padding: .8rem 0 .5rem; box-shadow: 0 18px 30px -24px rgb(43 26 18 / .6); }
  .vaso { width: min(40vw, 190px); }
  .vaso-nombre { font-size: 2rem; }
}
@media (min-width: 900px) { .bebida-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } .vaso-escena { position: sticky; top: calc(var(--cab-h) + 24px); } }

/* ---------- Local ---------- */
.local { padding-bottom: 12vh; }
.local-foto { height: 55vh; overflow: hidden; }
.local-foto img { width: 100%; height: 125%; object-fit: cover; }
.local-grid { display: grid; gap: 2.4rem; margin-top: -10vh; position: relative; padding: 2rem 1.4rem; border-radius: var(--r); background: var(--papel); }
.ventajas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.ventajas li { padding-top: .8rem; border-top: 1px solid var(--linea); }
.ventajas b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.ventajas span { color: var(--gris); font-size: .85rem; }
.estado { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding: .5rem 1rem; border-radius: 99px; background: rgb(79 107 58 / .12); color: var(--verde); font-size: .9rem; }
.estado.cerrado { background: rgb(43 26 18 / .08); color: var(--gris); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.horario div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.horario dt { color: var(--gris); }
.horario dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.direccion { margin-top: 1.2rem; }
.direccion span { color: var(--gris); font-size: .8rem; }
@media (min-width: 900px) { .local-grid { grid-template-columns: 1.2fr 1fr; padding: 3rem; gap: 4rem; } .local-foto { height: 70vh; } }

/* ---------- Pie ---------- */
.pie { padding: 4rem 0 7rem; border-top: 1px solid var(--linea); }
.pie-marca { font-family: var(--serif); font-size: clamp(5rem, 28vw, 14rem); line-height: .8; color: var(--papel-3); }
.pie-aviso { margin-top: 1rem; color: var(--gris); font-size: .82rem; max-width: 72ch; }
.pie-firma { margin-top: .8rem; font-size: .9rem; }
.pie-firma a { color: var(--cafe); font-weight: 600; }

/* ---------- Pedido ---------- */
.pedido-barra { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .6rem; padding: 8px 8px 8px 18px; max-width: 560px; margin-inline: auto;
  border-radius: 99px; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -14px rgb(43 26 18 / .5); }
.pedido-barra[hidden] { display: none; }
.pr { flex: 1; display: flex; justify-content: space-between; align-items: baseline; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pr b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.panel { width: min(500px, 100% - 24px); padding: 0; border: 0; border-radius: var(--r); background: #faf7f2; color: var(--espresso); }
.panel::backdrop { background: rgb(43 26 18 / .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel-in { position: relative; padding: 1.6rem; display: grid; gap: .9rem; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.cerrar { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(43 26 18 / .07); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pp-lista li { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--linea); }
.pp-lista small { display: block; color: var(--gris); }
.pp-cant { display: inline-flex; align-items: center; gap: .4rem; }
.pp-cant button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--linea); background: none; cursor: pointer; }
.pp-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.pp-total b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.pp-hora { display: grid; gap: .3rem; font-size: .8rem; color: var(--gris); }
.pp-hora select { height: 46px; border-radius: 12px; border: 1px solid var(--linea); background: #fff; padding: 0 .8rem; color: var(--espresso); font-size: 1rem; }
.wa-chat { padding: 1rem; border-radius: 16px; background: #0b141a; }
.wa-burbuja { margin-left: auto; max-width: 90%; padding: .7rem .9rem 1.2rem; border-radius: 12px 12px 2px 12px; background: #005c4b; color: #e9edef; font-size: .9rem; white-space: pre-line; position: relative; }
.wa-burbuja::after { content: "✓✓"; position: absolute; right: 8px; bottom: 4px; font-size: .65rem; color: #53bdeb; }
.demo-cta { padding-top: 1rem; border-top: 1px solid var(--linea); display: grid; gap: .7rem; }
.demo-cta p { font-family: var(--serif); font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inicio { height: auto; }
  .inicio-fijo { position: relative; }
  .carga-vapor path { animation: none; }
}
