/* ═══════════════════════════════════════════
   RAGUSA Trattoria — tokens
   ═══════════════════════════════════════════ */
:root {
  --bg:        #0a0908;
  --bg-alt:    #100e0c;
  --surface:   #161311;
  --line:      #2a2521;
  --line-soft: #1d1917;
  --fg:        #f2ece1;
  --fg-mid:    #b3a795;
  --fg-dim:    #7d7264;
  --gold:      #d8a850;
  --gold-dim:  #d8a85022;
  --red:       #c0392b;
  --green:     #1f7a4d;

  --wrap: 1120px;
  --r: 12px;
  --script: 'Yellowtail', 'Snell Roundhand', cursive;
  --display: 'Oswald', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════
   Base
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #1a1410;
  padding: 10px 18px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   Nav
   ═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.nav__brand { text-decoration: none; }
.nav__mark {
  font-family: var(--script);
  font-size: 30px;
  line-height: 1;
  color: var(--fg);
  display: inline-block;
  padding-block: 6px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links > a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--fg-mid);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav__links > a:hover { color: var(--fg); background: var(--line-soft); }

.nav__cta {
  background: var(--gold) !important;
  color: #1a1410 !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
}
.nav__cta:hover { filter: brightness(1.08); }

@media (max-width: 560px) {
  .nav__links > a:not(.nav__cta) { display: none; }
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 12vw, 120px) 0 clamp(56px, 9vw, 96px);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.hero__glow {
  position: absolute;
  inset: -30% 50% auto;
  translate: 50% 0;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 62%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(28px, 5vw, 44px);
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-mid);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.hero__brand {
  margin: 0 0 clamp(28px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 15vw, 132px);
  line-height: .95;
  letter-spacing: .01em;
  padding-inline: .08em;
  /* Yellowtail carga la cola de la 'a' a la derecha: compensa el centro óptico */
  margin-right: .12em;
  background: linear-gradient(170deg, #fdf7ea 12%, #e2c68a 58%, #b98f42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__rule {
  width: min(300px, 62%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero__sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(11px, 2.4vw, 14px);
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.hero__claim {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 6.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero__claim em {
  display: inline-block;
  margin-top: .12em;
  font-style: normal;
  font-weight: 400;
  color: var(--gold);
}

.hero__lead {
  margin: 0 auto clamp(34px, 6vw, 48px);
  max-width: 30ch;
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--fg-mid);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ═══════════════════════════════════════════
   Botones
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: #1a1410;
  box-shadow: 0 8px 28px -14px var(--gold);
}
.btn--primary:hover { filter: brightness(1.09); }

.btn--ghost {
  border-color: var(--line);
  color: var(--fg);
  background: transparent;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--fg-dim); }

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════
   Pilares
   ═══════════════════════════════════════════ */
.pillars {
  padding: clamp(56px, 9vw, 88px) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.pillar {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}

.pillar__num {
  display: flex;
  align-items: center;
  height: 48px;
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
}
.pillar__num span {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-dim);
}
.pillar__num--script {
  font-family: var(--script);
  font-weight: 400;
  font-size: 52px;
}
.pillar__num--flag { gap: 5px; }
.pillar__num--flag i {
  width: 13px;
  height: 26px;
  border-radius: 3px;
  background: var(--green);
}
.pillar__num--flag i:nth-child(2) { background: var(--fg); }
.pillar__num--flag i:nth-child(3) { background: var(--red); }

.pillar__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pillar__text {
  margin: 0;
  font-size: 15px;
  color: var(--fg-mid);
}

/* ═══════════════════════════════════════════
   Encabezado de sección
   ═══════════════════════════════════════════ */
.sec__head {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 56px);
}
.sec__eyebrow {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.sec__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sec__lead {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 16px;
  color: var(--fg-mid);
}

/* ═══════════════════════════════════════════
   Sabores
   ═══════════════════════════════════════════ */
.flavors { padding: clamp(64px, 10vw, 104px) 0; }

.flavors__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.flavor {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: border-color .2s ease, transform .2s ease;
}
.flavor:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.flavor__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.flavors__note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--fg-dim);
}

/* ═══════════════════════════════════════════
   Galería
   ═══════════════════════════════════════════ */
.shots {
  padding: clamp(56px, 9vw, 96px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
}

.shots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.shot:hover img { transform: scale(1.035); }

/* la caja con los sabores es la pieza de marca: entera y a todo el ancho */
.shot--wide {
  grid-column: 1 / -1;
}
.shot--wide img {
  aspect-ratio: auto;
  height: auto;
}

@media (max-width: 760px) {
  .shots__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .shots__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .shot img, .shot:hover img { transition: none; transform: none; }
}

/* ═══════════════════════════════════════════
   Pedido
   ═══════════════════════════════════════════ */
.order {
  padding: clamp(64px, 10vw, 104px) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.order__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5.5vw, 46px);
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.order__lead {
  margin: 0 0 clamp(28px, 5vw, 40px);
  font-size: 16px;
  color: var(--fg-mid);
}

.order__social {
  margin: 26px 0 0;
  font-size: 14.5px;
  color: var(--fg-dim);
}
.order__social a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease;
}
.order__social a:hover { border-bottom-color: var(--gold); }

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.foot {
  padding: 48px 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.foot__brand {
  margin: 0 0 6px;
  font-family: var(--script);
  font-size: 32px;
  line-height: 1;
  color: var(--fg-mid);
}
.foot__tag {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.foot__legal {
  margin: 0;
  font-size: 13px;
  color: var(--fg-dim);
}

/* ═══════════════════════════════════════════
   Reveal
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .flavor { transition: none; }
}

/* ═══════════════════════════════════════════
   404
   ═══════════════════════════════════════════ */
.nf {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}
.nf__code {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 16vw, 128px);
  line-height: 1;
  color: var(--gold);
}
.nf__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nf__text {
  margin: 0 auto 32px;
  max-width: 38ch;
  color: var(--fg-mid);
}
.nf__brand {
  font-family: var(--script);
  font-size: 42px;
  line-height: 1;
  color: var(--fg-mid);
  margin: 0 0 26px;
}
