/* Control de Mi Restaurante · landing
 *
 * La estética común de las landings de la familia (Negocio, Biber Taller y
 * Lehreer): neutros de la guía (SISTEMA-DE-DISENO.md §2), Montserrat a 600
 * como máximo, 1152 de ancho, fondos que alternan blanco y gris, tarjetas con
 * borde y sin sombra, botones en píldora, hero quieto, sin degradados ni
 * animaciones. El color es el Girasol: el amarillo solo como relleno, con
 * letra #221A00 encima; el texto de acento va en ocre (#7A5C00).
 */

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

:root {
  color-scheme: light;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface2: #EEF0F3;
  --field: #F3F4F7;
  --line: #E1E3E8;
  --line-strong: #CDD0D7;
  --text: #15161A;
  --muted: #6A6D76;
  --accent: #FFD23F;
  --on-accent: #221A00;
  --ink: #7A5C00;
  --soft: #FFF7D6;
  --ok-bg: #E8F5EE;
  --ok-fg: #1E6B4B;
  --bad: #B42318;
  --nav-bg: rgba(255, 255, 255, .95);
  --bezel: #0E0F12;
  --max: 1152px;
  --pad: 24px;
  --btn: 44px;
}

.dark {
  color-scheme: dark;
  --bg: #0E0F12;
  --surface: #17181D;
  --surface2: #1F2127;
  --field: #1B1D22;
  --line: #2A2C33;
  --line-strong: #3A3D45;
  --text: #ECEDF0;
  --muted: #9A9DA6;
  --accent: #FFC933;
  --ink: #FFC933;
  --soft: #2A2412;
  --ok-bg: #12291F;
  --ok-fg: #7FD3A8;
  --bad: #F97066;
  --nav-bg: rgba(23, 24, 29, .95);
  --bezel: #000000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
svg.i { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: 96px 0; }
.sec--surface { background: var(--surface); }
.sec--gray { background: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--surface); }
.skip:focus { left: 8px; }

/* Botones: 44 en escritorio, 48 en pantallas táctiles (guía, «Botones en la web»). */
.btn {
  height: var(--btn);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { filter: brightness(.96); }
.btn--ink { background: #15161A; color: #FFFFFF; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--line-strong); }
.btn:disabled { background: var(--surface2); color: var(--muted); cursor: default; filter: none; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Barra */
.nav { position: sticky; top: 0; z-index: 20; height: 64px; background: var(--nav-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; overflow: hidden; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__links { display: flex; gap: 28px; margin-right: 8px; font-size: 14px; font-weight: 600; }
.nav__links a { color: var(--muted); text-decoration: none; }
.nav__links a:hover { color: var(--text); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: none; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface2); }
.dark .i-moon, :root:not(.dark) .i-sun { display: none; }

.lang { position: relative; }
.lang > summary { list-style: none; height: 36px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary .i { color: var(--muted); }
.lang__menu { position: absolute; right: 0; top: 44px; width: 184px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); display: flex; flex-direction: column; gap: 2px; z-index: 30; }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.lang__menu a:hover, .lang__menu a[aria-current] { background: var(--surface2); }
.flag { width: 20px; height: 20px; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex-shrink: 0; }

.menu { display: none; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu:not([open]) .i-x, .menu[open] .i-menu { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: flex; flex-direction: column; }
.menu__panel a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; text-decoration: none; }
.menu__panel .btn { margin-top: 16px; height: 48px; }

/* Aviso de idioma, como en Negocio: sugiere, nunca redirige. */
.lang-hint { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); font-size: 14px; font-weight: 600; white-space: nowrap; }
.lang-hint a { color: var(--ink); }
.lang-hint[hidden] { display: none; }

/* Hero */
.hero { background: var(--surface); }
.hero .wrap { padding-top: 88px; padding-bottom: 80px; display: flex; align-items: center; gap: 56px; }
.hero__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 560px; }
.form { display: flex; gap: 12px; width: 100%; max-width: 520px; }
.form input { flex: 1 1 0; min-width: 0; height: var(--btn); padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); color: var(--text); font-size: 16px; font-weight: 500; outline: none; }
.form input::placeholder { color: var(--muted); }
.form input:focus { border-color: var(--ink); }
.form-note { font-size: 14px; color: var(--muted); margin: -8px 0 0; }
.form-msg { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; font-size: 15px; font-weight: 600; max-width: 520px; }
.form-msg--ok { background: var(--ok-bg); color: var(--ok-fg); }
.form-msg--bad { color: var(--bad); padding: 0; }
.form-msg[hidden] { display: none; }

.shots { flex: 0 0 auto; position: relative; width: 540px; aspect-ratio: 540 / 548; }
.shot { position: absolute; overflow: hidden; border: 7px solid var(--bezel); box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); background: #FFFFFF; }
/* La pantalla va en una caja con su misma proporción y el marco por fuera
   (content-box): con border-box el marco se comía espacio por dentro y
   object-fit recortaba la captura por los lados (Juan, 21-oct-2026). */
.shot { box-sizing: content-box; }
.shot img { width: 100%; height: 100%; object-fit: contain; }
.shot--tablet { left: 0; top: 6%; width: calc(88% - 14px); aspect-ratio: 1194 / 834; border-radius: 18px; }
.shot--phone { right: 0; bottom: 0; width: calc(44% - 14px); aspect-ratio: 390 / 844; border-radius: 34px; }

/* Datos */
.facts { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.fact { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.tile { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile--lg { width: 48px; height: 48px; }

/* Encabezado de sección */
.head { display: flex; flex-direction: column; gap: 12px; max-width: 672px; margin-bottom: 48px; }
.head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
h2 { margin: 0; font-size: clamp(30px, 3.2vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.sub { margin: 0; font-size: 18px; color: var(--muted); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card:hover { border-color: var(--line-strong); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.step__n { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step__where { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }

.kds { max-width: 974px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 7px solid var(--bezel); box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }

/* Preguntas: <details>, la respuesta siempre en el HTML. */
.faq { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.faq .head { margin-bottom: 0; position: sticky; top: 96px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.qa > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 600; cursor: pointer; }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary .i { color: var(--muted); transition: transform .15s; }
.qa[open] > summary .i { transform: rotate(180deg); }
.qa p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--muted); }

/* Llamada final: el amarillo en los dos temas, con su letra oscura. */
.cta { background: var(--accent); color: var(--on-accent); }
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta img { width: 64px; height: 64px; border-radius: 16px; }
.cta h2 { max-width: 672px; }
.cta p { margin: 0; font-size: 18px; max-width: 560px; }

.foot { background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__cols { padding-top: 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot__col b { font-weight: 600; color: var(--text); }
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: var(--text); }
.foot__col button { padding: 0; border: none; background: none; color: inherit; cursor: pointer; font-size: 14px; }
.foot__brand { color: var(--text); font-size: 15px; }
.foot__tag { max-width: 280px; }
.foot__bottom { margin-top: 32px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 13px; }

/* Consentimiento de analítica, opt-in, como Negocio: rechazar con el mismo peso. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 16px; }
.consent[hidden] { display: none; }
.consent__box { max-width: 768px; margin: 0 auto; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.consent__box b { font-weight: 600; }
.consent__box p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.consent__actions { margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 960px) {
  .hero .wrap { flex-direction: column; text-align: center; gap: 48px; }
  .hero__text { align-items: center; }
  .shots { width: min(540px, 100%); }
  .facts .wrap, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
  .faq .head { position: static; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .menu { display: block; }
  .brand { font-size: 15px; }
}
@media (max-width: 600px), (pointer: coarse) {
  :root { --btn: 48px; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .sec { padding: 64px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .form { flex-direction: column; }
  .form input { flex: none; width: 100%; }
  .form .btn { width: 100%; }
  .facts .wrap, .grid3 { grid-template-columns: 1fr; }
  .consent__actions { flex-direction: column-reverse; }
  .consent__actions .btn { width: 100%; }
  .lang-hint { white-space: normal; width: calc(100% - 32px); border-radius: 16px; }
}
