/* Diseño de la web restaurantejuanmoreno.es (spec 022, RF-1): Montserrat, naranja de los botones, crema y negros.
   Siempre en claro (RF-2): la web no tiene modo oscuro. */
:root {
  --ink: #21201F;
  --ink-2: #373532;
  --muted: #8C8578;
  --paper: #FFFFFF;
  --ground: #FEF5ED;
  --line: #E2D9CC;
  --line-strong: #C9C2B7;
  --accent: #F5A340;
  --accent-hover: #FF8C00;
  --accent-soft: #FEF5ED;
  --danger: #9B3B2B;
  --radius: 4px;
  --pill: 30px;
  --font: "Montserrat", system-ui, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* Fondo transparente: dentro de la web se ve el de su sección; suelto, blanco. */
body { margin: 0; background: transparent; color: var(--ink); font: 16px/1.55 var(--font); padding: 16px; }
main { max-width: 560px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
h1 { font-size: 26px; font-weight: 400; letter-spacing: -.01em; margin: 0; color: #000000; }
h2 { font-size: 13px; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
p { margin: 0; }
.loading { color: var(--ink-2); }
.langs { display: flex; gap: 6px; justify-content: flex-end; }
.langs button { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: var(--pill); padding: 3px 11px; font: 600 12px var(--font); letter-spacing: .08em; cursor: pointer; }
.langs button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #000000; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink-2); }
label > span { font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 12px; min-height: 48px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 76px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.section { display: flex; flex-direction: column; gap: 10px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.times button { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: var(--pill); font-family: var(--font); min-height: 48px; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; }
.times button:hover { border-color: var(--accent); }
.times button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #000000; font-weight: 700; }
.svc { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 14px; }
.check > span { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.check input { flex: none; width: 20px; height: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--accent); }
/* Botón principal como los de la web: naranja, Montserrat 700, mayúsculas y esquinas redondeadas. */
button.send { background: var(--accent); color: #000000; border: 1px solid var(--accent); border-radius: var(--pill); min-height: 52px; font: 700 16px/1 var(--font); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; width: 100%; transition: background-color 140ms ease; }
button.send:hover:not([disabled]) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.send[disabled] { opacity: .55; cursor: default; }
.msg { border-radius: var(--radius); padding: 12px 14px; font-size: 15px; border-left: 3px solid var(--accent); }
.msg.bad { background: #FEF5ED; color: var(--danger); border-left-color: var(--danger); }
.msg.info { background: var(--accent-soft); }
.hint { font-size: 13px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: flex; flex-direction: column; gap: 14px; }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.done dt { color: var(--muted); font-size: 14px; }
.done dd { margin: 0; font-weight: 600; }
a { color: #A56B42; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Cumpleaños y aniversario, opcionales (spec 008, RF-14). */
.celebrate { display: flex; flex-direction: column; gap: 10px; }
.annual { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink-2); }
.annual > span { font-weight: 600; }
.row3 { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }

/* Teléfono con selector de país (spec 008, RF-15). */
.phone-row { display: flex; gap: 6px; }
.phone-row .phone-cc { flex: 0 0 7.5em; width: 7.5em; padding-right: 4px; }
.phone-row input { flex: 1; min-width: 0; }
