/* Sistema visual del sitio para clientes, sacado del menú impreso nuevo.
   Negro tinta en barra y pie, fondo ámbar desenfocado, títulos Montserrat gruesa en mayúsculas
   gris perla, tarjetas oscuras translúcidas con la foto del platillo saliendo arriba, sello 2x1.
   El rojo solo marca la acción principal. Cada pantalla usa estas piezas y agrega solo lo suyo.

   Las piezas de contenido (.s-*) aplican en páginas con la clase s-pagina en <body>;
   la barra y el pie ya son los nuevos en todas. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-normal-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-normal-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-normal-800.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-italic-300.woff2") format("woff2"); }

:root {
  --s-tinta: #0A0B10;
  --s-tinta-2: #14151C;
  --s-tarjeta: rgba(30, 25, 21, .74);
  --s-tarjeta-hover: rgba(42, 35, 29, .88);
  --s-panel: rgba(16, 14, 13, .8);
  --s-rojo: #E5262C;
  --s-rojo-hondo: #B71C1C;
  --s-perla: #E9E6E1;
  --s-ok: #4ADE80;
  --s-aviso: #FBBF24;
  --s-texto: #FFFFFF;
  --s-texto-2: rgba(255, 255, 255, .76);
  --s-texto-3: rgba(255, 255, 255, .56);
  --s-linea: rgba(255, 255, 255, .12);
  --s-marco: rgba(255, 255, 255, .3);
  --s-radio: 14px;
  --s-radio-sm: 10px;
  --s-letra: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s-ease-out: cubic-bezier(.23, 1, .32, 1);
  --s-ease-hoja: cubic-bezier(.32, .72, 0, 1);
  --s-foco: 0 0 0 3px #fff, 0 0 0 6px rgba(229, 38, 44, .6);
  --s-ancho: 1240px;
  --nav-h: 68px;
}

/* ---------- Barra (todas las páginas) ---------- */
.s-barra { position: fixed; inset: 0 0 auto; z-index: 1000; background: var(--s-tinta); border-bottom: 1px solid var(--s-linea); font-family: var(--s-letra); transition: box-shadow .25s ease; }
.s-barra.nav--scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.s-barra__fila { max-width: var(--s-ancho); height: var(--nav-h); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.s-marca { display: flex; flex: none; border-radius: 6px; }
.s-marca img { height: 40px; width: auto; }
.s-links { display: flex; gap: 2px; margin-left: auto; }
.s-links a { padding: 10px 12px; border-radius: 999px; color: var(--s-texto-2); font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.s-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.s-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.s-barra__extra { display: flex; align-items: center; gap: 10px; }
.s-idioma select { height: 38px; padding: 0 8px; border: 1px solid var(--s-linea); border-radius: 999px; background: transparent; color: var(--s-texto-2); font: 600 .78rem var(--s-letra); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.s-idioma select:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.s-idioma option { color: #000; }
.s-hamburguesa { display: none; width: 44px; height: 44px; padding: 12px 11px; border: 1px solid var(--s-linea); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; justify-content: space-between; }
.s-hamburguesa span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--s-ease-out), opacity .2s ease; }
.s-hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.s-hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.s-hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.s-movil { display: none; }
.s-barra a:focus-visible, .s-barra button:focus-visible, .s-barra select:focus-visible { outline: none; box-shadow: var(--s-foco); }

/* ---------- Pie (todas las páginas) ---------- */
.s-pie { position: relative; z-index: 1; background: var(--s-tinta); border-top: 1px solid var(--s-linea); color: var(--s-texto-2); font-family: var(--s-letra); }
.s-pie__fila { max-width: var(--s-ancho); margin: 0 auto; padding: 48px 20px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.s-pie__marca img { width: 150px; height: auto; }
.s-pie__marca p { margin: 14px 0 0; max-width: 32ch; font-size: .88rem; line-height: 1.55; }
.s-pie__redes { color: var(--s-texto-3); }
.s-pie nav { display: grid; align-content: start; gap: 10px; }
.s-pie h2 { margin: 0 0 4px; color: var(--s-perla); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.s-pie nav a { width: fit-content; color: var(--s-texto-2); font-size: .9rem; text-decoration: none; border-radius: 4px; transition: color .2s ease; }
.s-pie nav a:hover { color: #fff; }
.s-pie a:focus-visible { outline: none; box-shadow: var(--s-foco); }
.s-pie__derechos { max-width: var(--s-ancho); margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid var(--s-linea); color: var(--s-texto-3); font-size: .8rem; }

@media (max-width: 1023px) {
  .s-links { display: none; }
  .s-barra__extra { margin-left: auto; }
  .s-hamburguesa { display: flex; }
  .s-movil { display: grid; max-height: 0; overflow: hidden; padding: 0 20px; background: var(--s-tinta); transition: max-height .3s var(--s-ease-out), padding .3s var(--s-ease-out); }
  .s-movil.active { max-height: 480px; padding: 8px 20px 18px; border-top: 1px solid var(--s-linea); }
  .s-movil a { padding: 14px 4px; border-bottom: 1px solid var(--s-linea); color: #fff; font-size: 1rem; font-weight: 500; text-decoration: none; }
  .s-pie__fila { grid-template-columns: 1fr 1fr; }
  .s-pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .s-barra__pedir { display: none; } }

/* ---------- Página con el estilo nuevo ---------- */
body.s-pagina { background: var(--s-tinta); color: var(--s-texto); font-family: var(--s-letra); -webkit-font-smoothing: antialiased; }
.s-pagina .main { position: relative; isolation: isolate; min-height: 70vh; }
.s-pagina .main::before { content: ""; position: fixed; inset: -60px; z-index: -1; background: url("../img/sitio/fondo-ambar.webp") center / cover; filter: blur(44px) saturate(1.2) brightness(.6); transform: scale(1.1); }
.s-envoltura { max-width: var(--s-ancho); margin: 0 auto; padding: 0 20px; }
.s-seccion { padding-block: 40px; }
.s-pagina :is(a, button, input, select, textarea, summary):focus-visible { outline: none; box-shadow: var(--s-foco); }

/* Títulos como los de la carta */
.s-titulo { margin: 0; color: var(--s-perla); font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.s-titulo--chico { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.s-cabeza { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--s-marco); }
.s-cabeza__extra { margin-left: auto; }
.s-texto { max-width: 60ch; margin: 12px 0 0; color: var(--s-texto-2); font-size: 1.02rem; line-height: 1.6; }

/* Sello "2x1 PRECIO" del menú */
.s-sello { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 9px; background: var(--s-perla); color: var(--s-tinta); font-size: 1.15rem; font-weight: 800; line-height: 1; }
.s-sello small { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .42rem; letter-spacing: .1em; }

/* Botones: uno rojo por pantalla, el resto en borde */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font: 600 .95rem var(--s-letra); text-decoration: none; cursor: pointer; transition: transform 160ms var(--s-ease-out), background-color .2s ease, border-color .2s ease, color .2s ease; }
.s-btn:active { transform: scale(.97); }
.s-btn--rojo { background: var(--s-rojo); color: #fff; }
.s-btn--rojo:hover { background: var(--s-rojo-hondo); }
.s-btn--borde { border-color: var(--s-marco); background: rgba(10, 11, 16, .3); color: #fff; }
.s-btn--borde:hover { border-color: #fff; background: rgba(10, 11, 16, .5); }
.s-btn--perla { background: var(--s-perla); color: var(--s-tinta); }
.s-btn--perla:hover { background: #fff; }
.s-btn--chico { min-height: 38px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.s-btn[disabled], .s-btn[aria-disabled="true"] { background: rgba(255, 255, 255, .12); border-color: transparent; color: var(--s-texto-3); cursor: not-allowed; transform: none; }
.s-barra .s-btn { min-height: 40px; padding: 0 18px; }

/* Tarjeta con la foto del platillo saliendo por arriba */
.s-tarjeta { position: relative; display: flex; flex-direction: column; border: 1px solid var(--s-linea); border-radius: var(--s-radio); background: var(--s-tarjeta); color: #fff; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, transform .25s var(--s-ease-out); }
.s-tarjeta--foto { padding: 74px 16px 16px; margin-top: 40px; }
.s-tarjeta--foto > img { position: absolute; left: 50%; top: -44px; width: 180px; height: 116px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); transition: transform .35s var(--s-ease-out); }
a.s-tarjeta:hover, .s-tarjeta--viva:hover { background: var(--s-tarjeta-hover); border-color: rgba(255, 255, 255, .24); transform: translateY(-2px); }
a.s-tarjeta:hover > img, .s-tarjeta--viva:hover > img { transform: translateX(-50%) translateY(-4px) rotate(-3deg); }
a.s-tarjeta:active { transform: translateY(0) scale(.99); }
.s-tarjeta h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.s-tarjeta p { margin: 4px 0 0; color: var(--s-texto-2); font-size: .85rem; line-height: 1.45; }
.s-panel { border: 1px solid var(--s-marco); border-radius: var(--s-radio); background: var(--s-panel); backdrop-filter: blur(12px); }

/* Pie de foto del menú: nombre en itálica con línea y punto */
.s-pie-foto { display: inline-flex; align-items: center; gap: 8px; color: var(--s-texto-2); font-size: .85rem; font-style: italic; font-weight: 300; }
.s-pie-foto::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pie-foto::after { content: ""; width: 36px; height: 1px; background: var(--s-texto-3); }

/* Campos */
.s-campo { display: grid; gap: 6px; }
.s-campo label { color: var(--s-texto-2); font-size: .85rem; font-weight: 600; }
.s-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--s-linea); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font: 500 1rem var(--s-letra); transition: border-color .2s ease, background-color .2s ease; }
textarea.s-input { min-height: 120px; padding: 12px 14px; resize: vertical; }
.s-input::placeholder { color: var(--s-texto-3); }
.s-input:hover { border-color: rgba(255, 255, 255, .3); }
.s-input:focus { background: rgba(255, 255, 255, .1); }
.s-input[disabled] { opacity: .5; cursor: not-allowed; }
.s-input[aria-invalid="true"] { border-color: var(--s-rojo); }
.s-error { color: #FCA5A5; font-size: .82rem; }

/* Avisos */
.s-aviso { padding: 12px 16px; border: 1px solid var(--s-linea); border-radius: 12px; background: var(--s-panel); color: var(--s-texto-2); font-size: .9rem; }
.s-aviso--ok { border-color: rgba(74, 222, 128, .4); color: #BBF7D0; }
.s-aviso--error { border-color: rgba(229, 38, 44, .5); color: #FECACA; }

/* Aparecer al bajar (una vez). Sin JS se ve todo. */
.s-aparece { transition: opacity .5s var(--s-ease-out), transform .5s var(--s-ease-out); }
.js-aparece .s-aparece:not(.s-visto) { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  .s-barra *, .s-pie *, .s-pagina *, .s-pagina *::before, .s-pagina *::after { transition-duration: 0s !important; animation: none !important; }
  .js-aparece .s-aparece:not(.s-visto) { opacity: 1; transform: none; }
}
