:root {
  --navy-deep: #0b2049;
  --navy: #173e73;
  --gold: #ffd100;
  --red: #e63946;
  --cream: #fff8ec;
  --ink: #0b2049;
  --card: #ffffff;
  --card-line: rgb(11 32 73 / 0.1);
  --shadow: 0 14px 34px rgb(6 16 40 / 0.28);
  --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-deep);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient tiled wordmark backdrop, drifting slowly for a bit of life */
.scene {
  position: fixed;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(60rem 60rem at 50% -10%, rgb(255 209 0 / 0.10), transparent 60%),
    linear-gradient(180deg, rgb(7 20 46 / 0.35), rgb(6 15 36 / 0.82) 40%, var(--navy-deep) 78%),
    url("assets/fondo-el-kakareo.jpg") center / 640px auto repeat;
  animation: driftBg 46s linear infinite;
}
@keyframes driftBg {
  from { background-position: center, center, 0 0; }
  to   { background-position: center, center, -640px -640px; }
}

button { font: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  margin: 0 auto;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.1rem calc(3rem + env(safe-area-inset-bottom));
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  color: #fff;
  margin-bottom: 1.75rem;
}

.logo-halo {
  position: relative;
  display: grid;
  place-items: center;
  width: min(78%, 17rem);
  margin-bottom: 0.6rem;
}
.logo-halo::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgb(255 209 0 / 0.28), transparent 70%);
  filter: blur(2px);
  z-index: -1;
}
.logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.4)); }

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.intro {
  margin: 0.6rem 0 0;
  max-width: 30ch;
  color: #dfe8f7;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Linktree-style stack */
.links {
  display: grid;
  gap: 0.85rem;
}

.links > * {
  opacity: 0;
  transform: translateY(14px);
}
body.is-ready .links > *,
body.is-ready .hero {
  animation: rise 560ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--stagger, 0) * 65ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.section-label {
  margin: 0.5rem 0.3rem -0.15rem;
  color: #b9c8e6;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--card-line);
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.link:hover, .link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgb(6 16 40 / 0.34);
  border-color: rgb(255 209 0 / 0.55);
}
.link:active { transform: translateY(-1px) scale(0.99); }
.link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.link-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: linear-gradient(155deg, var(--navy), var(--navy-deep));
  font-size: 1.25rem;
}

.link-text { display: grid; gap: 0.15rem; min-width: 0; }
.link-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}
.link-sub {
  font-size: 0.82rem;
  color: #5a6b8c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  margin-left: auto;
  flex: none;
  font-size: 1.1rem;
  color: var(--red);
  transition: transform 200ms ease;
}
.link:hover .link-arrow { transform: translateX(3px); }

/* Primary CTA */
.link--primary {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-color: rgb(255 209 0 / 0.35);
}
.link--primary .link-sub { color: #c8d6ef; }
.link--primary .link-icon { background: rgb(255 209 0 / 0.16); }
.link--primary .link-arrow { color: var(--gold); }

/* Combo cards: thumbnail + signature checkered price tag,
   a nod to the checkered paper trays the chicken is served on. */
.link--combo { padding-right: 0.85rem; padding-top: 1.05rem; }
.combo-thumb {
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(11 32 73 / 0.08);
}
.combo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.price-tag {
  flex: none;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 4px 10px rgb(230 57 70 / 0.35);
}

/* Signature motif: a thin strip of the red/white checkered paper the food
   photos are served on, running along the top edge of each combo card. */
.link--combo::before {
  content: "";
  position: absolute;
  top: 0; left: 0.9rem; right: 0.9rem;
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 6px, #fff 6px 12px);
  border-radius: 0 0 3px 3px;
  opacity: 0.85;
}

.link--action .link-icon { background: linear-gradient(155deg, var(--red), #b8202c); }

.foot {
  margin-top: 1.6rem;
  text-align: center;
  color: #9fb0d1;
  font-size: 0.78rem;
}
.foot p { margin: 0; }

/* Lightbox */
.lightbox {
  width: min(100vw, 1200px);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem 3.5rem 2.25rem;
  border: 0;
  background: rgb(3 10 24 / 0.98);
}
.lightbox::backdrop { background: rgb(3 10 24 / 0.72); backdrop-filter: blur(5px); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 4rem); margin: 0 auto; object-fit: contain; border-radius: 0.5rem; }
.lightbox button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  color: var(--navy-deep);
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.3);
}
.close { top: 1rem; right: 1rem; }
.previous, .next { top: 50%; transform: translateY(-50%); }
.previous { left: 0.7rem; }
.next { right: 0.7rem; }
.hint { position: absolute; right: 0; bottom: 0.45rem; left: 0; margin: 0; color: #dbe7f7; text-align: center; font-size: 0.8rem; }

@media (min-width: 760px) {
  .wrap { padding-top: 3.5rem; }
}

@media (max-width: 420px) {
  .intro { font-size: 0.9rem; }
  .link { padding: 0.8rem 0.9rem; border-radius: 1rem; }
  .link-title { font-size: 0.95rem; }
  .lightbox { padding: max(0.7rem, env(safe-area-inset-top)) 0.7rem calc(3.75rem + env(safe-area-inset-bottom)); }
  .lightbox img { width: 100%; max-height: calc(100dvh - 4.5rem); }
  .close { top: max(0.7rem, env(safe-area-inset-top)); right: 0.7rem; }
  .previous, .next { top: auto; bottom: max(0.7rem, env(safe-area-inset-bottom)); transform: none; }
  .previous { left: 1rem; }
  .next { right: 1rem; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .scene { animation: none; }
}
