/*
 * Identidad visual: fondo gris plano, negro y un solo rojo de acento.
 * Titulares en Archivo condensada y gruesa, en mayúsculas; botones en píldora.
 * El lado público es expresivo (titulares gigantes, stickers); los paneles
 * (body.is-panel) usan la misma paleta en versión sobria.
 */
:root {
  --bg: #ededed;
  --bg-alt: #e2e2e2;
  --surface: #ffffff;
  --text: #0d0d0d;
  --muted: #5c5c5c;
  --border: #cfcfcf;
  --line: #0d0d0d;
  --red: #ff1e0b;        /* decorativo y textos grandes */
  --primary: #d91a08;    /* botones y textos pequeños en rojo (contraste AA con blanco) */
  --primary-dark: #b01405;
  --accent: #ff1e0b;
  --ok: #17803d;
  --warn: #a35a00;
  --danger: #c0190a;
  --whatsapp: #128c4a;
  --radius: 6px;
  --shadow: none;
  --font-display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 32px; } }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.1rem; color: var(--text); max-width: 52ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.85rem; font-weight: 800;
  font-stretch: 75%; color: var(--text); margin-bottom: 0.75em;
}
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section:not(.section-alt) + .section:not(.section-alt):not(.section-cta) { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.big-emoji { font-size: 4rem; margin: 0; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1.5px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand {
  font-family: var(--font-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: 1.7rem; line-height: 0.9; color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand sup { font-size: 0.45em; vertical-align: top; margin-left: 1px; color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a, .link-button {
  color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { box-shadow: inset 0 0 0 1.5px var(--line); }
.nav-links a.btn { color: #fff; background: var(--primary); margin-left: 8px; }
.nav-links a.btn:hover { background: var(--primary-dark); color: #fff; }
.nav-links a.btn-outline { color: var(--primary); background: transparent; box-shadow: inset 0 0 0 1.5px var(--primary); }
.nav-links a.btn-outline:hover { background: var(--primary); color: #fff; }
.nav-toggle, .nav-burger { display: none; }
.link-button { background: none; border: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
.link-button.danger { color: var(--danger); padding: 0; text-transform: none; font-stretch: 100%; font-weight: 600; font-size: inherit; }
form.inline { display: inline; margin: 0; }

@media (max-width: 860px) {
  .brand { font-size: 1.35rem; }
  .nav-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ''; position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--text);
  }
  .nav-burger span { top: 21px; }
  .nav-burger span::before { left: 0; right: 0; top: -8px; }
  .nav-burger span::after { left: 0; right: 0; top: 8px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1.5px solid var(--line); padding: 8px 16px 20px; gap: 4px;
  }
  .nav-links a, .nav-links .link-button { font-size: 1.6rem; font-stretch: 62%; font-weight: 900; padding: 6px 0; border-radius: 0; text-align: left; }
  .nav-links a.active { box-shadow: none; color: var(--primary); }
  .nav-links a.btn { margin: 12px 0 0; text-align: center; border-radius: 999px; padding: 12px; font-size: 1.1rem; font-stretch: 75%; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 24px; font: 800 1rem var(--font-body); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--text); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--whatsapp); }
.btn-whatsapp:hover { background: #0c6e39; }

/* Hero */
.hero { padding: 40px 0 0; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 24px; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 8.75rem); margin-bottom: 0.25em; }
.hero h1 .red { color: var(--red); }
.hero .lead { font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-art { display: flex; justify-content: center; position: relative; padding-bottom: 40px; }
.hero-photo {
  position: relative; width: min(460px, 100%); border: 3px solid #0d0d0d; border-radius: 18px; overflow: hidden;
  background: #0d0d0d; box-shadow: 10px 10px 0 var(--red);
  transform: perspective(900px) rotateX(calc(var(--my, 0) * -7deg)) rotateY(calc(var(--mx, 0) * 9deg)) rotate(-2deg);
  transition: transform 0.4s ease-out;
}
.hero-photo img { width: 100%; height: auto; display: block; animation: burger-zoom 14s ease-in-out infinite alternate; }
.steam { position: absolute; left: 28%; right: 28%; top: 0; height: 120px; display: flex; justify-content: space-around; z-index: 1; pointer-events: none; }
.steam span {
  width: 12px; height: 100%; border-radius: 12px; filter: blur(7px); opacity: 0;
  background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: steam 3.6s ease-in-out infinite;
}
.steam span:nth-child(2) { animation-delay: 1.2s; }
.steam span:nth-child(3) { animation-delay: 2.4s; }

.sticker {
  position: absolute; display: inline-grid; place-items: center; text-align: center;
  background: var(--red); color: #fff; border: 3px solid #0d0d0d; border-radius: 14px;
  padding: 10px 18px; font-family: var(--font-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  line-height: 0.9; box-shadow: 4px 4px 0 #0d0d0d; transform: rotate(-9deg); z-index: 2;
}
.sticker small { display: block; font-size: 0.85rem; font-stretch: 75%; letter-spacing: 0.04em; }
.sticker strong { display: block; font-size: 2.4rem; }
.sticker-price { top: 2%; right: 0; }
.sticker-dark { background: #0d0d0d; color: #fff; border-color: #0d0d0d; box-shadow: 4px 4px 0 var(--red); transform: rotate(6deg); }
.sticker-dates { bottom: 6px; left: 4%; }
.sticker-dates strong { font-size: 1.9rem; }

/* Patrocinadores: logos PNG sin fondo cargados por el administrador */
.sponsors { border-bottom: 1.5px solid var(--line); padding: 22px 0; background: var(--bg); }
.sponsors .container { display: flex; gap: 16px 40px; align-items: center; flex-wrap: wrap; }
.sponsors-label { font-size: 1.6rem; margin: 0; white-space: nowrap; }
.sponsors-logos { list-style: none; margin: 0; padding: 0; flex: 1 1 400px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 44px; }
.sponsors-logos li { display: flex; }
.sponsors-logos a { display: flex; }
.sponsors-logos img {
  height: 56px; width: auto; max-width: 170px; object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.sponsors-logos a:hover img, .sponsors-logos li:hover > img { transform: scale(1.08); }
@media (max-width: 560px) { .sponsors-logos { gap: 16px 28px; } .sponsors-logos img { height: 42px; max-width: 130px; } }

/* Stats */
.stats { padding: 0 0 24px; }
.sponsors + .stats .stats-grid { border-top: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1.5px solid var(--line); }
.stats-grid.compact { margin-top: 20px; }
.stat { padding: 20px 20px 22px 0; border-bottom: 1.5px solid var(--line); }
.stat + .stat { padding-left: 20px; border-left: 1.5px solid var(--line); }
.stat-value {
  display: block; font: 900 clamp(2.6rem, 5vw, 4.2rem)/0.95 var(--font-display); font-stretch: 62%;
  color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.stat-label { display: block; margin-top: 6px; color: var(--text); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
@media (max-width: 560px) {
  .stat + .stat { padding-left: 0; border-left: 0; }
}

/* Layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.2fr 1fr; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) {
  .hero-grid, .two-col, .two-col.wide-left { grid-template-columns: 1fr; }
  .hero-art { order: -1; padding-bottom: 8px; }
  .hero-photo { width: min(340px, 84%); }
  .sticker strong { font-size: 1.7rem; }
  .sticker-price { top: 0; right: 0; }
  .sticker-dates { bottom: 0; }
  .sticker-dates strong { font-size: 1.4rem; }
}

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1.5px solid var(--line); }
.feature-list li { padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.feature-list strong { text-transform: uppercase; font-stretch: 75%; font-weight: 900; font-size: 1.15rem; }
.feature-list p { margin: 2px 0 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; counter-reset: step; border-top: 1.5px solid var(--line); }
.steps li { padding: 20px 20px 24px 0; counter-increment: step; border-bottom: 1.5px solid var(--line); }
.steps li + li { padding-left: 20px; border-left: 1.5px solid var(--line); }
.steps li::before {
  content: '0' counter(step); display: block; font-family: var(--font-display); font-stretch: 62%; font-weight: 900;
  font-size: 4.5rem; line-height: 0.85; color: var(--red); margin-bottom: 14px;
}
.steps strong { display: block; font-family: var(--font-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: 0.95; }
.steps p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 560px) { .steps li + li { padding-left: 0; border-left: 0; } }

.section-cta { background: var(--text); color: #fff; }
.section-cta h2 { color: #fff; }
.section-cta h2 .red { color: var(--red); }
.cta { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cta p { color: #cfcfcf; margin: 0; max-width: 52ch; }
.section-cta .btn { background: var(--red); color: #0d0d0d; }
.section-cta .btn:hover { background: #fff; color: #0d0d0d; }

/* Cards */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.restaurant-card {
  position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  scroll-margin-top: 90px; border-radius: 0; transition: box-shadow 0.2s;
}
.restaurant-card:hover, .restaurant-card.is-flipped { box-shadow: 6px 6px 0 var(--red); }

/* Volteo: las dos caras ocupan la misma celda; la tarjeta toma la altura de la más alta. */
.flip { flex: 1; perspective: 1400px; display: grid; }
.flip-inner { display: grid; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--surface); }
.flip-front { visibility: visible; transition: visibility 0s 0s; }
.flip-back {
  transform: rotateY(180deg); position: relative; min-height: 340px; overflow: hidden;
  background: var(--text); color: #fff; visibility: hidden; transition: visibility 0s 0.3s;
}
.restaurant-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.restaurant-card.is-flipped .flip-back { visibility: visible; transition-delay: 0s; }
.restaurant-card.is-flipped .flip-front { visibility: hidden; transition: visibility 0s 0.3s; }
@media (hover: hover) and (pointer: fine) {
  .restaurant-card:hover .flip-inner { transform: rotateY(180deg); }
  .restaurant-card:hover .flip-back { visibility: visible; transition-delay: 0s; }
  .restaurant-card:hover .flip-front { visibility: hidden; transition: visibility 0s 0.3s; }
}
@media (hover: none), (pointer: coarse) { .flip { cursor: pointer; } }
.flip-back img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip-back-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}
.flip-back-name {
  font-family: var(--font-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: 2.6rem; line-height: 0.9; margin: 8px 0 0;
}
.flip-back-soon { margin: 6px 0 0; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 0.85rem; }
.flip-back-ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #fff; font-weight: 700; font-size: 0.9rem; }
.flip-back-ig:hover { color: var(--red); }
.flip-back.no-photo { background: var(--red); color: #0d0d0d; }
.flip-back.no-photo .flip-back-info { top: 0; display: flex; flex-direction: column; justify-content: center; background: none; }
.flip-back.no-photo .flip-back-name { font-size: 3.4rem; }
.flip-back.no-photo .flip-back-ig, .flip-back.no-photo .flip-back-ig:hover { color: #0d0d0d; }
.flip-back.no-photo .sticker-mini { background: #0d0d0d; color: #fff; }
.sticker-mini {
  display: inline-block; background: var(--red); color: #fff; border: 2px solid #0d0d0d; border-radius: 10px;
  padding: 4px 10px; font: 900 1.1rem/1 var(--font-display); font-stretch: 62%; transform: rotate(-6deg);
  box-shadow: 3px 3px 0 #0d0d0d;
}
.flip-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 3; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font: 800 0.72rem var(--font-body); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.03em;
}
.flip-toggle:hover { background: var(--text); color: #fff; }
.card-actions { border-top: 1.5px solid var(--line); background: var(--surface); position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .flip-inner, .restaurant-card:hover .flip-inner, .restaurant-card.is-flipped .flip-inner { transform: none !important; transition: none; }
  .flip-back { transform: none; opacity: 0; transition: opacity 0.2s, visibility 0s 0.2s; }
  .restaurant-card.is-flipped .flip-back { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .restaurant-card:hover .flip-back { opacity: 1; }
}
.card-body { padding: 20px 20px 8px; flex: 1; }
.restaurant-card .eyebrow { margin-bottom: 0.4em; font-size: 0.78rem; padding-right: 130px; }
.restaurant-card h3 { font-size: 2.3rem; margin-bottom: 0.15em; }
.burger-name { font-weight: 900; font-stretch: 75%; text-transform: uppercase; color: var(--primary); margin-bottom: 0.4em; }
.sold { display: flex; align-items: center; gap: 10px; margin: 0 0 0.9em; }
.sold-value {
  font: 900 2.4rem/0.9 var(--font-display); font-stretch: 62%; font-variant-numeric: tabular-nums;
  background: var(--text); color: #fff; padding: 4px 10px 2px; border-radius: 6px;
}
.sold-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.25; }
.stat-featured .stat-value { color: var(--red); font-size: clamp(3.2rem, 7vw, 5.6rem); }
.contact { list-style: none; padding: 12px 0 0; margin: 12px 0 0; font-size: 0.9rem; display: grid; gap: 6px; border-top: 1px dashed var(--line); }
.contact li { display: grid; grid-template-columns: 78px 1fr; gap: 8px; }
.contact-k { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 2px; }
.contact a { color: var(--text); overflow-wrap: anywhere; }
.card-actions { display: flex; gap: 8px; padding: 16px 20px 20px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 auto; padding: 11px 14px; font-size: 0.9rem; white-space: nowrap; }

.page-head { padding: 48px 0 16px; }
.page-head h1 { margin-bottom: 0.2em; }
.search {
  width: 100%; max-width: 520px; padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  font: inherit; background: var(--surface); color: var(--text);
}
/* Carrusel de publicidad */
.promo { margin-top: 8px; }
.promo-viewport { position: relative; }
.promo-track {
  display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border: 1.5px solid var(--line); background: var(--text);
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 21 / 9; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; }
.promo-link {
  position: absolute; left: 20px; bottom: 20px; display: grid; gap: 2px; max-width: calc(100% - 40px);
  background: var(--red); color: #fff; border: 2.5px solid #0d0d0d; border-radius: 12px; padding: 8px 16px;
  box-shadow: 4px 4px 0 #0d0d0d; transform: rotate(-3deg); text-decoration: none;
}
.promo-link:hover { color: #fff; background: #0d0d0d; box-shadow: 4px 4px 0 var(--red); }
.promo-caption { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.promo-name { font: 900 2rem/0.95 var(--font-display); font-stretch: 62%; text-transform: uppercase; }
.promo-controls { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 12px; }
.promo-btn {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  color: var(--text); font: 800 0.85rem var(--font-body); font-stretch: 75%; text-transform: uppercase; cursor: pointer;
}
.promo-btn:hover { background: var(--text); color: #fff; }
.promo-count {
  min-width: 64px; text-align: center; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 800; font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .promo-slide { aspect-ratio: 4 / 3; }
  .promo-link { left: 12px; bottom: 12px; padding: 6px 12px; }
  .promo-name { font-size: 1.5rem; }
}
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Forms */
.form-card h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; }
.form input, .form select, .form textarea, .filters input, .filters select {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: normal; font-weight: 400; background: #fff; color: var(--text);
}
.form input:hover, .form select:hover, .form textarea:hover, .filters input:hover, .filters select:hover { border-color: #9a9a9a; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus, .search:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--line);
}
.form fieldset { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0; display: grid; gap: 14px; }
.form legend { font-weight: 900; font-stretch: 75%; text-transform: uppercase; padding: 0 6px; }
.form .checkbox { display: flex; align-items: center; gap: 10px; font-weight: 500; text-transform: none; font-size: 0.95rem; letter-spacing: normal; }
.form .checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-date { margin: 0; font-size: 1.05rem; }
/* Horario del restaurante: días como botones que se marcan */
.day-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.day-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.form .day-chip { display: inline-flex; cursor: pointer; text-transform: none; letter-spacing: normal; }
.day-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-chip span {
  min-width: 56px; text-align: center; padding: 9px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--border);
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 0.9rem; background: #fff; user-select: none;
}
.day-chip:hover span { box-shadow: inset 0 0 0 1.5px var(--line); }
.day-chip input:checked + span { background: var(--text); color: #fff; box-shadow: none; }
.day-chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hours-field .alert { margin: 0; }
.hours-row { display: grid; gap: 12px; padding-bottom: 16px; border-bottom: 1.5px solid var(--border); }
.hours-field [hidden] { display: none; }
.hours-row-head { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; font-size: 0.85rem; }
.shift2 { display: grid; gap: 8px; justify-items: start; }
.shift2 .form-row { width: 100%; }
.hours-field [data-add-shift], .hours-field [data-add-row] { justify-self: start; width: max-content; }

.date-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.date-tabs a {
  padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; color: var(--text);
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 0.88rem;
}
.date-tabs a.active { background: var(--text); color: #fff; }

.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; padding: 16px; margin-top: 8px; }
.filters label { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; flex: 1 1 160px; }
.filters-actions { display: flex; gap: 8px; }

/* Alerts & badges */
.flash-wrap { padding-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; border: 1.5px solid; border-left-width: 6px; background: var(--surface); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { border-color: var(--ok); color: #0f4d26; }
.alert-error { border-color: var(--danger); color: #7d1308; }
.alert-info { border-color: var(--line); color: var(--text); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; box-shadow: inset 0 0 0 1.5px currentColor;
}
.badge-ok { color: var(--ok); }
.badge-warn { color: #fff; background: var(--primary); box-shadow: none; }
.badge-muted { color: var(--muted); }

/* Paneles (administración y restaurante): misma identidad, más contenida */
.is-panel h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.is-panel h2 { font-size: 1.9rem; line-height: 0.95; }
.is-panel .page-head { padding: 36px 0 8px; }
.is-panel .section { padding: 28px 0; }
.is-panel .section:not(.section-alt) + .section:not(.section-alt):not(.section-cta) { padding-top: 0; }
.is-panel .two-col { gap: 20px; }
.is-panel .card { border-color: var(--border); }
.is-panel .stats-grid { gap: 12px; border-top: 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.is-panel .stat, .is-panel .stat + .stat { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.is-panel .stat:first-child { background: var(--text); border-color: var(--text); }
.is-panel .stat:first-child .stat-value, .is-panel .stat:first-child .stat-label { color: #fff; }
.is-panel .stat-value { font-size: clamp(1.8rem, 3.4vw, 3rem); overflow-wrap: anywhere; }
.is-panel .stat-label { color: var(--muted); }
.is-panel .stat:first-child .stat-label { color: #bdbdbd; }

/* Admin */
.subnav { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; padding-bottom: 2px; }
.subnav a {
  padding: 8px 18px; text-decoration: none; color: var(--text); font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--border); white-space: nowrap; font-size: 0.92rem;
}
.subnav a:hover { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); }
.subnav a.active { background: var(--text); color: #fff; box-shadow: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; gap: 12px; flex-wrap: wrap; }
.toolbar > .muted { font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.03em; }
.row-actions { display: inline-flex; gap: 14px; align-items: center; white-space: nowrap; }
.row-actions a { font-weight: 700; font-size: 0.88rem; }
td.row-actions { display: table-cell; text-align: right; }
td.row-actions > * + * { margin-left: 14px; }
.table-card { padding: 4px 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 800; border-bottom: 1.5px solid var(--line); }
tbody tr:hover td { background: #f6f6f6; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.notes { max-width: 240px; color: var(--muted); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.plain-list li:last-child { border-bottom: 0; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; align-items: center; }
.bar-label { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }
.bar { height: 14px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--text); border-radius: 999px; }
.bar-row:first-child .bar span { background: var(--primary); }
.bar-value { grid-column: 2; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-bar { display: block; height: 4px; background: var(--bg-alt); border-radius: 4px; margin-top: 6px; }
.mini-bar span { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr; } .bar-value { grid-column: 1; } }

/* Footer */
.site-footer { background: var(--text); color: #fff; padding: 48px 0 28px; }
.footer-word {
  font-family: var(--font-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 10rem); line-height: 0.85; margin: 0 0 28px; letter-spacing: -0.01em;
}
.footer-word span { color: var(--red); }
.footer-grid { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-top: 1.5px solid #3a3a3a; padding-top: 20px; }
.footer-grid p { color: #bdbdbd; margin: 0; text-transform: uppercase; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.footer-links a:hover { color: var(--red); }
.is-panel .site-footer { padding: 24px 0; }
.is-panel .footer-word { display: none; }
.is-panel .footer-grid { border-top: 0; padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .restaurant-card { transition: none; }
}

/* Fotos subidas: panel del restaurante y publicidad del administrador */
.photo-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .photo-card { grid-template-columns: 1fr; } }
.photo-preview {
  aspect-ratio: 4 / 3; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); display: grid; place-items: center;
}
.photo-preview.wide { aspect-ratio: 21 / 9; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview > span { display: none; color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; }
.photo-preview.is-empty > span { display: block; }
.photo-preview.is-empty img:not([hidden]) + span { display: none; }
.promo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.promo-admin { padding: 0; margin: 0; overflow: hidden; }
.promo-admin img { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; border-bottom: 1px solid var(--border); }
.promo-admin figcaption { display: grid; gap: 4px; padding: 12px 14px 14px; }
.promo-admin form { margin-top: 4px; }
/* Fondo de cuadros para ver la transparencia de los logos */
.logo-preview, .sponsor-admin-logo {
  background: repeating-conic-gradient(#e6e6e6 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
}
.logo-preview { aspect-ratio: 3 / 1; }
.logo-preview img { object-fit: contain; padding: 12px; }
.sponsor-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sponsor-admin { padding: 0; margin: 0; overflow: hidden; }
.sponsor-admin-logo { aspect-ratio: 3 / 1; display: grid; place-items: center; border-bottom: 1px solid var(--border); padding: 12px; }
.sponsor-admin-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sponsor-admin figcaption { display: grid; gap: 4px; padding: 12px 14px 14px; }
.sponsor-admin figcaption a { overflow-wrap: anywhere; }

/* ---------- Motion graphics (public/js/motion.js agrega .reveal y los contadores) ---------- */
.hero-photo { animation: photo-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both, float 6s ease-in-out 1.1s infinite; }
.hero-title .word { display: inline-block; animation: word-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 80ms + 100ms); }
.hero-in { animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 80ms + 100ms); }
.sticker-price { animation: sticker-in 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 1s both, wobble 4s ease-in-out 1.7s infinite; }
.sticker-dates { animation: sticker-in-alt 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 1.25s both, wobble-alt 5s ease-in-out 2s infinite; }

.marquee { overflow: hidden; background: var(--text); color: #fff; transform: rotate(-1.5deg); margin: 8px -12px 28px; position: relative; z-index: 3; border-block: 3px solid var(--red); }
.marquee-track {
  display: flex; width: max-content; gap: 26px; padding: 12px 0; white-space: nowrap;
  font: 900 1.7rem/1 var(--font-display); font-stretch: 62%; text-transform: uppercase; animation: marquee 30s linear infinite;
}
.marquee-dot { color: var(--red); display: inline-block; animation: spin 4s linear infinite; }

.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-20deg);
}
.btn:hover::before { animation: shine 0.8s ease; }
.btn-whatsapp { animation: pulse-ring 2.2s ease-out infinite; }
.site-header { transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 8px 0 -4px rgba(13, 13, 13, 0.08); }
.bar span, .mini-bar span { transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }

.reveal { opacity: 0; translate: 0 32px; transition: opacity 0.7s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; translate: none; }
.steps li.reveal::before { translate: -24px 0; opacity: 0; transition: translate 0.6s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.4s; transition-delay: calc(var(--d, 0) * 90ms + 250ms); }
.steps li.reveal.in::before { translate: none; opacity: 1; }

@keyframes word-in { from { opacity: 0; transform: translateY(0.5em) rotate(5deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; translate: 0 40px; scale: 0.9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes burger-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(20px); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-50px) scaleX(1.8) skewX(10deg); } }
@keyframes sticker-in { from { opacity: 0; transform: scale(0.2) rotate(-40deg); } to { opacity: 1; transform: rotate(-9deg); } }
@keyframes sticker-in-alt { from { opacity: 0; transform: scale(0.2) rotate(40deg); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(-4deg) scale(1.05); } }
@keyframes wobble-alt { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(2deg) scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(18, 140, 74, 0.5); } 100% { box-shadow: 0 0 0 14px rgba(18, 140, 74, 0); } }
@keyframes shine { to { transform: translateX(260%) skewX(-20deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-photo img, .hero-title .word, .hero-in, .sticker, .marquee-track, .marquee-dot,
  .btn-whatsapp, .steam span, .btn:hover::before { animation: none !important; }
  .hero-photo { transform: rotate(-2deg); }
  .reveal, .steps li.reveal::before { opacity: 1; translate: none; transition: none; }
  .bar span, .mini-bar span { transition: none; }
}
