/* =====================================================================
   ESTILOS COMPARTIDOS (las 4 cafeterías usan este archivo)
   ---------------------------------------------------------------------
   Acá NO hay colores ni tipografías fijas: todo sale de las variables
   (--fondo, --acento, --f-titulo...) que define el tema.css de cada
   cafetería. Para cambiar el look, tocá tema.css, no este archivo.
   ===================================================================== */

:root {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-rebote: cubic-bezier(.2, 1.5, .4, 1);
  --margen: clamp(16px, 4vw, 56px);
  --ancho: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body {
  background: var(--fondo); color: var(--texto);
  font: 400 16px/1.55 var(--f-texto);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--acento); color: var(--sobre-acento); }
input, textarea { caret-color: var(--acento); }
:focus-visible { outline: 3px solid var(--foco, var(--acento)); outline-offset: 3px; border-radius: 4px; }
* { scrollbar-color: var(--linea-2) transparent; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* Títulos: la personalidad la da el tema */
.titulo {
  font-family: var(--f-titulo); font-weight: var(--t-peso, 800);
  text-transform: var(--t-mayus, none); letter-spacing: var(--t-espaciado, 0);
  line-height: var(--t-alto, 1); color: var(--titulo); text-wrap: balance;
}

/* ---------- Cartel de demo ---------- */
.demo {
  background: var(--demo-fondo, var(--titulo)); color: var(--demo-texto, var(--fondo));
  font: 700 11.5px/1 var(--f-texto); letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 7px 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--radio-boton);
  background: var(--acento); color: var(--sobre-acento);
  font: var(--boton-peso, 700) var(--boton-tam, 16px)/1 var(--f-boton, var(--f-texto));
  text-transform: var(--boton-mayus, none); letter-spacing: var(--boton-espaciado, 0);
  text-decoration: none; white-space: nowrap; box-shadow: var(--sombra-boton, none);
  transition: transform .25s var(--ease-rebote), background-color .2s, box-shadow .2s, color .2s;
  user-select: none;
}
.btn:hover { background: var(--acento-2); }
.btn:active { transform: scale(.95); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--linea { background: transparent; color: var(--titulo); box-shadow: inset 0 0 0 2px var(--linea-2); }
.btn--linea:hover { background: var(--fondo-3); }
.btn--suave { background: var(--fondo-3); color: var(--titulo); box-shadow: none; }
.btn--suave:hover { background: var(--linea); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-2); }
.btn--peligro { background: transparent; color: var(--peligro); box-shadow: inset 0 0 0 2px currentColor; }
.btn--peligro:hover { background: var(--peligro-suave); }
.btn--chico { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn--ancho { width: 100%; }
.btn .ico { width: 20px; height: 20px; }

/* ---------- Fichas (filtros, categorías) ---------- */
.ficha {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: var(--radio-chip); border: 1.5px solid var(--linea-2); color: var(--texto-2);
  font: 600 15px/1 var(--f-texto); white-space: nowrap; background: transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease-rebote);
}
.ficha:hover { color: var(--titulo); border-color: var(--texto-2); }
.ficha:active { transform: scale(.94); }
.ficha[aria-pressed="true"], .ficha.activa { background: var(--titulo); border-color: var(--titulo); color: var(--fondo); }
.ficha .ico { width: 18px; height: 18px; }
.segmento { display: inline-flex; padding: 4px; border-radius: var(--radio-chip); background: var(--fondo-2); border: 1px solid var(--linea); flex-wrap: wrap; }
.segmento button { min-height: 42px; padding: 0 18px; border-radius: var(--radio-chip); font-weight: 600; color: var(--texto-2); transition: background-color .25s, color .25s; }
.segmento button[aria-pressed="true"] { background: var(--titulo); color: var(--fondo); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--margen); background: var(--cabecera-fondo, var(--fondo)); color: var(--cabecera-texto, var(--texto));
  border-bottom: 1px solid var(--cabecera-linea, var(--linea));
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-marca, var(--f-titulo)); font-weight: var(--marca-peso, var(--t-peso)); text-transform: var(--marca-mayus, var(--t-mayus)); letter-spacing: var(--marca-espaciado, .01em); font-size: var(--marca-tam, 26px); line-height: 1; color: var(--cabecera-titulo, var(--titulo)); }
.marca small { font: 600 11px/1.2 var(--f-texto); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.cabecera nav { display: flex; align-items: center; gap: 4px; }
.cabecera nav a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: inherit; opacity: .82; font-weight: 600; text-decoration: none; transition: opacity .2s, background-color .2s; }
.cabecera nav a:not(.btn):hover { opacity: 1; background: var(--cabecera-hover, var(--fondo-3)); }
.cabecera nav a[aria-current="page"] { opacity: 1; }
@media (max-width: 760px) {
  .cabecera { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .cabecera nav a.solo-pc:not(.btn) { display: none; }
  .cabecera nav { gap: 2px; }
  .cabecera .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .marca { font-size: calc(var(--marca-tam, 26px) * .84); }
  .marca small { display: none; }
}
@media (max-width: 380px) { .cabecera nav .nav-texto { display: none; } }

/* ---------- Chapa de promo ---------- */
.chapa {
  display: grid; gap: 4px; align-content: start;
  background: var(--chapa-fondo, var(--fondo-2)); color: var(--chapa-texto, var(--texto));
  border-radius: var(--radio); padding: 16px 18px; text-decoration: none;
}
.chapa__titulo { font-size: 23px; text-wrap: balance; }
.chapa__detalle { font-size: 14px; opacity: .85; }
.chapa__precio { font: 800 24px/1.1 var(--f-texto); font-variant-numeric: tabular-nums; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(56px, 8vw, 104px) var(--margen); }
.envase { max-width: var(--ancho); margin: 0 auto; }
.seccion__titulo { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: 14px; }
.seccion__bajada { color: var(--texto-2); font-size: 18px; max-width: 52ch; }

/* ---------- Horarios y mapa ---------- */
.horarios { display: grid; gap: 2px; margin: 22px 0 26px; max-width: 420px; }
.horarios div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.horarios dt { font-weight: 600; color: var(--titulo); }
.horarios dd { font-variant-numeric: tabular-nums; color: var(--texto-2); }
.lugar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.lugar__mapa { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden; background: var(--fondo-3); }
.lugar__mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.lugar__abrir { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 99px; background: var(--fondo-2); color: var(--titulo); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); }
@media (max-width: 860px) { .lugar { grid-template-columns: 1fr; } }

/* ---------- Pie y firma ---------- */
.pie { border-top: 1px solid var(--linea); padding: 40px var(--margen) 110px; color: var(--texto-2); font-size: 14px; background: var(--pie-fondo, transparent); }
.pie .envase { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.pie strong { color: var(--titulo); }
.hecho-por { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* WhatsApp flotante */
.flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .5); transition: transform .3s var(--ease-rebote), opacity .25s;
}
.flotante:hover { transform: scale(1.08); }
.flotante--oculto { opacity: 0; transform: scale(.6); pointer-events: none; }
.flotante .ico { width: 30px; height: 30px; }

/* Aviso corto */
.aviso {
  position: fixed; left: 50%; bottom: 96px; z-index: 100; transform: translate(-50%, 20px);
  background: var(--aviso-fondo, var(--titulo)); color: var(--aviso-texto, var(--fondo)); padding: 13px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
.aviso[data-tipo="error"] { background: var(--peligro); color: #fff; }

/* ---------- Hoja (ventana que sube desde abajo en el celular) ---------- */
.hoja {
  border: 0; padding: 0; margin: auto; width: min(560px, 100%); max-height: min(92vh, 900px);
  background: var(--fondo-2); color: var(--texto); border-radius: var(--radio-hoja, 20px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); overflow: hidden;
}
.hoja::backdrop { background: rgba(10, 8, 6, .6); backdrop-filter: blur(3px); }
.hoja[open] { display: flex; flex-direction: column; animation: hoja-entra .45s var(--ease); }
.hoja[open]::backdrop { animation: aparece .3s ease; }
.hoja.cerrando { animation: hoja-sale .25s ease forwards; }
@keyframes hoja-entra { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes hoja-sale { to { opacity: 0; transform: translateY(30px); } }
@keyframes aparece { from { opacity: 0; } }
.hoja__cuerpo { overflow-y: auto; padding: 22px; display: grid; gap: 16px; }
.hoja__cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fondo-2); color: var(--titulo);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .25s var(--ease-rebote);
}
.hoja__cerrar:active { transform: scale(.9); }
.hoja__pie { display: flex; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--linea); background: var(--fondo-2); }
.hoja__pie .btn { flex: 1; }
@media (max-width: 640px) {
  .hoja { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 94vh; border-radius: var(--radio-hoja, 20px) var(--radio-hoja, 20px) 0 0; }
  @keyframes hoja-entra { from { transform: translateY(100%); } }
  @keyframes hoja-sale { to { transform: translateY(100%); } }
}

/* ---------- Formularios ---------- */
.campo { display: grid; gap: 6px; }
.campo > span, .campo > label { font-weight: 600; font-size: 15px; color: var(--titulo); }
.campo small { color: var(--texto-2); font-size: 13px; }
.entrada {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radio-entrada, 10px);
  background: var(--entrada-fondo, var(--fondo)); border: 1.5px solid var(--linea-2); color: var(--titulo);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.entrada::placeholder { color: var(--texto-3); }
.entrada:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-suave); }
.entrada[aria-invalid="true"] { border-color: var(--peligro); }
textarea.entrada { min-height: 84px; resize: vertical; }
.error-campo { color: var(--peligro); font-size: 14px; font-weight: 600; }
.fila-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .fila-campos { grid-template-columns: 1fr; } }

/* Interruptor sí/no */
.interruptor { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 44px; }
.interruptor input { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--linea-2); position: relative; cursor: pointer; transition: background-color .2s; flex: none; margin: 0; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--ease-rebote); }
.interruptor input:checked { background: var(--ok); }
.interruptor input:checked::after { transform: translateX(18px); }

/* Cantidad − 1 + */
.cantidad { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; background: var(--fondo-3); }
.cantidad button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--titulo); transition: background-color .2s, transform .2s var(--ease-rebote); }
.cantidad button:hover { background: var(--fondo-2); }
.cantidad button:active { transform: scale(.88); }
.cantidad button:disabled { opacity: .3; cursor: default; }
.cantidad b { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; color: var(--titulo); }
.cantidad .ico { width: 18px; height: 18px; }

/* Etiquetas de producto (vegano, sin TACC, nuevo) */
.etq { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 99px; font: 700 11px/1 var(--f-texto); letter-spacing: .04em; text-transform: uppercase; background: var(--fondo-3); color: var(--titulo); }
.etq--vegano { background: var(--ok-suave); color: var(--ok-texto); }
.etq--nuevo { background: var(--acento-suave); color: var(--acento-texto, var(--acento)); }

/* ---------- Estado del pedido (se usa en la caja y en el panel) ---------- */
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.estado--nuevo { background: var(--alerta-suave); color: var(--alerta-texto); }
.estado--preparando { background: var(--acento-suave); color: var(--acento-texto, var(--acento)); }
.estado--listo { background: var(--ok-suave); color: var(--ok-texto); }
.estado--entregado { background: var(--fondo-3); color: var(--texto-2); }
.estado--cancelado { background: var(--peligro-suave); color: var(--peligro); }

/* =====================================================================
   FIRMA DE MAKE IT EASY (el bloque antes del pie, lo arma firma.js)
   Tiene los colores y la letra de Make it Easy, no los de la cafetería:
   es la firma de quien hizo la demo.
   ===================================================================== */
.firma {
  --mie-fondo: #0E131A; --mie-cobre: #E0A574; --mie-texto: #C9D2DD;
  position: relative; z-index: 2; overflow: hidden; background: var(--mie-fondo); color: #fff; /* por encima de cualquier velo o fondo fijo del tema */
  padding: clamp(44px, 7vw, 84px) var(--margen);
  background-image: radial-gradient(60% 90% at 8% 20%, rgba(74, 134, 228, .22), transparent 60%), radial-gradient(50% 80% at 100% 100%, rgba(196, 121, 74, .18), transparent 60%);
}
.wrap .firma { border-radius: 26px; margin-top: 46px; }
.firma__adentro { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.firma__marca { display: grid; justify-items: center; gap: 12px; text-decoration: none; color: #fff; }
.firma .mie-logo { width: clamp(120px, 15vw, 190px); height: auto; display: block; overflow: visible; filter: drop-shadow(0 18px 30px rgba(74, 134, 228, .35)); }
.firma__nombre { font: 500 clamp(22px, 2.4vw, 28px)/1 "Fraunces", Georgia, serif; letter-spacing: -.01em; text-align: center; }
.firma__nombre small { display: block; margin-top: 6px; font: 600 12px/1 "Inter", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mie-cobre); }
.firma h2 { font: 500 clamp(28px, 3.8vw, 48px)/1.06 "Fraunces", Georgia, serif; letter-spacing: -.025em; color: #fff; text-transform: none; max-width: 22ch; text-wrap: balance; }
.firma p { margin-top: 14px; font: 400 17px/1.6 "Inter", system-ui, sans-serif; color: var(--mie-texto); max-width: 54ch; }
.firma__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.firma__boton { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 99px; background: var(--mie-cobre); color: #0E131A; font: 700 16px/1 "Inter", system-ui, sans-serif; text-decoration: none; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); transition: transform .25s var(--ease-rebote), background-color .2s; }
.firma__boton:hover { background: #EDBB90; transform: translateY(-2px); }
.firma__boton .ico { width: 22px; height: 22px; }
.firma__link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 15px/1 "Inter", system-ui, sans-serif; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 4px; }
.firma__link:hover { border-color: var(--mie-cobre); color: var(--mie-cobre); }
.firma__link .ico { width: 16px; height: 16px; }
.firma :focus-visible { outline-color: var(--mie-cobre); }
@media (max-width: 720px) {
  .firma__adentro { grid-template-columns: 1fr; justify-items: start; }
  .firma__marca { grid-template-columns: auto auto; align-items: center; justify-items: start; gap: 14px; }
  .firma .mie-logo { width: 84px; }
  .firma__nombre { text-align: left; }
}
/* El pie queda chico: la firma ya dijo quién la hizo */
.pie .hecho-por { display: none; }

/* ---------- El logo vivo: primero se arma, después queda con pulsos ---------- */
.mie-logo .pieza { transform-box: fill-box; transform-origin: center; opacity: 0; animation-fill-mode: forwards; animation-duration: .62s; animation-timing-function: cubic-bezier(.22, .9, .3, 1); animation-delay: calc(var(--t) * .105s + .15s); }
.mie-logo.animar .lobulo { animation-name: mie-brotar; }
.mie-logo.animar .brillo { animation-name: mie-asomar; animation-duration: 1.1s; }
.mie-logo.animar .chip, .mie-logo.animar .borde { animation-name: mie-caer; transform-origin: 50% 0; }
.mie-logo.animar .letra { animation-name: mie-sellar; }
.mie-logo.animar .punto { animation-name: mie-brotar; animation-duration: .5s; }
.mie-logo.animar .pata { opacity: 0; stroke-dasharray: 100; stroke-dashoffset: 100; animation-name: mie-trazar; animation-duration: .55s; animation-timing-function: ease-out; }
@keyframes mie-brotar { from { opacity: 0; transform: scale(.3); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes mie-asomar { to { opacity: 1; } }
@keyframes mie-caer { from { opacity: 0; transform: translateY(-14%) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes mie-sellar { from { opacity: 0; transform: translateY(16%) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes mie-trazar { from { opacity: 1; stroke-dashoffset: 100; } to { opacity: 1; stroke-dashoffset: 0; } }
.mie-logo .pulso { opacity: 0; stroke-dasharray: 11 89; }
.mie-logo.animar .pulso { animation: mie-correr 2.9s linear infinite; animation-delay: calc(2.5s + var(--p) * .22s); }
@keyframes mie-correr { 0% { opacity: 0; stroke-dashoffset: 100; } 8% { opacity: .95; } 38% { opacity: .95; stroke-dashoffset: 0; } 46%, 100% { opacity: 0; stroke-dashoffset: 0; } }
.mie-logo .halo { opacity: 0; transform-box: fill-box; transform-origin: center; stroke-width: 1.6; }
.mie-logo.animar .halo { animation: mie-llega 2.9s ease-out infinite; animation-delay: calc(3.55s + var(--p) * .22s); }
@keyframes mie-llega { 0% { opacity: .85; transform: scale(1); stroke-width: 1.8; } 34% { opacity: 0; transform: scale(2.6); stroke-width: .4; } 100% { opacity: 0; transform: scale(2.6); } }
.mie-logo.animar .respira { animation: mie-asomar 1.1s cubic-bezier(.22, .9, .3, 1) calc(9 * .105s + .15s) forwards, mie-respirar 7s ease-in-out 3s infinite; }
@keyframes mie-respirar { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
.mie-logo.animar .late { animation: mie-caer .62s cubic-bezier(.22, .9, .3, 1) calc(7 * .105s + .15s) forwards, mie-latir 3.4s ease-in-out 3.2s infinite; }
@keyframes mie-latir { 0%, 100% { stroke-opacity: .5; } 50% { stroke-opacity: .95; } }
/* Sin animación: el logo se ve entero y quieto */
.mie-logo.quieto .pieza { opacity: 1; animation: none !important; }
.mie-logo.quieto .pulso, .mie-logo.quieto .halo { display: none; }
@media (prefers-reduced-motion: reduce) { .mie-logo .pieza { opacity: 1; animation: none !important; } .mie-logo .pata { stroke-dashoffset: 0; } .mie-logo .pulso, .mie-logo .halo { display: none; } }
