/* ==========================================================================
   Centro de eventos · ejemplo nivel Inmersiva (Orusay)
   Editorial crema: champaña, salvia y tinta. El recorrido de noche: el recinto en líneas blancas.
   ========================================================================== */

:root {
  --cream: #f4efe6;
  --sand: #e8dfd0;
  --paper: #fffdf8;
  --plan: #f3eee3;
  --ink: #1f2a24;
  --ink-2: #3d4943;
  --ink-3: #737a73;
  --line: rgba(31, 42, 36, 0.13);
  --gold: #c8a96a;
  --gold-2: #a4864a;
  --sage: #8fa487;
  --sage-2: #5e7a5a;
  --dusk: #171c26;
  --on-dark: #f7f1e6;
  --on-dark-2: rgba(247, 241, 230, 0.76);

  --aw-bg: #050814;
  --aw-gold: #e6b271;
  --aw-blue: #86b4ff;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --bar-h: 34px;
  --nav-h: 66px;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; font-variation-settings: "SOFT" 50; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; color: var(--gold-2); font-variation-settings: "SOFT" 100; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: calc(var(--bar-h) + 8px); }
.kicker { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-2); margin-bottom: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
  font: 600 0.95rem/1 var(--sans); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-orusay { border: 0; background: linear-gradient(135deg, #ffd9a3, var(--aw-gold) 55%, #a36f3a); color: #120d06; }
.btn-orusay:hover { background: linear-gradient(135deg, #ffe6c2, #f0c088 55%, #b98046); }
.btn-line-dark { background: transparent; border-color: rgba(244, 234, 213, 0.35); color: #f4ead5; }
.btn-line-dark:hover { background: rgba(244, 234, 213, 0.08); border-color: #f4ead5; }

/* ==========================================================================
   Marco Orusay y navegación
   ========================================================================== */
.demo-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter); background: var(--aw-bg); border-bottom: 1px solid rgba(230, 178, 113, 0.22); font-size: 0.78rem; color: rgba(244, 234, 213, 0.72);
}
.demo-back { display: inline-flex; gap: 6px; align-items: center; color: rgba(244, 234, 213, 0.85); white-space: nowrap; transition: color 0.3s; }
.demo-back:hover { color: var(--aw-gold); }
.demo-label { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-label b { color: var(--aw-gold); font-weight: 600; }
.demo-cta { color: var(--aw-blue); font-weight: 600; white-space: nowrap; }
.demo-cta:hover { color: #fff; }

.nav {
  position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); color: var(--on-dark); border-bottom: 1px solid transparent; transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.nav.is-solid { background: rgba(244, 239, 230, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); border-color: var(--line); }
.brand img { height: 34px; width: auto; transition: filter 0.4s; }
.nav.is-solid .brand img { filter: brightness(0.25) saturate(1.3); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 0.92rem; opacity: 0.86; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.nav.is-solid .nav-cta { background: var(--ink); color: var(--cream); border-color: var(--ink); }
/* Durante el recorrido (de noche) el menú también se oscurece */
.nav.is-solid.is-night { background: rgba(5, 7, 13, 0.74); color: var(--on-dark); border-color: rgba(244, 241, 234, 0.1); }
.nav.is-solid.is-night .brand img { filter: none; }
.nav.is-solid.is-night .nav-cta { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* ==========================================================================
   Portada
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: var(--on-dark); overflow: hidden; background: var(--dusk); }
.hero-media { position: absolute; inset: 0; }
.hero-dusk {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 70% 100%, rgba(255, 170, 110, 0.45), transparent 60%),
    radial-gradient(70% 50% at 20% 110%, rgba(143, 164, 135, 0.35), transparent 70%),
    linear-gradient(180deg, #151a2b 0%, #2e3350 40%, #7d6378 70%, #d69a77 100%);
}
.hero-dusk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 300' preserveAspectRatio='none'%3E%3Cpath d='M0,300 L0,230 Q-15,197 28,197 Q71,197 76,237 Q53,160 81,160 Q110,160 113,221 Q98,187 121,187 Q143,187 146,233 Q139,219 202,219 Q265,219 272,247 Q238,179 285,179 Q333,179 338,229 Q311,197 335,197 Q360,197 362,237 Q353,191 407,191 Q462,191 468,234 Q440,254 495,254 Q550,254 556,263 Q526,256 559,256 Q592,256 596,264 Q580,228 626,228 Q671,228 676,251 Q653,233 702,233 Q751,233 757,253 Q731,234 770,234 Q810,234 815,254 Q793,250 820,250 Q847,250 850,261 Q839,235 892,235 Q945,235 951,254 Q922,257 964,257 Q1005,257 1010,264 Q988,253 1022,253 Q1057,253 1061,262 Q1043,232 1078,232 Q1114,232 1117,253 Q1099,229 1131,229 Q1162,229 1166,252 Q1153,221 1215,221 Q1277,221 1284,248 Q1250,188 1289,188 Q1329,188 1333,233 Q1311,193 1335,193 Q1358,193 1361,235 Q1353,217 1417,217 Q1480,217 1487,246 Q1453,216 1502,216 Q1552,216 1557,246 Q1532,158 1580,158 Q1629,158 1634,220 Q1608,224 1639,224 Q1671,224 1674,249 L1620,300 L0,300 Z' fill='%23161c19'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  opacity: 0.96;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s; }
.hero-photo.is-loaded { opacity: 1; }
.hero-lights { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 18, 24, 0.72), rgba(15, 18, 24, 0.25) 60%, rgba(15, 18, 24, 0) 85%), linear-gradient(0deg, rgba(15, 18, 24, 0.7), rgba(15, 18, 24, 0) 40%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; align-self: center; max-width: 760px; padding: calc(var(--bar-h) + var(--nav-h) + 40px) var(--gutter) 30px; }
.hero-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.9rem); line-height: 1.03; margin-bottom: 22px; min-height: 2.06em; }
.hero-title em { color: #f2d49b; }
.hero-lead { font-size: clamp(1rem, 1.3vw, 1.14rem); color: var(--on-dark-2); max-width: 560px; margin-bottom: 30px; }
.hero-title > span, .hero-lead > span { display: block; animation: swap 0.7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.picker-q { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 10px; }
.picker-opts { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(247, 241, 230, 0.12); border: 1px solid rgba(247, 241, 230, 0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.picker-opts button { border: 0; background: none; color: var(--on-dark); font: 600 0.92rem var(--sans); padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: background 0.3s, color 0.3s; }
.picker-opts button:hover { background: rgba(247, 241, 230, 0.12); }
.picker-opts button[aria-checked="true"] { background: var(--on-dark); color: var(--ink); }
.hero-facts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px 34px; padding: 22px var(--gutter) 28px; border-top: 1px solid rgba(247, 241, 230, 0.16); font-size: 0.9rem; color: var(--on-dark-2); }
.hero-facts b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--on-dark); margin-right: 4px; }

/* ==========================================================================
   El recorrido: foto real → recinto en líneas blancas → vuelo → foto
   ========================================================================== */
.tour { --t-bg: #05070d; --t-ink: #f4f1ea; --t-dim: rgba(244, 241, 234, 0.66); --t-gold: #f0c987; --t-blue: #8fb8ff; height: 1000vh; background: var(--t-bg); color: var(--t-ink); }   /* el alto marca la velocidad: más vh = recorrido más lento */
.tour-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #0c1424 0%, #070a13 55%, var(--t-bg) 100%);
}
/* El lente (fotos + líneas + puntos) se mueve junto con el mouse: siempre calzan entre sí */
.tour-lens { position: absolute; inset: -14px; will-change: transform; }
.tour-photos, .tour-3d, .tour-pins, .tour-fallback { position: absolute; inset: 0; }
.tour-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.tour-photo { position: absolute; inset: 0; opacity: 0; overflow: hidden; }
.tour-photo img { width: 100%; height: 100%; object-fit: cover; }
/* En pantallas verticales la foto aérea se gira (el plano también): norte a la derecha */
.tour.is-portrait .tour-photo[data-stop="0"] img { position: absolute; left: 50%; top: 50%; width: var(--lh); height: var(--lw); max-width: none; transform: translate(-50%, -50%) rotate(90deg); }
.tour-fallback { display: none; padding: calc(var(--bar-h) + var(--nav-h) + 20px) var(--gutter) 30vh; }
.tour.no-3d .tour-fallback { display: block; }
.tour-fallback svg { width: 100%; height: 100%; opacity: 0.9; }
.tour-pins { pointer-events: none; }

/* Línea de luz que acompaña el paso de líneas a foto */
.tour-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 222, 170, 0.9) 18%, #fff 50%, rgba(255, 222, 170, 0.9) 82%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 210, 140, 0.45), 0 0 60px 10px rgba(255, 210, 140, 0.18);
  transition: opacity 0.25s;
}
.tour-shade {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0) 22%),
    linear-gradient(0deg, rgba(5, 7, 13, 0.82) 0%, rgba(5, 7, 13, 0.35) 26%, rgba(5, 7, 13, 0) 46%),
    radial-gradient(130% 100% at 50% 50%, transparent 60%, rgba(5, 7, 13, 0.55) 100%);
}

/* Textos de cada parada */
.tour-caps { position: absolute; left: var(--gutter); bottom: clamp(34px, 7vh, 72px); width: min(560px, calc(100% - 2 * var(--gutter) - 170px)); z-index: 3; pointer-events: none; min-height: 190px; }
/* Sin transiciones: el scroll mueve los textos (main.js), igual que las fotos y las líneas */
.tour-cap { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(14px); will-change: opacity, transform; }
.tour-cap[data-cap="0"] { opacity: 1; transform: none; }
.tour-cap.is-on { pointer-events: auto; }
.tour-kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t-gold); margin-bottom: 12px; }
.tour-cap h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.9vw, 3.4rem); line-height: 1.04; margin: 0 0 12px; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.tour-cap h2 em { color: var(--t-gold); }
.tour-cap > p:last-child, .tour-cap > p:not(.tour-kicker) { color: var(--t-dim); font-size: 1.02rem; max-width: 440px; margin: 0; }
.tour-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; font-size: 0.86rem; color: var(--t-dim); }
.tour-legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 10px; height: 10px; border-radius: 50%; }
.lg--g { background: var(--t-gold); box-shadow: 0 0 10px var(--t-gold); }
.lg--s { background: var(--t-blue); box-shadow: 0 0 10px var(--t-blue); }

/* Puntos de cada zona en el plano */
.zdot {
  position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; opacity: 0;
  cursor: pointer; transition: opacity 0.3s; --c: var(--t-gold);
}
.zdot--s { --c: var(--t-blue); }
.zdot i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(5, 7, 13, 0.6), 0 0 16px var(--c); }
.zdot i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--c); opacity: 0; animation: zpulse 2.6s ease-out infinite; }
.zdot:nth-child(3n + 2) i::after { animation-delay: 0.9s; }
.zdot:nth-child(3n) i::after { animation-delay: 1.7s; }
@keyframes zpulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
.zdot span {
  position: absolute; left: 14px; top: -13px; white-space: nowrap; font: 600 0.78rem/1 var(--sans); letter-spacing: 0.02em; color: var(--t-ink);
  padding: 7px 10px; border-radius: 999px; background: rgba(8, 12, 22, 0.86); border: 1px solid rgba(244, 241, 234, 0.16);
  opacity: 0; transform: translateX(-4px); transition: opacity 0.25s, transform 0.3s; pointer-events: none;
}
.zdot:hover span, .zdot:focus-visible span, .zdot.is-active span { opacity: 1; transform: none; }
.zdot.is-active i { transform: scale(1.25); }
.zdot:focus-visible { outline: none; }
.zdot:focus-visible i { outline: 2px solid #fff; outline-offset: 4px; }

/* Puntos sobre cada foto */
.spot { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.15s; }
.spot i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 0 14px rgba(255, 255, 255, 0.6); }
.spot span {
  position: absolute; left: 14px; top: -12px; white-space: nowrap; font: 600 0.76rem/1 var(--sans); color: #fff;
  padding: 6px 10px; border-radius: 999px; background: rgba(5, 7, 13, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.spot.is-left span { left: auto; right: 14px; }

/* Ficha de una zona */
.zone-card {
  position: absolute; z-index: 5; left: 0; top: 0; width: 320px; padding: 22px 22px 20px; border-radius: 18px;
  background: rgba(9, 13, 24, 0.9); border: 1px solid rgba(240, 201, 135, 0.35); color: var(--t-ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  animation: zcard 0.35s var(--ease);
}
.zone-card[hidden] { display: none; }
.zone-card.is-service { border-color: rgba(143, 184, 255, 0.4); }
@keyframes zcard { from { opacity: 0; transform: translateY(8px); } }
.zone-close { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--t-dim); font-size: 1.4rem; cursor: pointer; }
.zone-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.zone-group { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-gold); margin: 0 0 8px; }
.zone-card.is-service .zone-group { color: var(--t-blue); }
.zone-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 0 0 8px; }
.zone-text { color: var(--t-dim); font-size: 0.92rem; line-height: 1.5; margin: 0 0 14px; }
.zone-data { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.zone-data li { font-size: 0.76rem; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(244, 241, 234, 0.18); color: var(--t-ink); }
.zone-more { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--t-gold); font: 600 0.88rem var(--sans); cursor: pointer; }
.zone-more:hover { text-decoration: underline; }

/* Minimapa: dónde estás y hacia dónde miras */
.tour-map {
  position: absolute; right: var(--gutter); bottom: clamp(30px, 6vh, 64px); z-index: 4; width: 220px; padding: 10px 10px 9px;
  border-radius: 14px; background: rgba(6, 9, 18, 0.72); border: 1px solid rgba(244, 241, 234, 0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity 0.5s;
}
.tour.no-3d .tour-map { display: none; }
.tour-map-svg { display: block; width: 100%; height: auto; }
.tour .tour-map-svg .site { fill: rgba(244, 241, 234, 0.04) !important; stroke: rgba(244, 241, 234, 0.35); stroke-width: 0.8; }
.tour .tour-map-svg .park, .tour .tour-map-svg .path, .tour .tour-map-svg .annex { fill: rgba(244, 241, 234, 0.07) !important; stroke: rgba(244, 241, 234, 0.22); stroke-width: 0.4; }
.tour .tour-map-svg .park-line, .tour .tour-map-svg .sp-detail, .tour .tour-map-svg .sp-label, .tour .tour-map-svg .sp-badge, .tour .tour-map-svg .compass { display: none; }
.tour .tour-map-svg .tree { fill: none; stroke: rgba(244, 241, 234, 0.16); stroke-width: 0.5; }
.tour .tour-map-svg .sp-shape { fill: rgba(240, 201, 135, 0.1) !important; stroke: rgba(240, 201, 135, 0.55); stroke-width: 0.7; }
.mm-cone { fill: rgba(240, 201, 135, 0.32); stroke: rgba(240, 201, 135, 0.7); stroke-width: 0.6; transition: opacity 0.4s; }
.mm-dot { fill: #fff; stroke: var(--t-gold); stroke-width: 1.4; }
.tour-map.is-air .mm-cone { opacity: 0; }
.tour-map.is-air .mm-dot { r: 7; fill: rgba(240, 201, 135, 0.35); }
.tour-where { margin: 7px 2px 0; font-size: 0.74rem; color: rgba(244, 241, 234, 0.55); display: flex; gap: 6px; flex-wrap: wrap; }
.tour-where b { color: var(--t-ink); font-weight: 600; }

/* Riel de paradas */
.tour-rail { position: absolute; right: var(--gutter); top: calc(var(--bar-h) + var(--nav-h) + 26px); z-index: 4; display: grid; gap: 2px; justify-items: end; }
.tour-rail button {
  display: flex; align-items: center; gap: 10px; padding: 7px 0; border: 0; background: none; cursor: pointer;
  color: rgba(244, 241, 234, 0.45); font: 500 0.8rem var(--sans); transition: color 0.3s;
}
.tour-rail button b { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; order: 2; width: 26px; text-align: right; }
.tour-rail button span { opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.4s; }
.tour-rail button::after { content: ""; order: 3; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: width 0.4s var(--ease), background 0.3s; }
.tour-rail button:hover, .tour-rail button.is-on { color: var(--t-ink); }
.tour-rail button:hover span, .tour-rail button.is-on span { opacity: 1; transform: none; }
.tour-rail button.is-on::after { width: 40px; background: var(--t-gold); }
.tour-skip { margin-top: 14px; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 241, 234, 0.5); }
.tour-skip:hover { color: #fff; }
.tour-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; margin: 0; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 241, 234, 0.55); transition: opacity 0.5s; pointer-events: none; }
.tour-pending {
  position: absolute; left: var(--gutter); top: calc(var(--bar-h) + var(--nav-h) + 16px); z-index: 3; margin: 0;
  font: 500 0.72rem/1 ui-monospace, Consolas, monospace; letter-spacing: 0.06em; color: rgba(244, 241, 234, 0.55);
  padding: 7px 10px; border: 1px dashed rgba(244, 241, 234, 0.25); border-radius: 8px;
}
@media (max-width: 720px) {
  .tour { height: 900vh; }
  .tour-caps { right: var(--gutter); width: auto; bottom: 24px; min-height: 0; }
  .tour-cap h2 { font-size: clamp(1.7rem, 7.6vw, 2.3rem); }
  .tour-cap > p:not(.tour-kicker) { font-size: 0.92rem; }
  .tour-legend { margin-top: 12px; font-size: 0.8rem; }
  .tour-rail { top: calc(var(--bar-h) + var(--nav-h) + 12px); right: 12px; transform: none; gap: 0; }
  .tour-rail button { padding: 5px 0; }
  .tour-rail button b, .tour-rail button span, .tour-skip { display: none; }
  .tour-rail button::after { width: 14px; }
  .tour-rail button.is-on::after { width: 28px; }
  .zone-card { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .zdot span { display: none; }
  .zdot.is-active span { display: block; }
  .tour-hint { display: none; }
  .spot span { font-size: 0.7rem; padding: 5px 8px; }
  .tour-map { left: 12px; right: auto; top: calc(var(--bar-h) + var(--nav-h) + 10px); bottom: auto; width: 128px; padding: 7px 7px 6px; border-radius: 11px; }
  .tour-where { font-size: 0.64rem; margin-top: 4px; }
  .tour-where span { display: none; }
  .tour-pending { display: none; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */
section { position: relative; }
.sec-head { max-width: 800px; margin: 0 auto clamp(40px, 5vw, 64px); padding: 0 var(--gutter); text-align: center; }
.sec-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); }
.sec-lead { color: var(--ink-2); margin-top: 18px; font-size: 1.05rem; }

.ph { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; background: radial-gradient(120% 90% at 20% 10%, rgba(200, 169, 106, 0.3), transparent 60%), radial-gradient(90% 80% at 90% 100%, rgba(143, 164, 135, 0.35), transparent 60%), var(--sand); }
.ph::after { content: "Foto · " attr(data-ph); position: absolute; left: 12px; bottom: 10px; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--ink-3); padding: 4px 8px; border: 1px dashed rgba(31, 42, 36, 0.25); border-radius: 6px; }
.ph.is-loaded::after { display: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s, transform 1.2s var(--ease); }
.ph img.is-loaded { opacity: 1; }
.ph img:not([src]) { visibility: hidden; }

/* ---------- Espacios ---------- */
.espacios { padding: clamp(90px, 12vw, 150px) 0; }
.guests { max-width: 760px; margin: 0 auto 34px; padding: 0 var(--gutter); display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: center; }
.guests label { font-weight: 600; font-size: 0.9rem; }
.guests output { font-family: var(--serif); font-size: 2rem; min-width: 3ch; text-align: right; }
.guests-fit { grid-column: 1 / -1; text-align: center; font-size: 0.95rem; color: var(--ink-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--fill, 35%), var(--sand) var(--fill, 35%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); cursor: grab; box-shadow: 0 4px 12px rgba(31, 42, 36, 0.25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); cursor: grab; }

.explore { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); align-items: start; }
.map { background: var(--plan); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); }
.map-svg { width: 100%; height: auto; }
.map-svg .site { fill: #eee7d8; stroke: var(--ink); stroke-width: 0.5; }
.map-svg .park { fill: #e2ddd2; stroke: var(--ink); stroke-width: 0.25; }
.map-svg .park-line { stroke: var(--ink); stroke-width: 0.15; opacity: 0.5; }
.map-svg .path { fill: #e9dfcb; stroke: var(--ink); stroke-width: 0.2; opacity: 0.9; }
.map-svg .annex { fill: #ddd6c8; stroke: var(--ink); stroke-width: 0.25; opacity: 0.85; }
.map-svg .tree { fill: rgba(94, 122, 90, 0.18); stroke: rgba(31, 42, 36, 0.35); stroke-width: 0.2; }
.map-svg .sp { cursor: pointer; }
.map-svg .sp-shape { stroke: var(--ink); stroke-width: 0.5; transition: fill 0.3s, opacity 0.4s, stroke-width 0.3s; }
.map-svg .sp[data-kind="hall"] .sp-shape { fill: #fffdf8; }
.map-svg .sp[data-kind="glass"] .sp-shape { fill: #e3eef0; }
.map-svg .sp[data-kind="lawn"] .sp-shape { fill: #cfdcbf; }
.map-svg .sp[data-kind="plaza"] .sp-shape { fill: #ecdcc0; }
.map-svg .sp-detail { stroke: var(--ink); stroke-width: 0.15; fill: none; opacity: 0.55; pointer-events: none; }
.map-svg .sp-badge circle { fill: var(--ink); transition: fill 0.3s; }
.map-svg .sp-badge text { fill: var(--cream); font: 600 3.6px var(--sans); text-anchor: middle; dominant-baseline: central; }
.map-svg .sp-label { font: 500 3.4px var(--sans); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.map-svg .sp:hover .sp-shape, .map-svg .sp.is-active .sp-shape { stroke-width: 1.1; }
.map-svg .sp.is-active .sp-badge circle { fill: var(--gold-2); }
.map-svg .sp.is-out { opacity: 0.28; }
.map-svg .sp:focus { outline: none; }
.map-svg .sp:focus-visible .sp-shape { stroke: var(--gold-2); stroke-width: 1.4; }
.map-svg .compass { font: 600 3.2px var(--sans); fill: var(--ink-3); }

.space-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--bar-h) + var(--nav-h) + 20px); }
.space-card.is-swap { animation: swap 0.5s var(--ease); }
.space-photo { aspect-ratio: 16 / 10; border-radius: 0; }
.space-body { padding: 22px 24px 26px; }
.space-n { font-family: var(--serif); font-style: italic; color: var(--gold-2); }
.space-body h3 { font-size: 2rem; margin-bottom: 8px; }
.space-ideal { color: var(--ink-2); font-size: 0.96rem; margin-bottom: 18px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.caps div { padding: 12px 0; text-align: center; }
.caps div + div { border-left: 1px solid var(--line); }
.caps dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.caps dd { margin: 0; font-family: var(--serif); font-size: 1.7rem; }
.caps div.is-main dd { color: var(--gold-2); }
.caps div.is-main dt { color: var(--ink); font-weight: 600; }
.caps div.is-na dd { color: var(--ink-3); font-size: 1rem; line-height: 2.1; }
.space-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.space-feats li { font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.space-card.is-out .space-ideal::before { content: "Para esa cantidad de invitados te conviene otro espacio. "; color: #a0522d; font-weight: 600; }

/* ---------- Momentos ---------- */
.momentos { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 150px); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.g-item { margin: 0; }
.g-item .ph { aspect-ratio: 4 / 5; }
.g-item:nth-child(3n + 2) { margin-top: clamp(0px, 5vw, 70px); }
.g-item figcaption { font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin-top: 12px; color: var(--ink-2); }
.g-item:hover .ph img.is-loaded { transform: scale(1.05); }

/* ---------- Qué incluye ---------- */
.incluye { padding: clamp(80px, 10vw, 130px) 0; background: var(--sand); }
.incluye-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 36px); max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.incl { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); }
.incl h3 { font-size: 1.7rem; margin-bottom: 18px; }
.incl li { padding: 11px 0 11px 30px; border-top: 1px solid var(--line); position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--sage-2); font-weight: 700; }
.plus li::before { content: "+"; position: absolute; left: 3px; color: var(--gold-2); font-weight: 700; }
.plus li span { color: var(--ink-3); font-size: 0.88rem; }
.incl--extra { background: transparent; }
.incl-note { font-size: 0.88rem; color: var(--ink-3); margin-top: 16px; }

/* ---------- Equipo ---------- */
.equipo { padding: clamp(90px, 12vw, 150px) 0; }
.equipo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); align-items: center; }
.equipo-photo { aspect-ratio: 4 / 5; }
.equipo-copy h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 30px; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps span { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-2); }
.steps h3 { font-size: 1.35rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 0.96rem; }

/* ---------- Información práctica ---------- */
.visita { padding: clamp(70px, 9vw, 120px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.info li { padding: 28px 26px; border: 1px solid var(--line); margin: -1px 0 0 -1px; }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); font-weight: 700; color: var(--sage-2); margin-bottom: 16px; }
.info h3 { font-size: 1.35rem; margin-bottom: 6px; }
.info p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Consulta de fecha (guiada) ---------- */
.fecha { padding: clamp(80px, 11vw, 140px) var(--gutter); background: radial-gradient(70% 60% at 50% 0%, rgba(200, 169, 106, 0.18), transparent 70%), var(--cream); }
.fecha-card { max-width: 820px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 52px); box-shadow: 0 40px 80px -50px rgba(31, 42, 36, 0.45); }
.fecha-card header { text-align: center; margin-bottom: 30px; }
.fecha-card h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.wz-progress { height: 4px; background: var(--sand); border-radius: 4px; overflow: hidden; }
.wz-progress i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--sage-2), var(--gold)); transition: width 0.6s var(--ease); }
.wz-count { font-size: 0.8rem; color: var(--ink-3); margin: 10px 0 18px; }
.wz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-step.is-on { animation: swap 0.5s var(--ease); }
.wz-step legend { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 18px; padding: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-weight: 500; transition: all 0.3s; }
.choice span small { color: var(--ink-3); font-size: 0.8rem; font-weight: 400; }
.choice label:hover span { border-color: var(--ink-3); }
.choice input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choice input:checked + span small { color: rgba(244, 239, 230, 0.7); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.choice--spaces label.is-out { display: none; }
.wz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.wz-row .full { grid-column: 1 / -1; }
.wizard label:not(.choice label) { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.wizard input[type="date"], .wizard input[type="text"], .wizard input[type="tel"], .wizard input[type="email"], .wizard select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font: 400 1rem var(--sans);
}
.wizard input:focus, .wizard select:focus { outline: none; border-color: var(--sage-2); box-shadow: 0 0 0 3px rgba(94, 122, 90, 0.16); }
.wizard input.is-invalid { border-color: #b4553a; }
.opt { font-weight: 400; color: var(--ink-3); }
.wz-hint, .wz-sub { font-size: 0.88rem; color: var(--ink-3); margin-top: 12px; }
.wz-sub { margin: 18px 0 10px; }
.wz-guests { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.wz-guests output { font-family: var(--serif); font-size: 2.2rem; min-width: 3ch; text-align: right; }
.wz-budget { margin-top: 20px; max-width: 360px; }
.wz-error { min-height: 1.4em; margin-top: 14px; font-size: 0.88rem; color: #a0452d; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wz-nav [data-wz-next] { margin-left: auto; }

/* ==========================================================================
   Cierre Orusay, pie y ventana
   ========================================================================== */
.demo-end { padding: clamp(80px, 11vw, 140px) var(--gutter); text-align: center; color: #f4ead5; background: radial-gradient(80% 90% at 50% 0%, rgba(61, 123, 255, 0.16), transparent 60%), var(--aw-bg); }
.demo-end-inner { max-width: 780px; margin: 0 auto; }
.demo-kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aw-gold); margin-bottom: 16px; }
.demo-end h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.demo-end h2 em { color: var(--aw-gold); }
.demo-end-inner > p:not(.demo-kicker) { color: rgba(244, 234, 213, 0.74); font-size: 1.05rem; }
.demo-includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 34px; }
.demo-includes li { font-size: 0.86rem; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(230, 178, 113, 0.3); color: rgba(244, 234, 213, 0.85); }
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.demo-link { display: inline-block; margin-top: 22px; font-size: 0.9rem; color: var(--aw-blue); border-bottom: 1px solid rgba(134, 180, 255, 0.35); }
.foot { padding: 50px var(--gutter) 60px; text-align: center; display: grid; justify-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); }
.foot-logo { height: 30px; width: auto; margin-bottom: 8px; filter: brightness(0.25) saturate(1.3); }
.foot-demo { font-size: 0.8rem; color: var(--ink-3); max-width: 560px; }

.demo-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(230, 178, 113, 0.28); border-radius: 22px; background: #0a0e1c; color: #f4ead5; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9); }
.demo-dialog::backdrop { background: rgba(20, 22, 18, 0.55); backdrop-filter: blur(6px); }
.demo-dialog[open] { animation: swap 0.45s var(--ease); }
.dd-inner { padding: 30px 28px 26px; position: relative; max-height: calc(100vh - 40px); overflow: auto; }
.dd-close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.06); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.demo-dialog h2 { font-size: 1.45rem; margin-bottom: 16px; padding-right: 30px; }
.lead-card { background: #f4efe6; color: var(--ink); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font-size: 0.88rem; }
.lead-card p { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid rgba(31, 42, 36, 0.1); }
.lead-card p:last-child { border-bottom: 0; }
.lead-card span { color: var(--ink-3); }
.lead-card .lead-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-2); margin-bottom: 4px; border: 0; padding: 0; }
.wa { background: #0b141a; border-radius: 16px; padding: 14px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, 0.06); }
.wa-head { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; margin-bottom: 12px; }
.wa-head span:last-child { margin-left: auto; font-size: 0.72rem; color: #25d366; }
.wa-avatar { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--gold), #5e4a22); flex: none; }
.wa-bubble { margin-left: auto; max-width: 92%; width: fit-content; padding: 10px 12px 18px; border-radius: 12px 12px 4px 12px; background: #005c4b; color: #e9edef; font-size: 0.88rem; line-height: 1.45; white-space: pre-line; position: relative; }
.wa-bubble::after { content: "✓✓"; position: absolute; right: 9px; bottom: 3px; font-size: 0.66rem; color: #53bdeb; letter-spacing: -2px; }
.dd-text { font-size: 0.88rem; color: rgba(244, 234, 213, 0.7); margin-bottom: 18px; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-actions .btn { flex: 1 1 auto; }

/* ---------- Apariciones ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .g-item.rv:nth-child(3n + 2) { transition-delay: 0.1s; }
.js .g-item.rv:nth-child(3n) { transition-delay: 0.2s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .explore { grid-template-columns: 1fr; }
  .space-card { position: static; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .space-photo { aspect-ratio: auto; min-height: 100%; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .incluye-grid, .equipo-grid { grid-template-columns: 1fr; }
  .equipo-photo { aspect-ratio: 16 / 10; }
  .info { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-item:nth-child(3n + 2) { margin-top: 0; }
}

@media (max-width: 640px) {
  :root { --bar-h: 32px; --nav-h: 56px; }
  .demo-label-extra, .demo-back-text { display: none; }
  .demo-bar { font-size: 0.74rem; }
  .brand img { height: 28px; }
  .hero-inner { padding-top: calc(var(--bar-h) + var(--nav-h) + 26px); }
  .hero-photo { object-position: 64% center; }   /* en celular se ve el salón iluminado, no el pasto vacío */
  .hero-shade { background: linear-gradient(0deg, rgba(15, 18, 24, 0.82), rgba(15, 18, 24, 0.52) 50%, rgba(15, 18, 24, 0.36)); }   /* el texto va a todo el ancho: oscurece parejo */
  .hero-title { font-size: clamp(2.2rem, 9.6vw, 2.9rem); min-height: 0; }
  .picker-opts { display: grid; grid-template-columns: 1fr; border-radius: 18px; width: 100%; }
  .picker-opts button { text-align: left; }
  .hero-facts { gap: 6px 20px; font-size: 0.82rem; }
  .hero-facts b { font-size: 1.2rem; }
  .guests { grid-template-columns: 1fr auto; }
  .guests label { grid-column: 1 / -1; text-align: center; }
  .space-card { display: block; }
  .space-photo { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; }
  .wz-row { grid-template-columns: 1fr; }
  .choice span { min-height: 44px; padding: 0 16px; }
  .demo-actions .btn { width: 100%; }
}
