/* Viaje del plano a la casa: primera sección del home. Todo va dentro de .viaje-eco para no tocar el resto del sitio. */
.viaje-eco {
  --ve-papel: #f1eee7; --ve-tinta: #161616; --ve-gris: #6d6a63; --ve-verde: #6f8f3b;
  --ve-margen: clamp(18px, 3.4vw, 52px);
  position: relative; height: 1500vh; background: var(--ve-papel); color: var(--ve-tinta);
}
.viaje-eco * { box-sizing: border-box; }
.ve-escenario { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ve-lienzo, .ve-cine { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ve-cine { opacity: 0; }
.ve-sombra { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; background: linear-gradient(to top, rgb(0 0 0 / .62), rgb(0 0 0 / 0) 46%), linear-gradient(to bottom, rgb(0 0 0 / .38), rgb(0 0 0 / 0) 22%), linear-gradient(to left, rgb(0 0 0 / .34), rgb(0 0 0 / 0) 24%); }

.ve-portada, .ve-baja, .ve-cap, .ve-etapas, .ve-rotulos, .ve-cierre { position: absolute; z-index: 2; }
.ve-cap, .ve-rotulos, .ve-cierre, .ve-portada, .ve-baja { transition: opacity .45s ease; }
.ve-sobre, .ve-cap-num, .ve-baja, .ve-riel span, .ve-rotulos span, .ve-cierre li span {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
}

/* portada */
.ve-portada { inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--ve-margen) clamp(70px, 12vh, 130px); background: linear-gradient(to top, rgb(241 238 231 / .94) 22%, rgb(241 238 231 / 0) 62%); }
.ve-sobre { color: var(--ve-gris); margin: 0 0 18px; }
.ve-portada h1 { margin: 0; font-weight: 300; font-size: clamp(38px, 6.6vw, 104px); line-height: .98; letter-spacing: -.025em; color: var(--ve-tinta); text-transform: none; }
.ve-bajada { margin: 22px 0 0; max-width: 34ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; color: var(--ve-gris); }
.ve-accion { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.viaje-eco .ve-accion .boton-linea { color: var(--ve-tinta); border-color: var(--ve-tinta); }
.ve-baja { left: 50%; bottom: 22px; margin: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ve-gris); }
.ve-baja i { width: 1px; height: 34px; background: var(--ve-tinta); animation: ve-baja 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes ve-baja { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* capítulo */
.ve-cap { left: var(--ve-margen); bottom: clamp(36px, 8vh, 84px); max-width: min(440px, 76vw); opacity: 0; }
.ve-cap::before { content: ''; position: absolute; inset: -60px -90px -80px -80px; z-index: -1; background: radial-gradient(closest-side, rgb(241 238 231 / .9), rgb(241 238 231 / 0)); }
.ve-cap-num { display: flex; align-items: center; gap: 12px; color: var(--ve-verde); }
.ve-cap-num::after { content: ''; width: 46px; height: 1px; background: currentColor; }
.ve-cap h2 { font-weight: 300; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: -.02em; margin: 14px 0 12px; text-transform: none; color: inherit; }
.ve-cap p { margin: 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: #3d3b37; max-width: 36ch; }

/* riel de etapas */
.ve-etapas { right: var(--ve-margen); top: 50%; transform: translateY(-50%); display: flex; gap: 14px; transition: opacity .4s ease; }
.ve-via { order: 2; width: 1px; background: rgb(22 22 22 / .16); }
.ve-avance { display: block; width: 1px; height: 100%; background: var(--ve-tinta); transform-origin: top; transform: scaleY(0); }
.ve-riel { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; text-align: right; }
.ve-riel li { text-shadow: 0 0 10px var(--ve-papel), 0 0 4px var(--ve-papel); cursor: pointer; color: rgb(22 22 22 / .34); transition: color .3s ease; }
.ve-riel li.activa { color: var(--ve-tinta); }
.ve-riel li:hover { color: var(--ve-verde); }

/* rótulos del plano */
.ve-rotulos { inset: 0; pointer-events: none; opacity: 0; }
.ve-rotulos div { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; }
.ve-rotulos b { display: block; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.ve-rotulos span { color: var(--ve-gris); font-size: 10px; }

/* cierre */
.ve-cierre { inset: 0; opacity: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 26px; padding: 0 var(--ve-margen) clamp(40px, 8vh, 90px); }
.ve-cierre ul { list-style: none; padding: 0; margin: 0; display: flex; gap: clamp(22px, 5vw, 72px); flex-wrap: wrap; }
.ve-cierre li b { display: block; font-weight: 300; font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -.02em; }
.ve-cierre h2 { margin: 0; font-weight: 300; font-size: clamp(30px, 4.6vw, 72px); line-height: 1; letter-spacing: -.02em; text-transform: none; color: inherit; }

/* noche: la obra hiperrealista con textos claros */
.viaje-eco.noche .ve-sombra { opacity: 1; }
.viaje-eco.noche { color: #fff; }
.viaje-eco.noche .ve-cap::before { display: none; }
.viaje-eco.noche .ve-cap p { color: rgb(255 255 255 / .86); }
.viaje-eco.noche .ve-cap-num { color: #cfe0a8; }
.viaje-eco.noche .ve-riel li { color: rgb(255 255 255 / .5); text-shadow: 0 1px 10px rgb(0 0 0 / .5); }
.viaje-eco.noche .ve-riel li.activa { color: #fff; }
.viaje-eco.noche .ve-via { background: rgb(255 255 255 / .25); }
.viaje-eco.noche .ve-avance { background: #fff; }
.viaje-eco.noche .ve-cierre { background: linear-gradient(to top, rgb(0 0 0 / .78) 26%, rgb(0 0 0 / 0) 74%); }
.viaje-eco.noche .ve-cierre li span { color: rgb(255 255 255 / .72); }
.ve-cap, .ve-etapas, .ve-cierre { transition: color .4s ease, opacity .45s ease; }

@media (max-width: 760px) {
  .ve-riel span { display: none; }
  .ve-riel li { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
  .ve-riel li.activa { background: var(--ve-tinta); }
  .viaje-eco.noche .ve-riel li.activa { background: #fff; }
  .ve-via { display: none; }
  .ve-cap { right: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ve-baja i { animation: none; } }
