/* =====================================================================
   ESTILOS COMPARTIDOS (los 2 centros de estética 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
   centro. Para cambiar el look, tocá tema.css, no este archivo.
   ===================================================================== */

:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-rebote: cubic-bezier(.2, .9, .3, 1.35);
  --margen: clamp(16px, 4vw, 56px);
  --ancho: 1328px;
  /* margen lateral que alinea cabecera, portada y secciones a cualquier ancho */
  --lado: max(var(--margen), calc((100vw - var(--ancho)) / 2));
}

*, *::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;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
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); }
: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; }

/* 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;
}
.num { font-variant-numeric: tabular-nums; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; 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;
  -webkit-tap-highlight-color: transparent; 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; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--lado); background: var(--cabecera-fondo, var(--fondo));
  border-bottom: 1px solid var(--linea);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-titulo); font-weight: var(--t-peso); text-transform: var(--t-mayus); letter-spacing: var(--marca-espaciado, .01em); font-size: var(--marca-tam, 26px); line-height: 1; color: var(--titulo); }
.marca em { font-style: normal; color: var(--acento); }
.cabecera nav { display: flex; align-items: center; gap: 6px; }
.cabecera nav a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--texto-2); font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s; }
.cabecera nav a:not(.btn):hover { color: var(--titulo); background: var(--fondo-3); }
.cabecera nav a[aria-current="page"] { color: var(--titulo); }
@media (max-width: 760px) {
  .cabecera { padding-top: 10px; padding-bottom: 10px; }
  .cabecera nav a.solo-pc:not(.btn), .cabecera .btn .solo-pc { display: none; }
  .cabecera nav a:not(.btn) { padding: 0 10px; }
  .cabecera nav { gap: 2px; }
  .cabecera .btn { min-height: 44px; padding: 0 14px; }
  /* el nombre se apila en dos renglones, como un logo */
  .marca { flex-direction: column; align-items: flex-start; gap: 0; font-size: calc(var(--marca-tam, 26px) * .82); line-height: .92; }
}

/* ---------- Chapa de promo ---------- */
.chapa {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start;
  background: var(--chapa-fondo, var(--fondo-2)); color: var(--texto);
  border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px 18px;
  text-decoration: none;
}
.chapa__sello {
  grid-row: span 3; align-self: stretch; display: grid; place-items: center;
  background: var(--acento); color: var(--sobre-acento); border-radius: calc(var(--radio) - 4px);
  font: var(--t-peso) 14px/1 var(--f-titulo); text-transform: uppercase; letter-spacing: .1em;
  padding: 10px 8px; writing-mode: vertical-rl; transform: rotate(180deg); min-height: 64px;
}
.chapa__titulo { font-size: 23px; text-wrap: balance; }
.chapa__detalle { font-size: 14px; color: var(--texto-2); }
.chapa__precio { font: var(--t-peso) 26px/1.1 var(--f-titulo); color: var(--acento); }
.chapa__precio s, .precio-antes { font-size: .6em; opacity: .6; font-weight: 500; margin-left: 4px; }

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

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

/* 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: 24px; z-index: 100; transform: translate(-50%, 20px);
  background: var(--titulo); color: var(--fondo); padding: 14px 20px; border-radius: 12px;
  font-weight: 600; 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);
}
.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(8, 6, 5, .62); 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: 90px; 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); }

/* =====================================================================
   PROFESIONALES: circulito con iniciales
   ===================================================================== */
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--c, var(--acento)); color: #fff; font: 700 14px/1 var(--f-texto); letter-spacing: .02em; }
.avatar .ico { width: 20px; height: 20px; }
.avatar--todas { background: var(--fondo-3); color: var(--titulo); }
.avatar--mini { width: 22px; height: 22px; font-size: 10px; }

.leyenda { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--texto-2); }
.leyenda span { display: inline-flex; align-items: center; gap: 7px; }
.leyenda i { width: 16px; height: 16px; border-radius: 4px; background: var(--fondo-3); border: 1.5px solid var(--linea-2); }
.leyenda i.l-confirmada { background: var(--ok); border-color: var(--ok); }
.leyenda i.l-pendiente { background: var(--alerta); border-color: var(--alerta); }
.leyenda i.l-llego { background: var(--titulo); border-color: var(--titulo); }

/* Brillo que corre (lo usan la barra de categorías y algunos temas) */
@keyframes fuego { to { background-position: -200% 0; } }
.hoja.sin-anim[open] { animation: none; }
::view-transition-group(foto-plato) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(foto-plato), ::view-transition-new(foto-plato) { height: 100%; object-fit: cover; }

/* En el celular, el link de la carta se ve como palabra (sin ícono) */
@media (max-width: 760px) { .cabecera nav a:not(.btn) .ico { display: none; } .cabecera nav a:not(.btn) { padding: 0 8px; font-size: 15px; } }
/* Celulares angostos: el botón Reservar sin ícono para que entre todo en la cabecera */
@media (max-width: 420px) { .cabecera .btn .ico { display: none; } .cabecera .btn { padding: 0 14px; } .cabecera { gap: 8px; } }

/* La promo sin sello: una sola columna */
.chapa { grid-template-columns: 1fr; }
.chapa__detalle b { color: inherit; font-weight: 800; }
