/* ── Experience consent popup ───────────────── */
.exp-overlay {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.36,0.64,1);
}

.exp-overlay.visible {
  opacity: 1;
  transform: none;
}

.exp-overlay.hidden { display: none; }

@keyframes exp-slide-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.exp-popup {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  max-width: 340px;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  pointer-events: all;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.exp-popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(232,35,14,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.exp-chile-icon {
  font-size: 28px;
  display: inline-block;
  margin-bottom: 10px;
  animation: exp-shake 2.5s ease-in-out infinite;
}

@keyframes exp-shake {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-12deg) scale(1.1); }
  90% { transform: rotate(12deg) scale(1.1); }
  95% { transform: rotate(-6deg); }
}

.exp-title {
  font-size: 22px;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 8px;
}

.exp-title span { color: var(--red); }

.exp-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.exp-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-btns .btn { padding: 10px 20px; font-size: 12px; }

/* ── Audio resume button ─────────────────────── */
.audio-resume {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--orange);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
  opacity: 0.6;
}

.audio-resume:hover { opacity: 1; border-color: var(--orange); transform: scale(1.1); }
.audio-resume.hidden { display: none; }

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:      #0e0a00;
  --bg2:     #161008;
  --bg3:     #1e1408;
  --red:     #e8230e;
  --orange:  #ff6b00;
  --yellow:  #ffb800;
  --cream:   #f5ede0;
  --muted:   #7a6a58;
  --border:  #2a1f10;
  --radius:  8px;

  /* level colors */
  --c-mango:    #ffcc00;
  --c-jalap:    #5cb85c;
  --c-hab:      #ff8800;
  --c-reaper:   #e8230e;
  --c-extinc:   #9b00ff;
}

/* ── Base ────────────────────────────────────── */
html { scroll-behavior: auto; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* ── Grain overlay ───────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.055;
  pointer-events: none;
  z-index: 9000;
}

/* ── Typography ──────────────────────────────── */
h1, h2, h3, .bebas {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  --gx: 50%; --gy: 50%;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.18) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn:hover::before { opacity: 1; }

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.14) 50%, transparent 80%);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover::after { left: 160%; }
.btn:hover { transform: translateY(-2px); }

.btn-fire {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 4px 24px rgba(232,35,14,0.35);
}

.btn-fire:hover { box-shadow: 0 6px 32px rgba(232,35,14,0.55); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,237,224,0.3);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-dark {
  background: var(--bg3);
  color: var(--cream);
  border: 1px solid var(--border);
}

.btn-dark:hover { border-color: var(--orange); color: var(--orange); }

.btn-lg { padding: 18px 44px; font-size: 14px; }

/* ── Nav ─────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(14,10,0,0.92);
  padding: 16px 60px;
  border-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--cream);
  line-height: 1;
}

.nav-logo-text span { color: var(--red); }

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

nav ul a {
  color: rgba(245,237,224,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

nav ul a:hover { color: var(--orange); }

.nav-cta { padding: 10px 24px !important; font-size: 12px !important; color: #fff !important; }
.nav-cta:hover { color: #fff !important; }

/* ── Side nav mobile (flotante derecho) ──────── */
.side-nav-wrap { display: none; }

@media (max-width: 900px) {
  .side-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: fixed;
    right: 14px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 400;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .side-nav.hidden {
    transform: translateX(60px);
    opacity: 0;
    pointer-events: none;
  }

  .bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--cream);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
    transition: transform 0.15s, color 0.2s;
  }

  .bnav-item:active { transform: scale(0.88); }

  .bnav-item svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .bnav-reservar {
    color: var(--orange);
    filter: drop-shadow(0 1px 4px rgba(255,107,0,0.6));
  }

  .bnav-wa {
    color: #25d366;
    filter: drop-shadow(0 1px 4px rgba(37,211,102,0.5));
  }

  .bnav-wa svg { width: 30px; height: 30px; }

  /* Toggle ∧/∨ */
  .side-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
    padding: 4px;
    transition: transform 0.3s ease, color 0.2s;
  }

  .side-nav-toggle.rotated { transform: rotate(180deg); }
  .side-nav-toggle svg { width: 18px; height: 18px; display: block; }
}

/* ── Hero ─────────────────────────────────────── */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14,10,0,0.85) 0%,
    rgba(14,10,0,0.55) 50%,
    rgba(14,10,0,0.2) 100%
  );
  z-index: 1;
}

#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* nav mide ~72px, el resto se reparte arriba y abajo */
  padding: calc((100vh - 72px) * 0.08 + 72px) 60px calc((100vh - 72px) * 0.08);
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(232,35,14,0.12) 0%, rgba(255,107,0,0.05) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
  will-change: opacity;
  z-index: 2;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text-col {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--red);
}

.hero-eyebrow-text {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.92;
  color: var(--cream);
  margin-bottom: 12px;
}

.hero-title .fire-word {
  color: var(--red);
  display: inline-block;
  animation: title-shake 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes title-shake {
  0%, 90%, 100% { transform: none; }
  92% { transform: rotate(-1.5deg) scale(1.02); }
  94% { transform: rotate(1.5deg) scale(1.02); }
  96% { transform: rotate(-1deg); }
  98% { transform: rotate(0.5deg); }
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 420px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
}

.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: var(--cream);
  line-height: 1;
}

.hero-stat-num span { color: var(--red); }

.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ── Chile 3D hero ───────────────────────────── */
.hero-visual {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-content: center;
}

.chile-scene-wrap {
  width: 100%;
  max-width: 480px;
}

.chile-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.chile-bg-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(232,35,14,0.12);
}

.chile-bg-ring:nth-child(2) {
  width: 260px;
  height: 260px;
  border-color: rgba(255,107,0,0.08);
}

.chile-hero-video {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
}

@keyframes chile-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(-2deg); }
}

/* flame flicker on chile tip */

/* ── Section tag ─────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

/* ── Divider ──────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Levels section ──────────────────────────── */
#levels {
  padding: 100px 60px;
  background: var(--bg2);
}

.levels-header {
  text-align: center;
  margin-bottom: 64px;
}

.levels-title {
  font-size: clamp(48px, 6vw, 88px);
  color: var(--cream);
  line-height: 1;
  margin-bottom: 16px;
}

.levels-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.level-card-wrap { width: 100%; }

.level-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 20px 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  user-select: none;
  height: 100%;
}

.level-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: var(--level-color, var(--border));
  opacity: 0;
  transition: opacity 0.35s;
}

.level-card:hover::before { opacity: 0.08; }

.level-card:hover {
  border-color: var(--level-color, var(--orange));
  box-shadow: 0 8px 40px color-mix(in srgb, var(--level-color, var(--orange)) 30%, transparent);
}

.level-card.active {
  border-color: var(--level-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--level-color) 40%, transparent),
              0 8px 32px color-mix(in srgb, var(--level-color) 25%, transparent);
}

.level-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  transition: transform 0.3s;
  animation: none;
}

.level-card:hover .level-emoji { transform: scale(1.2); }
.level-card.active .level-emoji { animation: emoji-bounce 0.5s cubic-bezier(0.34,1.56,0.64,1); }

@keyframes emoji-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1.15); }
}

.level-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--cream);
  margin-bottom: 8px;
}

.level-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.level-shu {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--level-color, var(--muted));
  font-weight: 600;
}

.level-chiles {
  margin-top: 12px;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ── Menu section ─────────────────────────────── */
#menu {
  padding: 100px 60px;
  background: var(--bg);
}

.menu-header {
  text-align: center;
  margin-bottom: 56px;
}

.menu-title {
  font-size: clamp(48px, 6vw, 80px);
  color: var(--cream);
  margin-bottom: 32px;
}

.menu-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-pill:hover { border-color: var(--orange); color: var(--orange); }

.filter-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.menu-card.hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }
.menu-card:not(.hidden) { opacity: 1; transform: scale(1); }

.menu-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
  background: var(--bg3);
}

.menu-card:hover .menu-card-img { transform: scale(1.04); }

.menu-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.menu-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,10,0,0.7) 0%, transparent 50%);
  pointer-events: none;
}

.menu-card-body {
  padding: 20px;
}

.menu-card-level {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1;
}

.menu-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.menu-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--cream);
}

.menu-card-price span {
  font-size: 15px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.menu-card-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-card-add:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 16px rgba(232,35,14,0.5);
}

/* ── Reservation section ──────────────────────── */
#reserva {
  padding: 100px 60px;
  background: var(--bg2);
}

.reserva-header {
  text-align: center;
  margin-bottom: 64px;
}

.reserva-title {
  font-size: clamp(48px, 6vw, 88px);
  color: var(--cream);
  line-height: 1;
  margin-bottom: 12px;
}

.reserva-sub {
  font-size: 15px;
  color: var(--muted);
}

/* Steps indicator */
.reserva-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--muted);
  transition: all 0.4s;
  position: relative;
  z-index: 1;
  background: var(--bg2);
}

.step-dot.done { background: var(--red); border-color: var(--red); color: #fff; }
.step-dot.active { border-color: var(--orange); color: var(--orange); }

.step-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
  transition: color 0.4s;
}

.step-item.active .step-label { color: var(--orange); }
.step-item.done .step-label { color: var(--red); }

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  position: relative;
  top: -12px;
  transition: background 0.4s;
}

.step-line.done { background: var(--red); }

/* Panels */
.reserva-panels { max-width: 900px; margin: 0 auto; }

.reserva-panel {
  display: none;
  animation: panel-in 0.4s cubic-bezier(0.34,1.36,0.64,1);
}

.reserva-panel.active { display: block; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Panel 1 — Salon map */
.salon-map-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 32px;
}

.salon-map-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: center;
}

.salon-svg-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

/* salon svg table styles */
.salon-table {
  cursor: pointer;
  transition: all 0.2s;
}

.salon-table rect, .salon-table circle {
  fill: #2a2a2a;
  stroke: #555;
  stroke-width: 1.5;
  transition: fill 0.25s, stroke 0.25s;
}

.salon-table:hover rect,
.salon-table:hover circle {
  fill: rgba(255,107,0,0.15);
  stroke: var(--orange);
}

.salon-table.occupied rect,
.salon-table.occupied circle {
  fill: rgba(122,106,88,0.15);
  stroke: var(--muted);
  cursor: not-allowed;
}

.salon-table.selected rect,
.salon-table.selected circle {
  fill: rgba(232,35,14,0.2);
  stroke: var(--red);
  stroke-width: 2;
}

.salon-table text {
  fill: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  transition: fill 0.25s;
}

.salon-table.selected text { fill: var(--cream); }
.salon-table.occupied text { fill: rgba(122,106,88,0.6); }

.salon-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid;
}

.legend-dot.available { border-color: var(--border); background: var(--bg2); }
.legend-dot.occupied { border-color: var(--muted); background: rgba(122,106,88,0.15); }
.legend-dot.selected { border-color: var(--red); background: rgba(232,35,14,0.2); }

/* Panel 2 — Nivel */
.nivel-panel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.nivel-mini-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.nivel-mini-card:hover {
  border-color: var(--level-color, var(--orange));
  transform: translateY(-3px);
}

.nivel-mini-card.selected {
  border-color: var(--level-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--level-color) 35%, transparent);
}

.nivel-mini-card .lv-emoji { font-size: 32px; display: block; margin-bottom: 8px; }
.nivel-mini-card .lv-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 1px;
}

/* Panel 3 — Confirm */
.confirm-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.confirm-summary {
  display: flex;
  gap: 32px;
  padding: 20px;
  background: var(--bg2);
  border-radius: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.confirm-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.confirm-summary-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.confirm-summary-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: 1px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--orange);
}

.form-field input::placeholder { color: var(--muted); }

.form-full { grid-column: span 2; }

.reserva-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.reserva-nav .btn {
  flex: 1 1 100%;
}

/* Success state — popup */
.reserva-success {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reserva-success.show {
  display: flex;
}

.reserva-success-inner {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  animation: panel-in 0.5s cubic-bezier(0.34,1.36,0.64,1);
}

.success-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.success-icon {
  font-size: 80px;
  display: block;
  margin-bottom: 24px;
  animation: success-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}

@keyframes success-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 64px;
  color: var(--cream);
  margin-bottom: 12px;
}

.success-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

.success-code {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 16px 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 6px;
  color: var(--red);
  margin-bottom: 32px;
}

/* ── Gallery ──────────────────────────────────── */
#galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
  filter: saturate(0.8);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
  filter: saturate(1.3) brightness(0.85);
}

.gallery-flame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(232,35,14,0.65) 0%,
    rgba(255,107,0,0.3) 30%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.gallery-item:hover .gallery-flame-overlay { opacity: 1; }

/* ── Footer ───────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 60px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 4px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(122,106,88,0.5);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover { color: var(--orange); }


/* ── Scroll reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  #nav { padding: 20px 24px; }
  #nav.scrolled { padding: 14px 24px; }

  nav ul { display: none; }

  #hero {
    height: auto;
    min-height: 100svh;
    padding: 100px 24px 48px;
    align-items: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-items: flex-start;
    text-align: left;
    position: relative;
    gap: 0;
  }

  .hero-eyebrow { justify-content: flex-start; }

  .hero-text-col {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    display: block;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 1;
    position: absolute;
    right: -50px;
    top: 0;
    z-index: 0;
    pointer-events: none;
    align-items: center;
  }

  .hero-stats {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    align-self: auto;
    margin-top: 24px;
  }

  .chile-hero-video { width: min(320px, 76vw); }

  #levels { padding: 64px 24px; }
  .levels-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .levels-grid .level-card-wrap:last-child { grid-column: span 2; max-width: 280px; margin: 0 auto; }

  #menu { padding: 64px 24px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }

  #reserva { padding: 64px 24px; }
  .nivel-panel-grid { grid-template-columns: repeat(3, 1fr); }
  .nivel-panel-grid .nivel-mini-card:nth-child(4),
  .nivel-panel-grid .nivel-mini-card:nth-child(5) {
    grid-column: span 1;
  }

  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }

  #galeria {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }

  #galeria .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .hero-sub { font-size: 14px; }
  .levels-grid { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: flex-start; }
  .nivel-panel-grid { grid-template-columns: repeat(2, 1fr); }
  .salon-map-wrap { padding: 20px 12px; }
  .confirm-form { padding: 24px 20px; }
  .confirm-summary { gap: 16px; }
  .step-line { width: 40px; }
}
