/* ==========================================================================
   QUIMERA XO · LIENZO GASTRONÓMICO — DEMO INTERACTIVA DU PIXEL & CODE
   Inspiración: DiverXO (Vanguardia teatral, Lienzos, Scrollytelling & Alquimia)
   ========================================================================== */

@property --xo-spot-inner {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

@property --xo-spot-outer {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

:root {
  --xo-obsidian: #070506;
  --xo-stage: #0e0a0c;
  --xo-velvet: #170d12;
  --xo-silk: #f7f1e6;
  --xo-ivory: #fffbf4;
  --xo-crimson: #d91e36;
  --xo-crimson-glow: rgba(217, 30, 54, 0.36);
  --xo-gold: #dfba69;
  --xo-gold-soft: rgba(223, 186, 105, 0.22);
  --xo-ink-dark: #161013;
  --xo-muted: #b3a69b;
  --xo-line: rgba(247, 241, 230, 0.13);
  --xo-serif: 'Cormorant Garamond', Georgia, serif;
  --xo-display: 'Syne', 'Montserrat', system-ui, sans-serif;
  --xo-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --xo-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.xo-body {
  margin: 0;
  background-color: var(--xo-obsidian);
  color: var(--xo-silk);
  font-family: var(--xo-sans);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.xo-skip {
  position: absolute;
  top: -100px;
  left: 18px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--xo-crimson);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.xo-skip:focus {
  top: 14px;
}

/* Cursor Halo Teatral (solo en dispositivos con puntero fino) */
.xo-cursor-halo {
  display: none;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .xo-cursor-halo {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    margin-left: -19px;
    margin-top: -19px;
    border-radius: 50%;
    border: 1px solid rgba(223, 186, 105, 0.6);
    background: radial-gradient(circle, rgba(217, 30, 54, 0.16), transparent 70%);
    pointer-events: none;
    z-index: 180;
    transition: scale 0.22s ease, border-color 0.22s ease;
    will-change: transform;
  }
  .xo-cursor-halo.is-active {
    scale: 1.85;
    border-color: var(--xo-crimson);
  }
}

/* ==========================================================================
   INTRO TÚNEL ONÍRICO 3D CON COMIDA EN VUELO (ESTILO DIVERXO + REPRODUCIR)
   ========================================================================== */
.xo-dream-intro {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  perspective: 820px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(253, 186, 140, 0.28) 0%, rgba(118, 22, 46, 0.42) 26%, #050304 68%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.xo-dream-intro.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.xo-dream-intro__portal {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe4cc 0%, #f59e8b 38%, rgba(217, 30, 54, 0) 72%);
  filter: blur(8px);
  opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
  .xo-dream-intro:not(.is-finished) .xo-dream-intro__portal {
    animation: xo-portal-expand 4.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@keyframes xo-portal-expand {
  0% { transform: scale(0.35); opacity: 0.4; }
  72% { transform: scale(1.65); opacity: 0.88; }
  100% { transform: scale(6.5); opacity: 1; }
}

.xo-dream-tunnel {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.xo-fly-food {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(140px, 19vw, 250px);
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.75));
  opacity: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
  .xo-dream-intro:not(.is-finished) .xo-fly-food--1 {
    animation: xo-tunnel-fly-1 4.2s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  }
  .xo-dream-intro:not(.is-finished) .xo-fly-food--2 {
    animation: xo-tunnel-fly-2 4.1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
  }
  .xo-dream-intro:not(.is-finished) .xo-fly-food--3 {
    animation: xo-tunnel-fly-3 4.0s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
  }
  .xo-dream-intro:not(.is-finished) .xo-fly-food--4 {
    animation: xo-tunnel-fly-4 3.9s cubic-bezier(0.16, 1, 0.3, 1) 1.25s both;
  }
  .xo-dream-intro:not(.is-finished) .xo-fly-food--5 {
    animation: xo-tunnel-fly-center 4.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
  }
}

@keyframes xo-tunnel-fly-1 {
  0% { opacity: 0; transform: translate3d(-16vw, -10vh, -900px) scale(0.25) rotate(-18deg); }
  25% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-44vw, -24vh, 320px) scale(1.65) rotate(12deg); }
}

@keyframes xo-tunnel-fly-2 {
  0% { opacity: 0; transform: translate3d(18vw, 8vh, -950px) scale(0.22) rotate(16deg); }
  25% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(46vw, 22vh, 330px) scale(1.7) rotate(-14deg); }
}

@keyframes xo-tunnel-fly-3 {
  0% { opacity: 0; transform: translate3d(-18vw, 14vh, -920px) scale(0.24) rotate(10deg); }
  25% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-42vw, 28vh, 300px) scale(1.6) rotate(-16deg); }
}

@keyframes xo-tunnel-fly-4 {
  0% { opacity: 0; transform: translate3d(15vw, -14vh, -940px) scale(0.24) rotate(-12deg); }
  25% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(42vw, -26vh, 310px) scale(1.6) rotate(18deg); }
}

@keyframes xo-tunnel-fly-center {
  0% { opacity: 0; transform: translate3d(0, 4vh, -1050px) scale(0.18); }
  30% { opacity: 1; }
  82% { opacity: 1; transform: translate3d(0, -2vh, 80px) scale(1.18); }
  100% { opacity: 0; transform: translate3d(0, -4vh, 360px) scale(1.95); }
}

.xo-dream-intro__copy {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.xo-dream-intro__copy small {
  display: block;
  margin-bottom: 10px;
  font-family: var(--xo-mono);
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  color: #ffd8be;
  text-transform: uppercase;
}

.xo-dream-intro__copy strong {
  display: block;
  font-family: var(--xo-display);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.8);
}

.xo-dream-intro__copy span {
  display: block;
  margin-top: 10px;
  font-family: var(--xo-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--xo-gold);
}

.xo-dream-intro__skip {
  position: absolute;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  z-index: 6;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(7, 5, 6, 0.68);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--xo-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.xo-dream-intro__skip:hover {
  border-color: var(--xo-gold);
  color: var(--xo-gold);
}

/* Cinta superior Demo DU Pixel & Code */
.xo-demo-bar {
  position: relative;
  z-index: 110;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 8px 18px;
  background: #14080d;
  border-bottom: 1px solid var(--xo-line);
  font-size: 0.76rem;
  color: rgba(247, 241, 230, 0.82);
  text-align: center;
}

.xo-demo-bar b {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(217, 30, 54, 0.22);
  border: 1px solid rgba(217, 30, 54, 0.5);
  color: #ffb3be;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.xo-demo-bar a {
  color: var(--xo-gold);
  font-weight: 700;
  text-decoration: none;
}

/* Header flotante vanguardista */
.xo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 5, 6, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--xo-line);
}

.xo-container {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.xo-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.xo-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--xo-silk);
  text-decoration: none;
}

.xo-brand__monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--xo-gold);
  background: radial-gradient(circle at 50% 38%, rgba(217, 30, 54, 0.42), rgba(7, 5, 6, 0.96));
  color: var(--xo-gold);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(217, 30, 54, 0.24);
}

.xo-brand__monogram svg {
  width: 24px;
  height: 24px;
  display: block;
}

.xo-brand__text strong {
  display: block;
  font-family: var(--xo-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xo-brand__text small {
  display: block;
  color: var(--xo-muted);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.xo-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.xo-nav a {
  color: rgba(247, 241, 230, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.xo-nav a:hover,
.xo-nav a:focus-visible {
  color: var(--xo-gold);
}

.xo-header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--xo-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.xo-btn--sm {
  padding: 9px 16px;
  font-size: 0.7rem;
}

.xo-btn--crimson {
  background: linear-gradient(135deg, var(--xo-crimson), #a31225);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(217, 30, 54, 0.35);
}

.xo-btn--crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(217, 30, 54, 0.5);
}

.xo-btn--ghost {
  background: rgba(247, 241, 230, 0.04);
  border-color: rgba(223, 186, 105, 0.38);
  color: var(--xo-silk);
}

.xo-btn--ghost:hover {
  border-color: var(--xo-gold);
  color: var(--xo-gold);
}

.xo-btn:focus-visible,
.xo-table-spot:focus-visible {
  outline: 2px solid var(--xo-gold);
  outline-offset: 3px;
}

.xo-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--xo-line);
  background: transparent;
  color: var(--xo-silk);
  cursor: pointer;
}

.xo-mobile-menu {
  padding: 16px 20px 24px;
  background: var(--xo-stage);
  border-bottom: 1px solid var(--xo-line);
}

.xo-mobile-menu nav {
  display: grid;
  gap: 12px;
}

.xo-mobile-menu a {
  color: var(--xo-silk);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   1. HERO ONÍRICO CON COMIDA 3D EN VUELO + PAISAJE SURREALISTA (ESTILO DIVERXO)
   ========================================================================== */
.xo-hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 0 54px;
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(12, 6, 9, 0.52) 0%, rgba(24, 10, 16, 0.18) 42%, rgba(12, 6, 9, 0.78) 88%, #0e0a0c 100%),
    url('../images/demos/restaurante-mundo-onirico.webp') center / cover no-repeat;
}

.xo-embers-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Creación culinaria alada principal planeando en el cielo onírico + ingredientes flotantes */
.xo-hero-sky-stage {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: clamp(230px, 34vh, 340px);
  margin-bottom: 6px;
  pointer-events: none;
}

.xo-flying-centerpiece {
  width: clamp(240px, 33vw, 430px);
  height: auto;
  filter: drop-shadow(0 28px 44px rgba(18, 5, 10, 0.62));
  will-change: transform;
}

.xo-floating-side {
  position: absolute;
  width: clamp(110px, 14vw, 195px);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(12, 4, 8, 0.58));
  opacity: 0.92;
}

.xo-floating-side--left {
  left: max(2%, 24px);
  top: 8%;
}

.xo-floating-side--right {
  right: max(2%, 24px);
  top: 14%;
}

@media (prefers-reduced-motion: no-preference) {
  .xo-body:not(.is-motion-paused) .xo-flying-centerpiece {
    animation: xo-winged-glide 6.8s ease-in-out infinite;
  }
  .xo-body:not(.is-motion-paused) .xo-floating-side--left {
    animation: xo-float-a 8.5s ease-in-out infinite;
  }
  .xo-body:not(.is-motion-paused) .xo-floating-side--right {
    animation: xo-float-b 9.5s ease-in-out infinite;
  }
}

@keyframes xo-winged-glide {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-2.2deg) scale(1);
  }
  50% {
    transform: translate3d(0, -22px, 0) rotate(2.4deg) scale(1.045);
  }
}

@keyframes xo-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg); }
  50% { transform: translate3d(14px, -18px, 0) rotate(5deg); }
}

@keyframes xo-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(-16px, -22px, 0) rotate(-4deg); }
}

.xo-hero__center-copy {
  position: relative;
  z-index: 4;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.xo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffe3b3;
  font-family: var(--xo-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.xo-kicker::before,
.xo-kicker::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(255, 227, 179, 0.65);
}

.xo-hero h1 {
  margin: 0 0 16px;
  font-family: var(--xo-display);
  font-size: clamp(2.2rem, 4.9vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 10px 36px rgba(10, 4, 7, 0.72);
}

.xo-hero h1 em {
  display: block;
  font-family: var(--xo-serif);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  font-size: 1.08em;
  color: #ffe2a8;
}

.xo-hero__lead {
  max-width: 680px;
  margin: 0 auto 26px;
  color: rgba(255, 248, 240, 0.92);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.65;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.68);
}

.xo-hero__bottom-bar {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

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

.xo-pill-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(12, 7, 9, 0.62);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--xo-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.xo-pill-ctrl:hover {
  border-color: var(--xo-gold);
  color: var(--xo-gold);
}

/* ==========================================================================
   1.5 MORFOLOGÍA DE NUESTROS MENÚS (3 TARJETAS DE COMIDA 3D QUE SALTAN EN HOVER)
   ========================================================================== */
.xo-morphology {
  padding: 96px 0 88px;
  background: var(--xo-silk);
  color: var(--xo-ink-dark);
}

.xo-morphology .xo-kicker {
  color: #9e1427;
}

.xo-morphology .xo-kicker::before,
.xo-morphology .xo-kicker::after {
  background: rgba(158, 20, 39, 0.45);
}

.xo-morphology .xo-section-intro p {
  color: #4b3d43;
}

.xo-morph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.xo-morph-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  border-radius: 26px;
  background: #efe7da;
  border: 1px solid rgba(22, 16, 19, 0.1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.xo-morph-card__figure {
  display: grid;
  place-items: center;
  height: 220px;
  margin-bottom: 20px;
  perspective: 600px;
}

.xo-morph-card__figure img {
  max-height: 195px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(22, 10, 14, 0.28));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .xo-body:not(.is-motion-paused) .xo-morph-card__figure img {
    animation: xo-cutout-breathe 5.2s ease-in-out infinite;
  }
}

@keyframes xo-cutout-breathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(1.8deg); }
}

.xo-morph-card:hover,
.xo-morph-card:focus-visible {
  background: #170d12;
  color: var(--xo-silk);
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(22, 10, 14, 0.26);
}

.xo-morph-card:hover .xo-morph-card__figure img,
.xo-morph-card:focus-visible .xo-morph-card__figure img {
  animation-play-state: paused;
  transform: scale(1.16) translateY(-10px) rotate(-3deg);
  filter: drop-shadow(0 28px 40px rgba(217, 30, 54, 0.42));
}

.xo-morph-card small {
  display: block;
  font-family: var(--xo-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9e1427;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.xo-morph-card:hover small {
  color: var(--xo-gold);
}

.xo-morph-card h3 {
  margin: 8px 0 10px;
  font-family: var(--xo-serif);
  font-size: 1.7rem;
  line-height: 1.12;
}

.xo-morph-card p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.xo-morph-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #161013;
  font-family: var(--xo-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* Cinta cinética continua (Marquee de vanguardia) */
.xo-marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--xo-crimson);
  color: #ffffff;
  border-block: 1px solid rgba(255, 255, 255, 0.2);
}

.xo-marquee__track {
  display: flex;
  width: max-content;
  gap: 38px;
  font-family: var(--xo-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .xo-body:not(.is-motion-paused) .xo-marquee__track {
    animation: xo-marquee-scroll 28s linear infinite;
  }
}

@keyframes xo-marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   2. SCROLLYTELLING EN 3 ACTOS ("LOS LIENZOS COMESTIBLES")
   ========================================================================== */
.xo-scrolly {
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(217, 30, 54, 0.12), transparent 50%),
    var(--xo-stage);
}

.xo-section-intro {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.xo-section-intro h2 {
  margin: 10px 0 16px;
  font-family: var(--xo-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  font-weight: 600;
  line-height: 1.04;
}

.xo-section-intro h2 em {
  color: var(--xo-gold);
  font-style: italic;
}

.xo-section-intro p {
  margin: 0;
  color: var(--xo-muted);
  font-size: 1.04rem;
}

.xo-scrolly__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.xo-scrolly__stage {
  position: sticky;
  top: 108px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(23, 13, 18, 0.86);
  border: 1px solid rgba(223, 186, 105, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.xo-stage-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.xo-stage-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.65s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.xo-stage-visual img.is-current {
  opacity: 1;
  transform: scale(1);
}

.xo-stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xo-stage-caption strong {
  font-family: var(--xo-serif);
  font-size: 1.45rem;
  color: var(--xo-gold);
}

.xo-stage-caption span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 30, 54, 0.5);
  background: rgba(217, 30, 54, 0.16);
  color: #ffc2cb;
  font-family: var(--xo-mono);
  font-size: 0.72rem;
}

.xo-acts-list {
  display: grid;
  gap: 48px;
}

.xo-act-card {
  padding: 38px 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--xo-line);
  transition: border-color 0.35s ease, background-color 0.35s ease, transform 0.35s ease;
}

.xo-act-card.is-active {
  border-color: rgba(223, 186, 105, 0.62);
  background: linear-gradient(145deg, rgba(217, 30, 54, 0.1), rgba(23, 13, 18, 0.92));
}

/* Animación progresiva en scroll usando view() cuando está disponible */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes xo-act-reveal {
      entry 0% {
        opacity: 0.35;
        transform: translateY(36px) scale(0.96);
      }
      entry 100%,
      exit 0% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
      exit 100% {
        opacity: 0.55;
        transform: translateY(-18px) scale(0.98);
      }
    }

    .xo-act-card {
      animation: xo-act-reveal auto linear both;
      animation-timeline: view();
    }
  }
}

.xo-act-card__num {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--xo-crimson);
  font-family: var(--xo-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.xo-act-card h3 {
  margin: 0 0 12px;
  font-family: var(--xo-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  color: var(--xo-silk);
}

.xo-act-card p {
  margin: 0 0 18px;
  color: rgba(247, 241, 230, 0.78);
}

.xo-act-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xo-act-notes span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(223, 186, 105, 0.1);
  border: 1px solid rgba(223, 186, 105, 0.28);
  color: var(--xo-gold);
  font-size: 0.74rem;
  font-weight: 600;
}

/* ==========================================================================
   3. LENTE INTERACTIVO SOBRE EL LIENZO (SPOTLIGHT REVEAL CON @property)
   ========================================================================== */
.xo-spotlight-section {
  padding: 104px 0;
  background: var(--xo-silk);
  color: var(--xo-ink-dark);
}

.xo-spotlight-section .xo-kicker {
  color: #9e1427;
}

.xo-spotlight-section .xo-section-intro p {
  color: #4b3d43;
}

.xo-canvas-lens {
  position: relative;
  max-width: 1080px;
  margin: 0 auto 28px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(22, 16, 19, 0.14);
  box-shadow: 0 28px 65px rgba(22, 16, 19, 0.18);
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.xo-canvas-lens:hover {
  --xo-spot-inner: 135px;
  --xo-spot-outer: 220px;
}

.xo-canvas-lens__base {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.04) brightness(0.86);
}

/* Capa revelada por el puntero usando mask-image + custom properties registradas */
.xo-canvas-lens__reveal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(217, 30, 54, 0.26), transparent 45%);
  transition: --xo-spot-inner 0.24s ease-out, --xo-spot-outer 0.24s ease-out;
  -webkit-mask-image: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    black var(--xo-spot-inner, 0px),
    transparent var(--xo-spot-outer, 0px)
  );
  mask-image: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    black var(--xo-spot-inner, 0px),
    transparent var(--xo-spot-outer, 0px)
  );
  mask-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .xo-canvas-lens__reveal {
    transition: none !important;
  }
}

.xo-canvas-lens__reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.38) contrast(1.12) brightness(1.08);
}

.xo-canvas-lens__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 5, 6, 0.82);
  color: var(--xo-gold);
  font-family: var(--xo-mono);
  font-size: 0.72rem;
  pointer-events: none;
}

/* Contenido subyacente 100% visible y accesible por teclado (Garantía de accesibilidad) */
.xo-alchemy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.xo-alchemy-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--xo-ivory);
  border: 1px solid rgba(22, 16, 19, 0.1);
}

.xo-alchemy-card small {
  display: block;
  color: #9e1427;
  font-family: var(--xo-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xo-alchemy-card h3 {
  margin: 8px 0;
  font-family: var(--xo-serif);
  font-size: 1.45rem;
}

.xo-alchemy-card p {
  margin: 0;
  color: #4b3d43;
  font-size: 0.9rem;
}

/* ==========================================================================
   4. CONFIGURADOR DE EXPERIENCIA SÓLIDA & LÍQUIDA ("METAMORFOSIS") + MESAS
   ========================================================================== */
.xo-booking-section {
  padding: 110px 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(217, 30, 54, 0.14), transparent 46%),
    var(--xo-obsidian);
}

.xo-experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.xo-panel {
  padding: 34px;
  border-radius: 26px;
  background: rgba(23, 13, 18, 0.85);
  border: 1px solid var(--xo-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.xo-panel h3 {
  margin: 0 0 18px;
  font-family: var(--xo-serif);
  font-size: 1.75rem;
  color: var(--xo-gold);
}

.xo-choice-group {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.xo-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--xo-line);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.xo-choice:has(input:checked) {
  border-color: var(--xo-gold);
  background: rgba(223, 186, 105, 0.1);
}

.xo-choice input {
  accent-color: var(--xo-crimson);
}

.xo-choice__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xo-choice__info strong {
  display: block;
  font-size: 0.94rem;
  color: var(--xo-silk);
}

.xo-choice__info small {
  color: var(--xo-muted);
  font-size: 0.78rem;
}

.xo-choice__price {
  font-family: var(--xo-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--xo-gold);
  white-space: nowrap;
}

/* Mapa interactivo de mesas del salón */
.xo-floorplan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.xo-table-spot {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--xo-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--xo-silk);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.xo-table-spot:hover {
  border-color: rgba(223, 186, 105, 0.48);
  transform: translateY(-2px);
}

.xo-table-spot[aria-pressed="true"] {
  border-color: var(--xo-crimson);
  background: rgba(217, 30, 54, 0.18);
}

.xo-table-spot strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.xo-table-spot small {
  color: var(--xo-muted);
  font-size: 0.74rem;
}

.xo-ticket-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 30, 54, 0.18), rgba(223, 186, 105, 0.12));
  border: 1px solid rgba(223, 186, 105, 0.38);
}

.xo-ticket-total small {
  display: block;
  color: var(--xo-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.xo-ticket-total strong {
  font-family: var(--xo-serif);
  font-size: 2rem;
  color: var(--xo-gold);
}

/* Campos de formulario con validación diferida (:user-invalid) */
.xo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.xo-field--full {
  grid-column: 1 / -1;
}

.xo-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--xo-silk);
}

.xo-hint {
  display: block;
  margin-bottom: 6px;
  color: var(--xo-muted);
  font-size: 0.74rem;
}

.xo-input,
.xo-select,
.xo-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(247, 241, 230, 0.22);
  background: rgba(7, 5, 6, 0.75);
  color: var(--xo-silk);
  font-family: var(--xo-sans);
  font-size: 0.92rem;
}

.xo-input:focus,
.xo-select:focus,
.xo-textarea:focus {
  outline: none;
  border-color: var(--xo-gold);
}

.xo-error {
  display: none;
  margin-top: 6px;
  color: #ff8fa0;
  font-size: 0.78rem;
  font-weight: 600;
}

:is(.xo-input, .xo-select, .xo-textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

:is(.xo-input, .xo-select, .xo-textarea):is(:user-invalid, .user-invalid-fallback) + .xo-error {
  display: block;
}

/* Banda B2B hacia DU Pixel & Code */
.xo-du-banner {
  padding: 76px 0;
  background: #12080d;
  border-top: 1px solid var(--xo-line);
}

.xo-du-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.xo-du-banner h2 {
  margin: 8px 0 10px;
  font-family: var(--xo-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.xo-du-banner p {
  max-width: 620px;
  margin: 0;
  color: var(--xo-muted);
}

.xo-footer {
  padding: 30px 0;
  background: #050304;
  border-top: 1px solid var(--xo-line);
  font-size: 0.82rem;
  color: var(--xo-muted);
}

.xo-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

.xo-footer a {
  color: var(--xo-gold);
  text-decoration: none;
  margin-left: 16px;
}

/* Modal Nativo <dialog closedby="any"> Pase Gastronómico */
.xo-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(223, 186, 105, 0.5);
  background: #12090d;
  color: var(--xo-silk);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.85);
}

.xo-dialog:modal {
  overscroll-behavior: contain;
}

.xo-dialog::backdrop {
  background: rgba(5, 3, 4, 0.78);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.xo-dialog__body {
  padding: 32px;
}

.xo-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.xo-dialog__head h1 {
  margin: 0;
  font-family: var(--xo-serif);
  font-size: 1.75rem;
  color: var(--xo-gold);
}

.xo-dialog__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--xo-line);
  background: transparent;
  color: var(--xo-silk);
  cursor: pointer;
}

.xo-pass-summary {
  padding: 18px;
  margin: 18px 0;
  border-radius: 16px;
  border: 1px dashed rgba(223, 186, 105, 0.45);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  display: grid;
  gap: 7px;
}

/* Concierge & Sommelier IA Flotante */
.xo-sommelier {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.xo-sommelier__btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(223, 186, 105, 0.5);
  background: linear-gradient(135deg, #1b0c12, #090608);
  color: var(--xo-gold);
  font-family: var(--xo-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.xo-sommelier__panel {
  width: min(360px, calc(100vw - 32px));
  border-radius: 22px;
  background: #140b0f;
  border: 1px solid rgba(223, 186, 105, 0.38);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78);
  overflow: hidden;
}

.xo-sommelier__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #1f0e15;
  border-bottom: 1px solid var(--xo-line);
}

.xo-sommelier__msgs {
  max-height: 230px;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
}

.xo-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--xo-line);
}

.xo-bubble--user {
  justify-self: end;
  background: var(--xo-crimson);
  color: #ffffff;
  border-color: transparent;
}

.xo-sommelier__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--xo-line);
}

.xo-sommelier__chips button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(223, 186, 105, 0.32);
  background: transparent;
  color: var(--xo-gold);
  font-size: 0.72rem;
  cursor: pointer;
}

.xo-sommelier__form {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
}

.xo-sommelier__form input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--xo-line);
  background: rgba(0, 0, 0, 0.5);
  color: var(--xo-silk);
  font-size: 0.84rem;
}

.xo-sommelier__form button {
  padding: 9px 15px;
  border-radius: 999px;
  border: 0;
  background: var(--xo-crimson);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 980px) {
  .xo-nav {
    display: none;
  }
  .xo-menu-btn {
    display: inline-grid;
    place-items: center;
  }
  .xo-morph-grid,
  .xo-scrolly__layout,
  .xo-alchemy-grid,
  .xo-experience-grid {
    grid-template-columns: 1fr;
  }
  .xo-floating-side {
    display: none;
  }
  .xo-hero__bottom-bar {
    justify-content: center;
  }
  .xo-scrolly__stage {
    position: static;
  }
}

@media (max-width: 640px) {
  .xo-floorplan,
  .xo-form-grid {
    grid-template-columns: 1fr;
  }
  .xo-header__controls .xo-btn--crimson {
    display: none;
  }
}
