:root {
  /* La casa: paredes blancas, selva verde, madera café */
  --blanco: #fbfaf5;
  --verde-950: #0b231a;
  --verde-900: #12321f;
  --verde-800: #1a4430;
  --verde-700: #2e5c42;
  --verde-500: #5d8a5a;
  --verde-200: #cfe0c6;
  --cafe-900: #24140a;
  --cafe-800: #351f11;
  --cafe-700: #4a2c18;
  --cafe-500: #6b4227;
  --cafe-300: #f3ece0; /* texto cálido casi blanco */
  --cafe-200: #e6ddd0;
  --font: "Archivo", system-ui, sans-serif;
  --pad: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --bar-h: 76px;
  --glass: rgba(251,250,245,.07);
  --glass-line: rgba(251,250,245,.16);
  --glass-dark: rgba(11,35,26,.62);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--verde-950);
  color: var(--blanco);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--cafe-300); color: var(--cafe-900); }
:focus-visible { outline: 3px solid var(--cafe-300); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--cafe-500) var(--verde-950); }
button, a, [role="button"] { touch-action: manipulation; }
button, .btn, .lang, .fab, .social a, .speeds { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 80; background: var(--blanco); color: var(--verde-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* fondo vivo: manchas verdes y café que se mueven, con estela */
.flow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .foot { position: relative; z-index: 1; }

/* vidrio */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 30px 60px -40px rgba(0,0,0,.7);
}

/* ---------- Carga ---------- */
.loader {
  position: fixed; inset: 0; z-index: 70; background: var(--verde-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
  clip-path: circle(150% at 50% 50%);
}
.loader img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 18px 50px -12px rgba(216,173,128,.35); animation: breathe 2.4s var(--ease-in-out) infinite; }
.loader p { margin: 0; font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; color: var(--cafe-200); }
.loader-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(251,250,245,.12); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--cafe-300); border-radius: 3px; transition: width .4s var(--ease); }
body:not(.is-loading) .loader { clip-path: circle(0% at 50% 50%); visibility: hidden; }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: inherit; font-weight: 700; text-decoration: none; letter-spacing: .005em;
  padding: .72em 1.25em; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .45s var(--ease), background-color .25s, color .25s, box-shadow .45s var(--ease);
}
.btn-white { background: var(--blanco); color: var(--verde-900); box-shadow: 0 8px 22px -10px rgba(0,0,0,.55); }
.btn-wood { background: var(--cafe-700); color: var(--blanco); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px -10px rgba(59,36,22,.8); }
.btn-ghost { color: var(--blanco); box-shadow: inset 0 0 0 1.5px rgba(251,250,245,.45); }
.btn-ghost:active { background: var(--cafe-700); box-shadow: none; }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-lg { font-size: 1.08rem; padding: .9em 1.5em; }
.btn-xl { font-size: clamp(1.1rem, 2.2vw, 1.4rem); padding: .95em 1.8em; }

@media (hover: hover) and (pointer: fine) {
  .btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(0,0,0,.6); }
  .btn-wood:hover { transform: translateY(-2px); background: var(--cafe-500); }
  .btn-ghost:hover { background: var(--cafe-700); box-shadow: none; }
  .social a:hover { background: var(--cafe-700); box-shadow: none; }
  .phone:hover { color: var(--blanco); }
  .speeds button:hover { background: rgba(251,250,245,.1); }
  .amen li:hover { background: rgba(251,250,245,.1); }
  .amen li:hover .amen-ico { background: var(--cafe-500); transform: rotate(-8deg) scale(1.06); }
  .bank:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(216,173,128,.45), 0 30px 60px -36px rgba(0,0,0,.8); }
}

/* ---------- Barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) var(--pad) 0;
  transition: background-color .4s, box-shadow .4s;
}
.bar.solid { background: rgba(11,35,26,.72); box-shadow: 0 1px 0 var(--glass-line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px -6px rgba(0,0,0,.5); }
.brand em { font-style: normal; color: var(--cafe-300); }
.bar-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border-radius: 999px; padding: 3px; background: var(--glass-dark); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang button { font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; background: none; color: var(--blanco); border: 0; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--blanco); color: var(--verde-900); }
.bar .btn { font-size: 15px; padding: .62em 1.1em; }

/* ---------- Recorrido 360 ---------- */
.tour { position: relative; z-index: 2; background: var(--verde-950); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--verde-950) url(assets/fotos/1_fachada.jpg) center / cover no-repeat; }
.stage.no-gl .pano { display: none; }
.pano { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.pano.dragging { cursor: grabbing; }
.veil { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(11,35,26,0) 55%, rgba(11,35,26,.45) 100%),
    linear-gradient(0deg, rgba(11,35,26,.6) 0%, rgba(11,35,26,0) 30%),
    linear-gradient(180deg, rgba(11,35,26,.5) 0%, rgba(11,35,26,0) 18%);
}

/* portada sobre vidrio oscuro */
.hero { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(36px, 7vh, 90px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.hero-card {
  max-width: 720px; padding: clamp(22px, 3vw, 36px); border-radius: 28px;
  background: var(--glass-dark); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 30px 70px -30px rgba(0,0,0,.7);
}
.hero-place { margin: 0 0 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--cafe-300); }
.hero h1 { margin: 0; font-weight: 800; font-stretch: 88%; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: normal; display: inline-block; background: var(--cafe-700); color: var(--blanco); padding: .02em .22em .06em; border-radius: .16em; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.lede { margin: 16px 0 0; font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 34em; color: rgba(251,250,245,.88); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 20px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--blanco); }
.scroll-cue i { width: 24px; height: 38px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(251,250,245,.7); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cafe-300); animation: wheel 1.8s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.stage.in-tour .hero { opacity: 0; transform: translateY(-40px); filter: blur(8px); pointer-events: none; }

/* tarjeta de cada estación, abajo */
.station { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; display: flex; pointer-events: none; }
.station-card {
  max-width: 560px; padding: 20px 24px; border-radius: 22px;
  background: var(--glass-dark); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 24px 60px -30px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.stage.in-tour .station-card { opacity: 1; transform: none; }
.st-title { margin: 0; font-weight: 800; font-stretch: 88%; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -.02em; }
.st-text { margin: 10px 0 0; font-size: 1.02rem; color: rgba(251,250,245,.86); max-width: 42ch; }
.st-feats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-feats li { font-size: 14px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: rgba(74,44,24,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.st-feats:empty { display: none; }
.station-card.swap .st-title, .station-card.swap .st-text, .station-card.swap .st-feats li { animation: rise .8s var(--ease) both; }
.station-card.swap .st-text { animation-delay: .07s; }
.station-card.swap .st-feats li:nth-child(1) { animation-delay: .12s; }
.station-card.swap .st-feats li:nth-child(2) { animation-delay: .17s; }
.station-card.swap .st-feats li:nth-child(3) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } }

/* etiquetas: vidrio verde oscuro, letra blanca */
.labels { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; color: var(--blanco); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  background: rgba(18,50,31,.72); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(251,250,245,.28), 0 12px 30px -12px rgba(0,0,0,.6);
  opacity: 0; will-change: transform, opacity;
}

.look-hint { position: absolute; left: 50%; top: calc(var(--bar-h) + 14px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .05em; padding: 7px 14px; border-radius: 999px; background: var(--glass-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s; }
.look-hint.show { opacity: 1; }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(251,250,245,.15); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--verde-200), var(--cafe-300)); }

/* ---------- Secciones (sobre el fondo vivo) ---------- */
.wrap { width: min(1220px, 100% - 2 * var(--pad)); margin-inline: auto; }
.sec-title { margin: 0; font-weight: 800; font-stretch: 88%; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; max-width: 18ch; }
.body { font-size: 1.12rem; max-width: 36em; color: rgba(251,250,245,.86); }

/* palabras que suben */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span, .no-motion .split .w > span { transform: none; }

.casa { padding: clamp(110px, 13vw, 180px) 0 clamp(60px, 8vw, 110px); }
.banks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: clamp(44px, 6vw, 76px) 0 0; }
.bank { padding: 26px 22px 22px; border-radius: 24px; transition: transform .6s var(--ease), box-shadow .4s; }
.bank b { display: block; font-weight: 900; font-stretch: 70%; font-size: clamp(3.8rem, 6.6vw, 6rem); line-height: .85; letter-spacing: -.03em; color: var(--blanco); font-variant-numeric: tabular-nums lining-nums; }
.bank b small { font-weight: 700; font-stretch: 100%; font-size: max(.28em, 16px); margin-left: .18em; letter-spacing: 0; color: var(--cafe-200); }
.bank > span { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; color: rgba(251,250,245,.85); }

.amen { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.amen li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; font-weight: 600; padding: 14px 16px; border-radius: 20px; transition: background-color .3s; }
.amen-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cafe-700); color: var(--blanco); flex: none; transition: background-color .3s, transform .5s var(--ease); }
.amen-ico .ico { width: 23px; height: 23px; }

/* 10%: madera */
.promo { padding: clamp(30px, 4vw, 60px) 0; }
.promo-card {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(36px, 5vw, 72px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  background: linear-gradient(135deg, var(--cafe-500), var(--cafe-800) 75%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 40px 80px -40px rgba(0,0,0,.8);
}
.promo-card::before { /* veta de madera que se mueve */
  content: ""; position: absolute; inset: -40%; pointer-events: none; opacity: .14;
  background: repeating-radial-gradient(ellipse 60% 18% at 30% 50%, rgba(255,255,255,.55) 0 1px, transparent 1px 22px);
  animation: grain 26s linear infinite;
}
@keyframes grain { to { transform: translateX(12%) rotate(4deg); } }
.promo-card > * { position: relative; }
.promo-num { margin: 0; font-weight: 900; font-stretch: 62%; font-size: clamp(9rem, 22vw, 19rem); line-height: .78; letter-spacing: -.05em; color: var(--blanco); font-variant-numeric: tabular-nums; }
.promo-num sup { font-size: .38em; vertical-align: top; position: relative; top: .3em; margin-left: .04em; color: var(--blanco); }
.promo .sec-title { max-width: 13ch; }
.promo .acts { margin-top: 30px; }
.promo .body { margin: 18px 0 0; }
.acts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.acts li { font-weight: 800; font-size: 1.08rem; padding: 11px 20px; border-radius: 999px; background: var(--blanco); color: var(--cafe-900); opacity: 0; transform: translateY(16px) scale(.9); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.acts.in li { opacity: 1; transform: none; }
.acts.in li:nth-child(2) { transition-delay: .08s; } .acts.in li:nth-child(3) { transition-delay: .16s; } .acts.in li:nth-child(4) { transition-delay: .24s; }
.fine { margin: 26px 0 0; font-size: 14px; color: var(--cafe-200); max-width: 52em; }

/* ubicación */
.ubi { padding: clamp(30px, 4vw, 60px) 0 clamp(80px, 10vw, 140px); }
.where { border-radius: 36px; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.where-map { width: 100%; height: auto; overflow: visible; }
.w-river { fill: none; stroke: #6fa6a0; stroke-width: 16; stroke-linecap: round; opacity: .55; }
.w-route { fill: none; stroke: var(--blanco); stroke-width: 3.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.w-pt circle { fill: var(--blanco); stroke: var(--verde-900); stroke-width: 4; }
.w-pt2 circle { fill: #8cc0b9; }
.w-pt3 circle { fill: #f2d98a; }
.w-ico { color: var(--verde-900); }
.w-ico, .w-ico * { fill: none; stroke: var(--verde-900); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.w-pt .w-pulse { fill: var(--verde-200); stroke: none; opacity: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
.w-pt text { fill: var(--blanco); font-family: var(--font); font-size: 17px; font-weight: 700; }
.where.in .w-route { animation: dash 2.6s var(--ease) both; }
@keyframes dash { from { stroke-dashoffset: 320; opacity: .1; } }
.where-text .sec-title { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 4px; }
.where-text p { margin: 12px 0 0; color: rgba(251,250,245,.85); }
.where-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* fotos */
.fotos { position: relative; height: 330vh; }
.fotos-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-top: calc(var(--bar-h) * .6); }
.fotos .sec-title { padding-left: var(--pad); }
.strip { display: flex; gap: clamp(16px, 2vw, 30px); padding-left: var(--pad); will-change: transform; }
.strip figure { margin: 0; flex: none; width: clamp(290px, 44vw, 660px); }
.strip .ph { overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 0 0 1px var(--glass-line); }
.strip img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.strip figcaption { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--cafe-200); }

/* video */
.vid { padding: clamp(96px, 12vw, 160px) 0; }
.vid-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.vid .body { margin: 20px 0 0; }
.speeds { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; padding: 6px; border-radius: 999px; }
.speeds button { font: inherit; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; border: 0; background: none; color: var(--blanco); padding: 9px 15px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.speeds button[aria-pressed="true"] { background: var(--cafe-700); }
.phone-frame { justify-self: center; width: min(360px, 82vw); aspect-ratio: 9 / 16; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, var(--cafe-700), var(--cafe-900)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.12); }
.phone-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: #000; display: block; }

/* cierre */
.close { position: relative; padding: clamp(110px, 14vw, 190px) 0; text-align: center; overflow: hidden; }
.close-bg { position: absolute; inset: -10%; background: url(assets/fotos/1_fachada.jpg) center / cover; opacity: .22; transform: scale(1.1); will-change: transform; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.close-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.close-logo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 24px 60px -18px rgba(216,173,128,.35); }
.close h2 { margin: 0; font-weight: 800; font-stretch: 88%; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -.03em; max-width: 16ch; text-wrap: balance; }
.phone { font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--cafe-200); font-variant-numeric: tabular-nums; }

.foot { background: rgba(11,35,26,.85); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--glass-line); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 700; }
.foot-brand img { width: 56px; height: 56px; object-fit: contain; }
.foot-brand small { display: block; font-weight: 400; color: var(--cafe-200); font-size: 14px; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(251,250,245,.35); transition: background-color .25s; }

.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--cafe-700); color: var(--blanco); box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .3s, transform .45s var(--ease); }
.fab .ico { width: 28px; height: 28px; }
.past-tour .fab { opacity: 1; transform: none; pointer-events: auto; }

/* aparecen al bajar y al subir */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(6px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .banks { grid-template-columns: repeat(3, 1fr); }
  .amen { grid-template-columns: repeat(2, 1fr); }
  .vid-grid, .promo-card, .where { grid-template-columns: 1fr; }
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  :root { --bar-h: 64px; }
  body { font-size: 17px; }
  .brand span { display: none; }
  .bar .btn span { display: none; }
  .bar .btn { padding: .62em .78em; }
  .hero { left: 12px; right: 12px; bottom: 16px; }
  .hero-card { border-radius: 22px; padding: 20px 18px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .lede { font-size: .98rem; margin-top: 10px; }
  .hero-actions { margin-top: 16px; gap: 14px; }
  .station { left: 12px; right: 12px; bottom: 16px; }
  .station-card { width: 100%; padding: 16px 18px; border-radius: 18px; }
  .st-title { font-size: 1.75rem; }
  .st-text { font-size: .95rem; margin-top: 6px; }
  .st-feats { margin-top: 10px; gap: 6px; }
  .st-feats li { font-size: 13px; padding: 5px 11px; }
  .tag { font-size: 13px; padding: 7px 12px; }
  .look-hint { top: calc(var(--bar-h) + 10px); font-size: 12px; white-space: nowrap; }
  .banks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bank { padding: 20px 16px 16px; border-radius: 20px; }
  .bank:last-child { grid-column: 1 / -1; }
  .amen { grid-template-columns: 1fr; gap: 8px; }
  .amen li { padding: 10px 12px; }
  .promo-card { border-radius: 28px; }
  .promo-num { font-size: 42vw; }
  .where { border-radius: 28px; }
  .w-pt text { font-size: 24px; }
  /* fotos en el celular: una debajo de otra */
  .fotos { height: auto; padding: 80px 0 40px; }
  .fotos-sticky { position: static; height: auto; overflow: visible; padding-top: 0; gap: 28px; }
  .strip { flex-direction: column; padding: 0 16px; transform: none !important; gap: 26px; }
  .strip figure { width: 100%; }
  .strip img { transform: none !important; }
  .phone-frame { width: min(320px, 78vw); }
}
@media (max-width: 720px) and (max-height: 720px) {
  .st-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Controles del recorrido ---------- */
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tour-ctrl { display: flex; align-items: center; gap: 8px; pointer-events: auto; flex: none; }
.tc {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: var(--blanco); background: rgba(251,250,245,.1); box-shadow: inset 0 0 0 1px rgba(251,250,245,.28);
  transition: transform .2s var(--ease), background-color .2s;
}
.tc .ico { width: 20px; height: 20px; }
.tc-play { width: 52px; height: 52px; background: var(--cafe-700); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 20px -8px rgba(0,0,0,.6); }
.tc-play .ico { width: 22px; height: 22px; }
.tc-play .i-pause, .tc-play.playing .i-play { display: none; }
.tc-play.playing .i-pause { display: block; }
.tc:active, .tc.holding { transform: scale(.9); background-color: var(--cafe-500); }
@media (hover: hover) and (pointer: fine) { .tc:hover { background-color: rgba(251,250,245,.2); } .tc-play:hover { background-color: var(--cafe-500); } }
.tour-start .ico { width: 18px; height: 18px; }

/* ---------- Rendimiento en celular ----------
   El vidrio con desenfoque sobre un fondo que se redibuja obliga a recalcular el blur cada cuadro.
   En pantallas táctiles se reemplaza por vidrio sólido, y las apariciones usan solo transform y opacity. */
@media (pointer: coarse), (max-width: 720px) {
  .glass, .hero-card, .station-card, .tag, .bar.solid, .lang, .look-hint, .tc {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .glass { background: rgba(26,68,48,.62); }
  .hero-card, .station-card { background: rgba(11,35,26,.86); }
  .tag { background: rgba(18,50,31,.9); }
  .bar.solid { background: rgba(11,35,26,.95); }
  .reveal { filter: none !important; transform: translateY(28px); }
  .reveal.in { transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  .promo-card::before { animation: none; }
  .bank:hover { transform: none; }
}
@media (max-width: 720px) {
  .st-head { align-items: flex-start; }
  .tc { width: 46px; height: 46px; }
  .tc-play { width: 54px; height: 54px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .tour-start { justify-content: center; }
  .scroll-cue { justify-content: center; font-size: 13px; }
  .scroll-cue i { display: none; }
}

/* ---------- Fotos a pantalla completa ---------- */
.strip .ph { position: relative; cursor: zoom-in; }
.ph-zoom { position: absolute; right: 12px; top: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,35,26,.75); color: var(--blanco); }
.ph-zoom .ico { width: 18px; height: 18px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,28,20,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 12px 24px; opacity: 0; transition: opacity .3s var(--ease); }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100% - 50px); object-fit: contain; border-radius: 14px; transform: scale(.96); transition: transform .45s var(--ease); touch-action: pan-y; }
.lightbox.open img { transform: none; }
.lb-cap { margin: 14px 0 0; font-weight: 600; color: var(--cafe-200); text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--blanco); background: var(--cafe-700); }
.lb-btn .ico { width: 22px; height: 22px; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-btn:active { transform: scale(.92); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.92); }

/* ---------- Ajustes de celular ---------- */
.where-actions .btn { justify-content: center; }
@media (max-width: 720px) {
  .tc { width: 36px; height: 36px; }
  .tc .ico { width: 16px; height: 16px; }
  .tc-play { width: 42px; height: 42px; }
  .tc-play .ico { width: 18px; height: 18px; }
  .tour-ctrl { gap: 6px; }
  .st-head { align-items: center; }
  .st-title { font-size: 1.55rem; }
  .st-feats { gap: 5px; flex-wrap: wrap; }
  .st-feats li { font-size: 11.5px; padding: 4px 9px; }
  .where-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .where-actions .btn { padding: .8em .5em; font-size: 14px; white-space: nowrap; gap: .4em; }
  .vid-copy { text-align: center; }
  .vid .sec-title { margin-inline: auto; }
  .speeds { display: flex; width: max-content; margin: 22px auto 0; }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .lb-prev:active, .lb-next:active { transform: scale(.92); }
  .lightbox { padding-bottom: 90px; }
}
