/* =========================================================
   Recorrido visual al hacer scroll (ilustraciones propias)
   Fachada → Oficinas → Pintura/Drywall/Pisos → Cotización
   Sin videos ni imágenes externas: todo es SVG en línea.
   ========================================================= */
.tour { position: relative; background: var(--ink); color: #fff; isolation: isolate; }
.tour__stage { position: relative; padding: 104px 0 24px; }
.tour__atmo { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.tour__atmo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 600px at 70% 35%, rgba(29,78,137,.45), transparent 62%), linear-gradient(180deg, rgba(5,13,29,0) 60%, var(--ink) 100%); }
.tour__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.tour__glow--1 { width: 520px; height: 520px; right: -140px; top: -100px; background: radial-gradient(circle, #2f80c4, transparent 65%); }
.tour__glow--2 { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, #4fb3e8, transparent 65%); opacity: .3; }
.tour__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(143,211,247,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(143,211,247,.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 25%, transparent 75%); }

/* ---- Paso: tarjeta de texto + escena ---- */
.tour__step, .tour__chrome {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "card scene";
  gap: clamp(28px, 4vw, 64px); align-items: center;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 20px 56px;
}
.tour__card { grid-area: card; min-width: 0; }
.tour__scene, .tour__frame { grid-area: scene; position: relative; width: 100%; border-radius: 28px; }
.tour__scene { overflow: hidden; aspect-ratio: 1 / 1; max-height: 720px; background: #0b1a30; box-shadow: var(--shadow-lg); }
.tour__scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tour__ghost { grid-area: card; }

/* Etiqueta "Ilustración" (siempre visible) */
.tour__label, .tour__illus { display: inline-flex; align-items: center; gap: .45em; padding: .42em .85em; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .01em; color: #dbeefa; background: rgba(5,13,29,.62); border: 1px solid rgba(143,211,247,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tour__illus { position: absolute; left: 14px; top: 14px; z-index: 2; }
.tour__label { position: absolute; left: 16px; top: 16px; }

/* ---- Texto ---- */
.tour .chip { margin-bottom: 18px; }
.tour__eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 14px; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-2); }
.tour__eyebrow > span:first-child { display: inline-grid; place-items: center; min-width: 2.3em; height: 2.3em; border-radius: 999px; border: 1px solid rgba(143,211,247,.35); background: rgba(79,179,232,.1); letter-spacing: 0; color: #fff; }
.tour__title { color: #fff; font-size: clamp(2rem, 3.7vw, 3.25rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 .45em; }
.tour__lead { color: #c7d8ea; font-size: clamp(1rem, 1.35vw, 1.15rem); max-width: 560px; }
.tour__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.tour__points { margin-top: 4px; }
.tour__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.tour__tags li { padding: .45em .95em; border-radius: 999px; font-size: .88rem; font-weight: 600; color: #e6f3fb; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.tour__list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; max-width: 560px; }
.tour__list li { display: grid; gap: 2px; padding: 14px 16px 14px 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-left: 3px solid var(--sky); color: #c7d8ea; }
.tour__list strong { color: #fff; font-family: var(--display); font-weight: 600; }
.tour__small { color: #9fb6cc; font-size: .92rem; }
.tour__small a { color: var(--sky-2); }
.tour__hint, .tour__rail, .tour__skip, .tour__chrome { display: none; }

/* =========================================================
   MODO ANIMADO (lo activa tour.js; sin JS o con
   "reducir movimiento" se ve la versión estática de arriba)
   ========================================================= */
.tour.is-live { height: 470vh; }
.tour.is-live .tour__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.tour.is-live .tour__step, .tour.is-live .tour__chrome { position: absolute; inset: 0; margin: 0 auto; padding: 92px 20px 40px; align-content: center; }
.tour.is-live .tour__chrome { display: grid; z-index: 3; pointer-events: none; }
.tour.is-live .tour__scene, .tour.is-live .tour__frame { height: min(calc(100svh - 150px), 720px); aspect-ratio: auto; }
.tour.is-live .tour__scene { box-shadow: none; background: transparent; will-change: transform, opacity; transform-origin: var(--fx, 50%) var(--fy, 50%); }
.tour.is-live .tour__scene > svg { transform-origin: var(--fx, 50%) var(--fy, 50%); }
.tour.is-live .tour__frame { box-shadow: 0 0 0 1px rgba(143,211,247,.18), var(--shadow-lg), 0 0 80px -30px rgba(79,179,232,.5); }
.tour.is-live .tour__illus { display: none; }
.tour.is-live .tour__card { will-change: transform, opacity; pointer-events: none; }
.tour.is-live .tour__step.is-active .tour__card { pointer-events: auto; }
.tour.is-live .tour__step[data-step="0"] { z-index: 2; }
.tour.is-live .tour__hint { display: inline-flex; align-items: center; gap: .7em; margin: 6px 0 0; color: #9fb6cc; font-size: .88rem; font-weight: 600; }
.tour__mouse { width: 20px; height: 32px; border: 2px solid rgba(255,255,255,.55); border-radius: 12px; position: relative; flex: none; }
.tour__mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--sky); animation: tourWheel 1.6s ease-in-out infinite; }
@keyframes tourWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* Riel de progreso dentro del marco */
.tour.is-live .tour__rail { display: flex; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); gap: 6px; padding: 6px; border-radius: 999px; background: rgba(5,13,29,.62); border: 1px solid rgba(143,211,247,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: auto; max-width: calc(100% - 24px); }
.tour__rail button { position: relative; overflow: hidden; border: 0; cursor: pointer; padding: .5em .95em; border-radius: 999px; background: rgba(255,255,255,.06); color: #b9cde0; font: 600 .8rem/1 var(--font); white-space: nowrap; transition: color .3s, background .3s; }
.tour__rail button::before { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); opacity: .35; }
.tour__rail button span { position: relative; }
.tour__rail button.is-on { color: #fff; background: rgba(79,179,232,.18); }
.tour__rail button:hover { color: #fff; }
.tour.is-live .tour__skip { display: block; position: absolute; right: 20px; bottom: 12px; z-index: 4; color: #8ea7bf; font-size: .82rem; font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.tour.is-live .tour__skip:hover, .tour.is-live .tour__skip:focus-visible { color: #fff; }

/* ---- Celular y tableta vertical ---- */
@media (max-width: 860px) {
  .tour__step, .tour__chrome { grid-template-columns: minmax(0, 1fr); grid-template-areas: "scene" "card"; gap: 22px; padding: 18px 16px 44px; }
  .tour__stage { padding-top: 88px; }
  .tour__title { font-size: clamp(1.55rem, 6.4vw, 2.2rem); }
  .tour__ctas { margin: 18px 0 14px; gap: 10px; }
  .tour__ctas .btn--lg { padding: .85em 1.25em; font-size: .95rem; }
  .tour__label-long { display: none; }

  .tour.is-live { height: 430vh; }
  .tour.is-live .tour__step, .tour.is-live .tour__chrome { grid-template-rows: auto 1fr; align-content: start; gap: 16px; padding: calc(76px + env(safe-area-inset-top, 0px)) 16px calc(78px + env(safe-area-inset-bottom, 0px)); }
  .tour.is-live .tour__scene, .tour.is-live .tour__frame { height: 40svh; border-radius: 22px; }
  .tour.is-live .tour__card { align-self: start; }
  .tour.is-live .tour__lead--d, .tour.is-live .tour__points { display: none; }
  .tour.is-live .tour .chip, .tour.is-live .chip { margin-bottom: 10px; font-size: .74rem; }
  .tour.is-live .tour__eyebrow { margin-bottom: 8px; font-size: .74rem; }
  .tour.is-live .tour__lead { font-size: .97rem; margin-bottom: 0; }
  .tour.is-live .tour__tags { margin-top: 12px; }
  .tour.is-live .tour__tags li { font-size: .8rem; padding: .38em .8em; }
  .tour.is-live .tour__list { gap: 8px; }
  .tour.is-live .tour__list li { padding: 7px 12px; font-size: .86rem; line-height: 1.4; }
  .tour.is-live .tour__small { display: none; }
  .tour.is-live .tour__ctas { flex-wrap: nowrap; }
  .tour.is-live .tour__ctas .btn--lg { padding: .8em 1em; font-size: .9rem; white-space: nowrap; }
  .tour.is-live .tour__rail { bottom: 10px; gap: 4px; padding: 4px; }
  .tour__rail button { padding: .5em .7em; font-size: .72rem; }
  .tour.is-live .tour__skip { display: none; }
  .tour.is-live .tour__hint { font-size: .8rem; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .tour.is-live .tour__scene, .tour.is-live .tour__frame { height: 34svh; }
  .tour.is-live .tour__list span { display: none; }
  .tour.is-live .tour__lead { display: none; }
  .tour.is-live .tour__hint { display: none; }
}
@media (min-width: 861px) and (max-height: 760px) {
  .tour.is-live .tour__points, .tour.is-live .tour__hint { display: none; }
}
