/* Hamburguesas Olivo — estilo urbano cálido
   Fuentes: autoalojar Anton (display) y DM Sans (texto) en /fonts como woff2 [PENDIENTE] */
@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --color-primary: #3E4A2E;   /* oliva */
  --color-accent: #F2A516;    /* mostaza */
  --color-accent-dark: #D98E00;
  --color-ink: #17150F;
  --color-bg: #FFF8EC;
  --color-surface: #FFFFFF;
  --color-muted: #5C584C;
  --color-line: #EADFC8;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px; --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(23,21,15,.06), 0 2px 8px rgba(23,21,15,.06);
  --shadow-2: 0 10px 28px rgba(23,21,15,.14);
  --ease: 180ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6; color: var(--color-ink); background: var(--color-bg); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-accent-dark); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 16px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 8px; top: -48px; background: var(--color-ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { top: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background var(--ease), transform var(--ease); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--accent { background: var(--color-accent); color: var(--color-ink); }
.btn--accent:hover { background: var(--color-accent-dark); }
.btn--ghost { border-color: currentColor; background: transparent; color: var(--color-ink); }
.btn--ghost:hover { background: rgba(23,21,15,.06); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.cart-count { background: var(--color-ink); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,248,236,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { font-family: var(--font-display); font-size: 1.75rem; color: var(--color-primary); text-decoration: none; margin: 0; letter-spacing: .02em; }
.logo span { font-family: var(--font-text); font-weight: 700; font-size: .9rem; color: var(--color-accent-dark); margin-left: 4px; }
.footer .logo { color: #fff; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; padding: 8px 0; }
.nav a:not(.btn):hover { color: var(--color-primary); }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--color-ink); margin: 5px 0; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-line); padding: 8px 24px 24px; display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--color-line); }
  .nav .btn { margin-top: 16px; }
  .no-js .nav { display: flex; position: static; }
}

.hero { padding: 48px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--color-primary); margin-bottom: 12px; }
.section--dark .eyebrow { color: var(--color-accent); }
.lead { font-size: 1.2rem; color: var(--color-muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; font-size: .95rem; }
.hero__trust li::before { content: "✓ "; color: var(--color-primary); }
.hero__media { margin: 0; }
.ph { display: grid; place-items: center; text-align: center; padding: 16px; color: #FFF8EC; font-size: .9rem; background: radial-gradient(circle at 30% 30%, #F2A516, #B5531C 55%, #3E4A2E); }
.ph--hero { aspect-ratio: 1; border-radius: 50% 50% var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-2); }
.ph--product, .ph--branch { aspect-ratio: 4/3; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

.trust { background: var(--color-primary); color: #fff; padding: 32px 0; }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 auto; }
.trust__list li { display: flex; flex-direction: column; }
.trust__list strong { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--color-accent); }
@media (max-width: 700px) { .trust__list { grid-template-columns: repeat(2, 1fr); } }

.section { padding: 80px 0; }
.section--alt { background: var(--color-surface); border-block: 1px solid var(--color-line); }
.section--dark { background: var(--color-ink); color: #F4EEDF; }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head p:last-child:not(.eyebrow) { color: var(--color-muted); }
.section--dark .section__head p:last-child:not(.eyebrow) { color: #CFC8B6; }

.products { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.product { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform var(--ease), box-shadow var(--ease); }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.product__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product__body p { color: var(--color-muted); font-size: .98rem; }
.allergens { font-size: .85rem !important; }
.product__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-weight: 700; font-size: 1.15rem; }
.price--big { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; color: var(--color-accent); margin: 16px 0 8px; }
.price small { font-family: var(--font-text); font-size: .85rem; color: #CFC8B6; }
.badge { align-self: flex-start; background: var(--color-accent); color: var(--color-ink); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge--green { background: var(--color-primary); color: #fff; }
.add.is-added { background: var(--color-primary); color: #fff; }

.combos { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.combo { border: 1px solid #3A372E; border-radius: var(--radius-lg); padding: 32px; background: #221F17; }
.combo--hl { border-color: var(--color-accent); }
.small { font-size: .9rem; color: #CFC8B6; }

.features { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature svg { width: 44px; height: 44px; fill: none; stroke: var(--color-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.feature p { color: var(--color-muted); }

.branches { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.branch { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.branch__body { padding: 24px; }
.branch__zone { color: var(--color-primary); font-weight: 700; margin-bottom: 4px; }
.branch__addr { font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 6px 8px; border-bottom: 1px dashed var(--color-line); }
.hours th { font-weight: 400; width: 40%; }
.hours tr.is-today { background: rgba(242,165,22,.2); font-weight: 700; }
.hours tr.is-today th::after { content: " · hoy"; }
.branch__cta { display: flex; flex-wrap: wrap; gap: 8px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 3rem; color: var(--color-accent-dark); line-height: 1; margin-bottom: 8px; }
.steps span { color: var(--color-muted); }

details { border-bottom: 1px solid var(--color-line); padding: 8px 0; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
details p { color: var(--color-muted); }

.order { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.order a { color: var(--color-accent); }
.form { background: var(--color-surface); color: var(--color-ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-2); }
.form a { color: var(--color-primary); }
.cart { list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid var(--color-line); border-radius: var(--radius); }
.cart li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--color-line); }
.cart li:last-child { border-bottom: 0; }
.cart__empty { color: var(--color-muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-line); background: var(--color-bg); font: inherit; font-weight: 700; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .95rem; }
input, select, textarea { font: inherit; min-height: 48px; padding: 10px 14px; border: 1px solid #B9AE93; border-radius: 12px; background: #fff; color: var(--color-ink); }
[aria-invalid="true"] { border-color: #B3261E; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 24px; font-size: .95rem; }
.check input { min-height: auto; width: 20px; height: 20px; margin-top: 3px; }
.form__status { margin: 16px 0 0; font-weight: 700; }
@media (max-width: 860px) { .order { grid-template-columns: 1fr; } }

.footer { background: #0E0D09; color: #D6CFBD; padding: 56px 0; font-size: .95rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 2fr 1.5fr 1fr; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }
.legal { padding: 64px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
