/* ============================================================================
   TRONCO E' FILO — HOJA DE ESTILOS
   Look: póster latino de gastrobar. Fondo negro dominante, oro/rojo/naranja.
   Mobile-first. Sin frameworks.
   ========================================================================== */

/* ------------------------------------------------------------- Design tokens */
:root {
  --bg: #080808;
  --bg-soft: #0e0e0e;
  --bg-card: #121212;
  --bg-raised: #171717;
  --white: #F5F5F5;
  --text: #F5F5F5;
  --muted: #C9C4BA;          /* AA sobre negro */
  --gold: #F5A900;
  --gold-bright: #FFB300;
  --red: #C92720;
  --orange: #FF7800;
  --cream: #F6D58A;
  --blue: #149ED9;
  --green: #169447;
  --line: rgba(245, 169, 0, 0.32);
  --line-soft: rgba(245, 245, 245, 0.10);

  --font-display: 'Anton', 'Arial Narrow', Impact, 'Haettenschweiler', 'Franklin Gothic Bold', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'Caveat', 'Segoe Script', 'Comic Sans MS', cursive;

  --header-h: 68px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --focus: 3px solid var(--gold-bright);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------------------------------------------------------------- Reset/base */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo hidden SIEMPRE gana (aunque el CSS ponga display:grid/flex) */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;          /* evita scroll horizontal fantasma */
  padding-bottom: 84px;      /* espacio para la barra fija móvil */
}

img { max-width: 100%; height: auto; display: block; }

body.no-scroll { overflow: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.08; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--gold); color: var(--bg); }

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 1000;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------- Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderFallback { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: no-preference) {
  /* Si JS no carga, el preloader se quita solo */
  #preloader:not(.is-loaded) { animation: preloaderFallback 0.4s ease 3s forwards; }
}
.preloader-inner { text-align: center; }
.preloader-inner img {
  width: 96px; height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(245,169,0,.45); } }
.preloader-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.preloader-slogan {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- Header */
#header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-logo {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg-card);
}
.brand-logo:not([hidden]) + .brand-name { display: inline; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--white);
  white-space: nowrap;
}
.brand-apos { color: var(--gold); }

/* Navegación (móvil: panel desplegable) */
#nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.25s ease;
  z-index: 499;
}
#nav.is-open { transform: translateY(0); opacity: 1; }
.nav-list li { border-bottom: 1px solid var(--line-soft); }
.nav-link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease, padding-left 0.2s var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link.is-active { color: var(--gold); padding-left: 0.75rem; }
.nav-link.is-active::before { content: "✦ "; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang-toggle {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { background: var(--gold); color: var(--bg); }

.nav-toggle {
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--gold);
  margin: 2.5px 0;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------------- Secciones */
section { scroll-margin-top: calc(var(--header-h) + 8px); }
/* clip evita que los marcos decorativos rotados creen scroll horizontal */
.section { padding: 4.5rem 0; position: relative; overflow: clip; }
.container { width: min(100% - 2rem, 1200px); margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 2.5rem; }
.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.kicker::before, .kicker::after { content: " ✦ "; color: var(--red); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  display: inline-block;
  padding: 0 0.4rem 0.35rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 6%; right: 0; bottom: 0;
  height: 6px;
  background: var(--gold);
  border-radius: 4px;
  transform: skewX(-18deg);
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; right: 10%; bottom: -4px;
  height: 6px;
  background: var(--red);
  border-radius: 4px;
  transform: skewX(-18deg);
  opacity: 0.85;
}
.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin: 1.1rem auto 0;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn .ico { width: 20px; height: 20px; flex: 0 0 auto; }
.btn:active { transform: translateY(2px); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.9rem; }

.btn-gold { background: var(--gold); color: var(--bg); box-shadow: 0 10px 30px rgba(245,169,0,0.28); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(201,39,32,0.35); }
.btn-red:hover { background: #E02F27; transform: translateY(-2px); }
.btn-ghost { border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--bg); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------- HERO */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: clip;
  background:
    radial-gradient(60% 45% at 85% 12%, rgba(245,169,0,0.09), transparent 60%),
    radial-gradient(45% 40% at 5% 90%, rgba(201,39,32,0.12), transparent 60%),
    var(--bg);
  padding: 3rem 0 4.5rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-star { position: absolute; color: var(--gold); opacity: 0.5; animation: twinkle 3s ease-in-out infinite; }
.hero-star-1 { top: 14%; left: 6%; font-size: 1.1rem; }
.hero-star-2 { top: 24%; right: 10%; font-size: 0.9rem; animation-delay: 0.8s; }
.hero-star-3 { bottom: 18%; left: 12%; font-size: 1.4rem; animation-delay: 1.6s; }
.hero-star-4 { bottom: 30%; right: 6%; font-size: 0.8rem; animation-delay: 2.2s; }
@keyframes twinkle { 50% { opacity: 0.15; transform: scale(0.8) rotate(25deg); } }

.hero-inner {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 10vw, 5.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 0.98;
  margin: 0.2rem 0 1.1rem;
  text-wrap: balance;
}
.hero-title em {
  display: block;
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 700;
  font-size: 1.16em;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  line-height: 1.05;
  margin-top: 0.12em;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 0 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.8rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.9rem 1.6rem; }
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 12px var(--orange); }

/* Foto del hero */
.hero-photo-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.hero-photo-frame {
  position: absolute;
  inset: -14px -14px auto auto;
  width: 78%;
  height: 82%;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  transform: rotate(4deg);
}
.hero-photo {
  position: relative;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
  transition: transform 0.4s var(--ease);
}
.hero-photo:hover { transform: rotate(0deg) scale(1.01); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-photo-tag {
  position: absolute;
  bottom: 10px; left: 10px;
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.hero-photo-tag-line { color: var(--red); }
.hero-brush {
  position: absolute;
  width: 130px;
  bottom: -34px; right: -26px;
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}
.hero-sticker {
  position: absolute;
  top: -30px; left: -26px;
  width: 104px; height: 104px;
  background: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(245,169,0,0.4);
  z-index: 3;
}
.hero-sticker svg { width: 92px; height: 92px; overflow: visible; }
.hero-sticker text {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 1.5px;
  fill: var(--bg);
  animation: spin 16s linear infinite;
  transform-origin: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-scroll {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.8;
  padding: 0.5rem;
}
.hero-scroll svg { width: 26px; height: 26px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ------------------------------------------------------------------- MENÚ */
.menu-section { background: var(--bg); }
.menu-root { display: grid; gap: 2.2rem; }

.menu-block {
  --accent: var(--gold);
  border: 1.5px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%),
    var(--bg-soft);
  padding: 1.4rem 1.1rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.menu-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.menu-block-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.2rem;
}
.menu-block-ico {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.menu-block-ico svg { width: 26px; height: 26px; }
.menu-block-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}
.menu-block-kicker {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--accent);
  margin-top: -0.1rem;
}

.menu-group { margin-top: 1.5rem; }
.menu-group:first-of-type { margin-top: 1.1rem; }
.menu-group-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.menu-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

.menu-items { display: grid; gap: 0.45rem; }

.menu-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.menu-item:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(255,255,255,0.045); }
.menu-item.is-in-cart { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

.menu-item-main {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
}
.item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}
.item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.99rem;
  line-height: 1.35;
}
.item-name::after {           /* línea punteada tipo menú */
  content: "";
}
.item-price {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--accent);
  white-space: nowrap;
  flex: 0 0 auto;
}
.item-note {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.menu-item-main:hover .item-price { color: var(--gold-bright); }

.item-qty {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.75rem;
  border-top: 1px dashed var(--line-soft);
}
.qty-btn {
  width: 30px; height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-btn:hover { background: var(--accent); color: var(--bg); }
.qty-val {
  min-width: 1.6em;
  text-align: center;
  font-weight: 700;
  color: var(--white);
}
.item-sub {
  margin-left: auto;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
}

.menu-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

/* -------------------------------------------------------------- NOSOTROS */
.nosotros-section {
  background:
    radial-gradient(50% 40% at 0% 10%, rgba(20,158,217,0.06), transparent 60%),
    var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}
.nosotros-grid { display: grid; gap: 2.8rem; align-items: center; }
.nosotros-media { position: relative; max-width: 420px; margin: 0 auto; }
.nosotros-photo-frame {
  position: absolute;
  inset: -12px -12px auto auto;
  width: 72%;
  height: 78%;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  transform: rotate(-4deg);
}
.nosotros-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.nosotros-stamp {
  position: absolute;
  bottom: -22px; right: -8px;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 2.5px dashed var(--gold);
  background: rgba(8,8,8,0.9);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.2;
  display: grid;
  place-items: center;
  transform: rotate(8deg);
}
.nosotros-text p { color: var(--muted); margin: 0 0 1rem; }
.nosotros-text .section-title { margin-bottom: 1.2rem; }
.nosotros-features { display: grid; gap: 1rem; margin-top: 1.6rem; }
.nosotros-features li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-ico {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  color: var(--gold);
  background: rgba(245,169,0,0.08);
  border-radius: 10px;
  padding: 6px;
}
.nosotros-features h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.15rem;
}
.nosotros-features p { font-size: 0.9rem; margin: 0; }

/* ---------------------------------------------------------------- GALERÍA */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  padding: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(8,8,8,0.75));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .gallery-cat {
  position: absolute;
  bottom: 8px; left: 8px;
  z-index: 2;
  font-family: var(--font-accent);
  font-size: 1.02rem;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}
.gallery-item:hover .gallery-cat { opacity: 1; transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

/* ---------------------------------------------------------------- DELIVERY */
.delivery-section {
  background: linear-gradient(180deg, #E02F27 0%, var(--red) 55%, #A31D18 100%);
  color: #fff;
  overflow: clip;
  position: relative;
}
.delivery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-38deg, rgba(255,120,0,0.16) 0 22px, transparent 22px 52px);
  pointer-events: none;
}
.delivery-lines { position: absolute; inset: 0; pointer-events: none; }
.delivery-lines span {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(8,8,8,0.5), transparent);
  border-radius: 2px;
  transform: rotate(-12deg);
}
.delivery-lines span:nth-child(1) { width: 42%; top: 16%; left: -8%; }
.delivery-lines span:nth-child(2) { width: 34%; top: 34%; left: 46%; }
.delivery-lines span:nth-child(3) { width: 26%; top: 58%; left: 4%; }
.delivery-lines span:nth-child(4) { width: 38%; top: 74%; left: 40%; }
.delivery-lines span:nth-child(5) { width: 22%; top: 88%; left: 12%; }

.delivery-grid { display: grid; gap: 2.6rem; align-items: center; position: relative; }
.delivery-kicker { color: #FFE9B8; }
.delivery-kicker::before, .delivery-kicker::after { color: var(--bg); }
.delivery-big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0.3rem 0 1rem;
  text-wrap: balance;
  text-shadow: 3px 3px 0 rgba(8,8,8,0.35);
}
.delivery-big::first-line { color: #FFD98A; }
.delivery-sub { max-width: 30rem; margin: 0 0 1.6rem; color: #FFEFD6; }
.delivery-note { font-size: 0.85rem; color: #FFD9CE; margin: 1rem 0 0; }
.delivery-section .btn-red { background: var(--bg); color: var(--gold); box-shadow: 0 12px 30px rgba(8,8,8,0.35); }
.delivery-section .btn-red:hover { background: #141414; }

.delivery-media {
  position: relative;
  background: var(--gold);
  border-radius: 24px;
  border: 6px solid rgba(8,8,8,0.85);
  box-shadow: var(--shadow);
  max-width: 380px;
  margin: 0 auto;
  padding: 1.4rem 1rem 0.4rem;
  transform: rotate(2deg);
  transition: transform 0.35s var(--ease);
}
.delivery-media:hover { transform: rotate(0deg); }
.scooter { width: 100%; height: auto; }
.delivery-speed {
  position: absolute;
  top: -18px; right: -10px;
  background: var(--bg);
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  transform: rotate(6deg);
}

/* -------------------------------------------------------------- UBICACIÓN */
.ubicacion-grid { display: grid; gap: 2.4rem; align-items: center; }
.ubicacion-text p { color: var(--muted); margin: 0 0 1.4rem; }
.ubicacion-text .section-title { margin-bottom: 1.2rem; }

.address-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 1rem 1.1rem;
  margin-bottom: 1.3rem;
}
.ico-pin { width: 26px; height: 26px; color: var(--red); flex: 0 0 auto; margin-top: 0.15rem; }
.address-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.address-value { margin: 0.2rem 0 0 !important; color: var(--text) !important; font-weight: 600; }
.map-note { font-size: 0.82rem; color: var(--muted); margin: 1rem 0 0; font-style: italic; }

.map-wrap {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) saturate(0.6) brightness(0.92) contrast(0.95); /* mapa oscuro */
}

/* --------------------------------------------------------------- CONTACTO */
.contacto-section {
  background:
    radial-gradient(55% 45% at 100% 100%, rgba(245,169,0,0.07), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}
.contacto-cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.contacto-card {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.8rem 1.2rem;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.contacto-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(245,169,0,0.14);
}
.contacto-card .ico { width: 38px; height: 38px; color: var(--gold); }
.contacto-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.7rem 0 0.2rem;
}
.contacto-card p { color: var(--muted); margin: 0 0 0.9rem; font-weight: 600; }
.contacto-cta {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--gold);
}
.contacto-hours { text-align: center; color: var(--muted); margin: 2rem 0 0; font-size: 0.95rem; }
.contacto-hours strong { color: var(--gold); }

/* ----------------------------------------------------------------- FOOTER */
#footer {
  border-top: 2px solid var(--line);
  background: #050505;
  padding: 3rem 0 2rem;
}
.footer-inner { display: grid; gap: 1.8rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  display: block;
}
.footer-tag {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--gold); }
.footer-legal { color: var(--muted); font-size: 0.85rem; }
.footer-legal p { margin: 0 0 0.35rem; }
.footer-disclaimer { opacity: 0.75; }

/* -------------------------------------------------------- Barra fija móvil */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  display: grid;
  grid-template-columns: 118px 1fr;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.55rem 0.8rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.sticky-call,
.sticky-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 0.4rem;
  min-height: 46px;
}
.sticky-call {
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.sticky-call .ico, .sticky-order .ico { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }
.sticky-order .ico { color: var(--bg); }
.sticky-order {
  position: relative;
  background: var(--gold);
  color: var(--bg);
}
.sticky-count {
  position: absolute;
  top: -8px; right: -4px;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* -------------------------------------------------------- Panel de pedido */
.order-backdrop {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.order-backdrop.is-visible { opacity: 1; }

.order-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 560;
  width: min(400px, 100%);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.34s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.order-panel.is-open { transform: translateX(0); }

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}
.order-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-transform: uppercase;
}
.icon-btn {
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }

.order-body { flex: 1; overflow-y: auto; padding: 1.2rem; }
.order-empty { color: var(--muted); text-align: center; padding: 2.5rem 0.5rem; }

.order-list { display: grid; gap: 0.7rem; }
.order-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--bg-card);
  padding: 0.7rem 0.8rem;
}
.order-item-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.order-item-price { font-family: var(--font-display); color: var(--gold); }
.order-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem; }
.order-item-remove {
  margin-left: auto;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.order-item-remove:hover { text-decoration: underline; }

.order-foot {
  padding: 1.1rem 1.2rem calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}
.order-total span { color: var(--muted); font-weight: 600; }
.order-total strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
}
.order-clear {
  display: block;
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
}
.order-clear:hover { color: var(--red); }

/* ---------------------------------------------------------------- LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(5, 5, 5, 0.94);
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem 2rem;
}
.lightbox-figure { margin: 0; max-width: min(92vw, 760px); text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  margin: 0 auto;
  border-radius: 12px;
  border: 2px solid var(--line);
  object-fit: contain;
  box-shadow: var(--shadow);
}
.lightbox-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.lightbox-close { position: absolute; top: 14px; right: 14px; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }

/* -------------------------------------------------------------------- TOAST */
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 800;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ----------------------------------------------------------- Media queries */
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }

  #header .header-inner { padding: 0.6rem 1.5rem; }
  #nav {
    position: static;
    transform: none;
    opacity: 1;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .nav-list { display: flex; gap: 1.5rem; }
  .nav-list li { border: 0; }
  .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 0.4rem 0;
  }
  .nav-link.is-active { padding-left: 0; }
  .nav-toggle { display: none; }

  /* Sticky CTA pasa a botón flotante */
  .sticky-cta {
    left: auto; right: 22px;
    bottom: 22px;
    grid-template-columns: 1fr;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 0.5rem;
  }
  .sticky-call {
    display: none;
  }
  .sticky-order {
    box-shadow: 0 14px 40px rgba(245,169,0,0.35);
    padding: 0.9rem 1.5rem;
  }

  .hero-inner { grid-template-columns: 1.08fr 0.92fr; gap: 2.5rem; padding: 2rem 0; }
  .hero { padding: 5rem 0 4rem; }

  .menu-block { padding: 1.8rem 1.6rem 2rem; }
  .menu-items { grid-template-columns: repeat(2, 1fr); gap: 0.5rem 0.9rem; }

  .nosotros-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; }
  .nosotros-media { max-width: 440px; }

  .gallery-grid { grid-template-columns: repeat(4, 1fr); }

  .delivery-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }

  .ubicacion-grid { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
  .map-wrap iframe { height: 400px; }

  .contacto-cards { grid-template-columns: repeat(3, 1fr); }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .footer-legal { grid-column: 1 / -1; }

  .toast { bottom: 30px; }
}

@media (min-width: 1200px) {
  .nav-list { gap: 2rem; }
}

/* -------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
