/* Estilos de la portada (index.html y en/index.html). Se carga después de base.css. */
/* ---------- Recorrido (sección fijada, a pantalla completa desde el principio) ---------- */
.tour { position: relative; height: 100vh; height: 100svh; }
.stage { position: relative; height: 100%; overflow: hidden; background: var(--ink); }
.window { position: absolute; inset: 0; }
.window canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(90deg, rgba(6, 18, 38, .72), rgba(6, 18, 38, 0) 58%),
    linear-gradient(0deg, rgba(6, 18, 38, .7), rgba(6, 18, 38, 0) 34%),
    linear-gradient(180deg, rgba(6, 18, 38, .5), rgba(6, 18, 38, 0) 24%),
    linear-gradient(270deg, rgba(6, 18, 38, .32), rgba(6, 18, 38, 0) 18%);
}
.shade { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 52%, rgba(6, 18, 38, .58), rgba(6, 18, 38, .2) 75%),
    linear-gradient(180deg, rgba(6, 18, 38, .4), rgba(6, 18, 38, .05) 40%, rgba(6, 18, 38, .55));
}

.intro {
  position: absolute; inset: 0; z-index: 5; color: #fff;
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 96px var(--gutter) 120px;
}
.intro .kicker { color: #cfe0ff; margin-bottom: 20px; }
.headline { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 78px); line-height: 1.04; letter-spacing: -.04em; max-width: 14em; text-wrap: balance; text-shadow: 0 4px 40px rgba(6, 18, 38, .35); }
.headline em { font-style: normal; color: var(--accent-soft); }
.sub { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips svg { width: 16px; height: 16px; color: var(--accent-soft); flex: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 5; }
.cue-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.cue-line { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); transform-origin: top; animation: cue 1.8s cubic-bezier(.6, 0, .2, 1) infinite; }
.cue-load { color: var(--accent-soft); }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* HUD (encima del vídeo: texto claro) */
.hud { position: absolute; inset: 0; z-index: 6; pointer-events: none; visibility: hidden; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(6, 18, 38, .55); }
.corner { position: absolute; width: 26px; height: 26px; border: 1.5px solid rgba(255, 255, 255, .7); }
.corner.tl { top: 78px; left: 20px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 78px; right: 20px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.corner.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }
.hud-tl { position: absolute; top: 86px; left: 40px; display: flex; align-items: center; gap: 10px; }
.hud-tr { position: absolute; top: 86px; right: 40px; }
.hud-tr b, .hud-br b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(106, 168, 255, .25); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hud-bl { position: absolute; left: 40px; bottom: 36px; }
.room-idx { display: block; color: var(--accent-soft); margin-bottom: 6px; }
.room { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 54px); letter-spacing: -.03em; text-transform: none; color: #fff; min-height: 1.1em; }
.hud-br { position: absolute; right: 40px; bottom: 36px; text-align: right; }
.reticle { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; translate: -50% -50%; opacity: .5; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 6px rgba(6, 18, 38, .4); }
.reticle::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reticle::after { top: 50%; left: 0; right: 0; height: 1px; }
.rail { position: absolute; right: 40px; top: 50%; height: 40vh; width: 2px; translate: 0 -50%; background: rgba(255, 255, 255, .35); box-shadow: 0 0 10px rgba(6, 18, 38, .25); }
.rail-fill { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(106, 168, 255, .9); }
.tick { position: absolute; right: -4px; width: 10px; height: 1px; background: rgba(255, 255, 255, .8); transition: width .3s, right .3s; }
.tick.on { width: 16px; right: -7px; background: #fff; }
/* Cada estancia de la barra es un botón: lleva el recorrido hasta ella. */
.tick button {
  position: absolute; right: 16px; top: -13px; padding: 5px 8px; border-radius: 999px;
  pointer-events: auto; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); text-shadow: inherit; transition: color .3s, background .3s;
}
.tick button:hover { color: var(--accent); background: #fff; text-shadow: none; }
.tick.on button { color: #fff; }
.tick.on button:hover { color: var(--accent); }

.captions { position: absolute; left: clamp(20px, 7vw, 110px); top: 50%; translate: 0 -50%; width: min(560px, 70vw); display: grid; z-index: 6; pointer-events: none; }
.cap { grid-area: 1 / 1; visibility: hidden; }
.cap .num { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--accent-soft); margin-bottom: 16px; text-shadow: 0 1px 10px rgba(6, 18, 38, .5); }
.cap h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.3vw, 50px); line-height: 1.06; letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 30px rgba(6, 18, 38, .6); }
.cap p { margin-top: 16px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: #e3eaf4; max-width: 40ch; text-shadow: 0 1px 16px rgba(6, 18, 38, .7); }

.outro { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); visibility: hidden; }
.outro h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.8vw, 58px); line-height: 1.08; letter-spacing: -.035em; max-width: 17ch; margin: 18px 0 32px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(84px, 14vh, 150px) var(--gutter); }
.section.soft { background: var(--bg-soft); }
.wrap { max-width: 1240px; margin: 0 auto; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: clamp(36px, 6vh, 64px); }
.sec-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 72px); line-height: 1.04; letter-spacing: -.04em; margin-top: 18px; }
.sec-head .lead { max-width: 40ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }

/* Estancias: fotos que llevan a su momento del recorrido */
.rooms-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 17vw, 250px); gap: 14px; }
.room-card { position: relative; overflow: hidden; border-radius: 18px; background: #dfe6f1; isolation: isolate; text-align: left; color: #fff; }
.room-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.room-card:hover img { transform: scale(1.05); }
.room-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 18, 38, .66), rgba(6, 18, 38, 0) 55%); }
.room-card .meta { position: absolute; left: 18px; right: 16px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.room-card .num { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: #cfe0ff; margin-bottom: 4px; }
.room-card .name { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.1vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.goto-pill { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.room-card:hover .goto-pill, .room-card:focus-visible .goto-pill { background: #fff; color: var(--accent); }
.room-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.r-salon { grid-column: span 4; grid-row: span 2; }
.r-cocina, .r-comedor { grid-column: span 2; }
.r-entrada, .r-recibidor { grid-column: span 3; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Para qué sirve */
.uses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.use { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; min-height: clamp(440px, 40vw, 560px); padding: 28px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.use .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.use::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 18, 38, .88) 0%, rgba(6, 18, 38, .4) 45%, rgba(6, 18, 38, 0) 72%); }
.use .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #cfe0ff; }
.use h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.03em; margin: 10px 0; }
.use p { color: rgba(255, 255, 255, .86); line-height: 1.6; }
.use-phone { background: linear-gradient(160deg, #1d4ed8, #2563eb 50%, #3b82f6); justify-content: space-between; gap: 24px; }
.use-phone::before { display: none; }
.phone { position: relative; align-self: center; width: min(200px, 60%); aspect-ratio: 9 / 18.5; border-radius: 32px; border: 7px solid #0b1f3a; background: #0b1f3a; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(6, 18, 38, .65); }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone::after { content: ""; position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 34%; height: 15px; border-radius: 10px; background: #0b1f3a; }

/* Cómo funciona */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px 28px 34px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(37, 99, 235, .08), transparent 45%), #fff;
  box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 18px 40px -26px rgba(11, 31, 58, .25);
  transition: border-color .4s, box-shadow .4s;
}
.card:hover { border-color: rgba(37, 99, 235, .35); box-shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 24px 50px -24px rgba(37, 99, 235, .3); }
.big-num { display: block; font-family: var(--display); font-weight: 700; font-size: 76px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(37, 99, 235, .55); margin-bottom: 44px; letter-spacing: -.04em; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin-bottom: 12px; }
.card p { color: var(--muted); line-height: 1.65; }

/* Precio */
.price-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.price-grid h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.04em; margin: 18px 0 20px; }
.price-grid .lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; max-width: 42ch; }
.perks { list-style: none; display: grid; gap: 14px; margin-top: 34px; }
.perks li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.perks .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 10px 24px -14px rgba(11, 31, 58, .3); }
.perks .ico svg { width: 22px; height: 22px; }
.perks small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 2px; }
.price-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 70px -40px rgba(11, 31, 58, .4); }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(37, 99, 235, .1); padding: 6px 12px; border-radius: 999px; }
.amount { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 7.5vw, 100px); line-height: 1; letter-spacing: -.05em; }
.per { color: var(--muted); margin-top: 8px; }
.incl { list-style: none; display: grid; gap: 12px; margin: 26px 0 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.incl li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.incl svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.price-card .btn { width: 100%; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* Preguntas */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.plus { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.plus svg { width: 16px; height: 16px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--accent); color: #fff; box-shadow: none; }
.answer { padding: 0 56px 26px 0; color: var(--muted); line-height: 1.7; max-width: 66ch; }

/* Contacto */
.cta { padding: clamp(40px, 8vh, 90px) var(--gutter) clamp(84px, 14vh, 150px); text-align: center; }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate; max-width: 1320px; margin: 0 auto;
  padding: clamp(64px, 12vh, 130px) var(--gutter); border-radius: clamp(22px, 3vw, 36px);
  background: linear-gradient(140deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%); color: #fff;
  box-shadow: 0 40px 80px -40px rgba(29, 78, 216, .55);
}
.cta-panel .kicker { color: #cfe0ff; }
.cta-panel h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 76px); line-height: 1.04; letter-spacing: -.04em; margin: 20px 0 24px; }
.cta-glow { position: absolute; left: 50%; top: 0; width: min(900px, 120vw); aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 60%); pointer-events: none; z-index: -1; }
.cta-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 70%);
}
.cta .lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 44ch; margin: 0 auto 40px; }


/* ---------- Responsive ---------- */
@media (max-aspect-ratio: 1/1) {
  .captions { top: auto; bottom: 118px; left: 20px; right: 20px; width: auto; translate: none; }
  .cap h2 { font-size: clamp(22px, 6.4vw, 34px); }
  .cap p { font-size: 15px; }
  .rail { top: auto; bottom: 14px; left: 20px; right: 20px; width: auto; height: 2px; translate: none; }
  .rail-fill { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .tick { display: none; }
  .reticle { display: none; }
  .hud-bl { left: 22px; bottom: 34px; }
  .hud-br { right: 22px; bottom: 34px; }
  .corner.bl, .corner.br { bottom: 26px; }
}
@media (max-width: 960px) {
  .uses-grid { grid-template-columns: 1fr 1fr; }
  .use-phone { grid-row: span 2; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav nav a:not(.btn):not(.lang) { display: none; }
  .hide-sm { display: none; }
  .hud { font-size: 11px; }
  .hud-tl { left: 34px; }
  .hud-tr { right: 34px; }
  .intro { padding-top: 84px; padding-bottom: 96px; }
  .headline { font-size: clamp(30px, 9vw, 40px); }
  .sub { font-size: 15px; margin-top: 16px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { font-size: 15px; padding: 15px 22px; }
  .chips { font-size: 13px; gap: 8px 16px; margin-top: 20px; }
  .rooms-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .r-salon { grid-column: span 2; grid-row: span 2; }
  .r-cocina, .r-comedor, .r-entrada, .r-recibidor { grid-column: span 1; }
  .room-card .meta { left: 14px; right: 12px; bottom: 12px; }
  .room-card:not(.r-salon) .goto-label { display: none; }
  .room-card:not(.r-salon) .goto-pill { padding: 8px 10px; }
  .uses-grid { grid-template-columns: 1fr; }
  .use { min-height: 380px; padding: 24px; }
  .use-phone { grid-row: auto; }
  .cards { grid-template-columns: 1fr; }
  .big-num { font-size: 60px; margin-bottom: 28px; }
  .answer { padding-right: 0; }
  .cta { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cue-line, .rec { animation: none; }
}
