/* Kit visual de estanislaosantos.com — identidad ES (negro, blanco, celeste argentino, Montserrat, visor).
   Lo comparten todas las páginas. Sin librerías. Solo transform y opacity en lo que se mueve. */

:root {
  --negro: #0a0b0d;
  --carbon: #111317;
  --grafito: #1a1d23;
  --noche: #0c1726;
  --celeste: #75aadb;
  --celeste-claro: #b4d3f0;
  --celeste-hondo: #2f5f8f;
  --blanco: #ffffff;
  --gris: #aab3bf;
  --gris-claro: #d6dce4;

  --grad-celeste: linear-gradient(135deg, #c3dcf3 0%, #75aadb 42%, #3c74ac 100%);
  --grad-texto: linear-gradient(180deg, #ffffff 0%, #e2edf8 100%);
  --grad-texto-celeste: linear-gradient(180deg, #cfe3f6 0%, #75aadb 70%, #5b92c6 100%);
  --grad-fondo:
    radial-gradient(1100px 620px at 12% -8%, rgba(117,170,219,.20), transparent 62%),
    radial-gradient(900px 560px at 105% 108%, rgba(47,95,143,.34), transparent 60%),
    linear-gradient(180deg, #0d0f13 0%, #0a0b0d 100%);
  --grad-noche:
    radial-gradient(900px 500px at 85% 0%, rgba(117,170,219,.28), transparent 60%),
    radial-gradient(700px 520px at 0% 100%, rgba(117,170,219,.14), transparent 60%),
    linear-gradient(160deg, #10233a 0%, #0c1726 55%, #0a1220 100%);

  --sombra-1: 0 1px 2px rgba(0,0,0,.30), 0 6px 16px -4px rgba(0,0,0,.35);
  --sombra-2: 0 2px 4px rgba(0,0,0,.25), 0 18px 40px -12px rgba(0,0,0,.55), 0 40px 80px -40px rgba(117,170,219,.35);
  --sombra-3: 0 4px 8px rgba(0,0,0,.25), 0 30px 60px -16px rgba(0,0,0,.65), 0 60px 120px -50px rgba(117,170,219,.45);
  --sombra-boton: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(10,30,60,.22),
    0 2px 4px rgba(0,0,0,.30), 0 12px 28px -8px rgba(117,170,219,.75);
  --sombra-boton-hover: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(10,30,60,.22),
    0 4px 8px rgba(0,0,0,.30), 0 22px 44px -10px rgba(117,170,219,.95);

  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-resorte: cubic-bezier(.34,1.45,.5,1);
  --ease-entrada: cubic-bezier(.7,0,.2,1);
  --radio: 14px;
  --radio-boton: 999px;
  --borde: 1px solid rgba(255,255,255,.12);
  --margen: clamp(20px, 5vw, 72px);
  --ancho: 1320px;
  --fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--negro); color: var(--blanco);
  font-family: var(--fuente); font-weight: 500; font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--celeste); color: var(--negro); }
:focus-visible { outline: 2px solid var(--celeste); outline-offset: 4px; border-radius: 6px; }

/* ---------- Tipografía ---------- */
.titular {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; margin: 0;
  background: var(--grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.titular .celeste, .celeste-grad {
  background: var(--grad-texto-celeste); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-1 { font-size: clamp(60px, 11vw, 196px); }
.t-2 { font-size: clamp(40px, 6.4vw, 104px); }
.t-3 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1; }
.antetitulo {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--celeste);
}
.antetitulo::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--grad-celeste); }
.bajada { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; color: var(--gris-claro); max-width: 46ch; margin: 0; }
.epigrafe { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gris); }

/* ---------- Contenedor y fondos ---------- */
.envase { width: min(var(--ancho), 100% - 2 * var(--margen)); margin-inline: auto; }
.fondo-es { background: var(--grad-fondo); }
.fondo-noche { background: var(--grad-noche); }
.grano { position: relative; isolation: isolate; }
.grano::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Botones: sobrios, rectos, con un detalle celeste ---------- */
.btn {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 56px; padding: 0 8px 0 24px; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--fuente); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform .5s var(--ease-resorte), box-shadow .4s var(--ease), color .35s var(--ease), background-color .35s var(--ease);
}
.btn > * { position: relative; z-index: 2; }
.btn::before { /* el relleno que entra desde la izquierda al pasar el mouse */
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: var(--relleno, var(--celeste)); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn::after { /* un halo muy suave donde está el mouse */
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 70%);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(.97); transition-duration: .12s; }
/* la flecha va en una pastilla cuadrada */
.btn .flecha {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; font-size: 17px; font-weight: 700;
  background: var(--pastilla, var(--celeste)); color: var(--pastilla-txt, #0a0b0d);
  transition: transform .5s var(--ease-resorte), background-color .35s, color .35s;
}
.btn:hover .flecha { transform: translateX(4px); }
.btn--primario { background: #fff; color: #0a0b0d; box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px -14px rgba(0,0,0,.7); --relleno: var(--celeste); --pastilla: #0a0b0d; --pastilla-txt: #fff; }
.btn--primario:hover { box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 20px 44px -14px rgba(117,170,219,.65); }
.btn--fantasma { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); --relleno: #fff; --pastilla: rgba(255,255,255,.12); --pastilla-txt: #fff; }
.btn--fantasma:hover { color: #0a0b0d; box-shadow: inset 0 0 0 1px #fff, 0 16px 36px -16px rgba(0,0,0,.8); --pastilla: #0a0b0d; }
.btn--blanco { background: #fff; color: #0a0b0d; box-shadow: 0 14px 34px -14px rgba(0,0,0,.6); --relleno: var(--celeste); --pastilla: #0a0b0d; --pastilla-txt: #fff; }
.btn--chico { min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.btn--chico .flecha { width: 30px; height: 30px; }
.btn:not(:has(.flecha)) { padding: 0 26px; justify-content: center; }

.enlace {
  display: inline-flex; align-items: center; gap: 10px; color: var(--celeste-claro); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 4px;
  transition: background-size .45s var(--ease), color .3s;
}
.enlace:hover { background-size: 100% 1.5px; color: #fff; }
.enlace .flecha { transition: transform .45s var(--ease-resorte); }
.enlace:hover .flecha { transform: translateX(6px); }

/* ---------- Tarjetas con luz y relieve ---------- */
.tarjeta {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; border-radius: var(--radio); overflow: hidden;
  background: linear-gradient(180deg, #171a20, #101216); box-shadow: var(--sombra-2);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--sube, 0));
  transition: transform .6s var(--ease), box-shadow .5s var(--ease);
  text-decoration: none; color: inherit;
}
.tarjeta::before { /* luz de interior */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(180,211,240,.20), transparent 45%);
}
.tarjeta::after { /* borde que se ilumina donde está el mouse */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(180,211,240,.9), rgba(255,255,255,.10) 50%, rgba(255,255,255,.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tarjeta:hover { --sube: -6px; box-shadow: var(--sombra-3); transition: transform .25s var(--ease), box-shadow .5s var(--ease); }
.tarjeta:hover::before { opacity: 1; }
.tarjeta .foto { position: relative; overflow: hidden; }
.tarjeta .foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.9); }
.tarjeta:hover .foto img { transform: scale(1.08); filter: saturate(1.05); }
.tarjeta .foto::after { /* veladura que se abre al pasar */
  content: ""; position: absolute; inset: 0; transition: opacity .6s var(--ease);
  background: linear-gradient(180deg, rgba(10,11,13,0) 40%, rgba(10,11,13,.85) 100%), linear-gradient(135deg, rgba(117,170,219,.28), transparent 55%);
}
.tarjeta:hover .foto::after { opacity: .55; }

/* ---------- Chips (listas de servicios) ---------- */
.chip {
  --mx: 50%; --my: 50%;
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  color: var(--gris-claro); font-size: 16px; font-weight: 600; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .3s, box-shadow .3s, transform .4s var(--ease-resorte), background-color .3s;
}
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(117,170,219,.35), transparent 70%); }
.chip:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(180,211,240,.6), 0 10px 24px -12px rgba(117,170,219,.8); transform: translateY(-2px); }
.chip:hover::before { opacity: 1; }

/* ---------- Barra superior ---------- */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px var(--margen);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.barra.fija { background: rgba(10,11,13,.92); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -20px rgba(0,0,0,.8); padding-block: 12px; }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.marca svg { width: 34px; height: 34px; color: #fff; transition: color .3s, transform .5s var(--ease-resorte); }
.marca:hover svg { color: var(--celeste); transform: rotate(-6deg) scale(1.06); }
.barra nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.barra nav a:not(.btn) { position: relative; color: var(--gris-claro); text-decoration: none; font-size: 15px; font-weight: 600; transition: color .3s; }
.barra nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad-celeste); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.barra nav a:not(.btn):hover { color: #fff; }
.barra nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .barra nav a:not(.btn) { display: none; } .barra .btn { min-height: 40px; padding: 0 14px; font-size: 13px; } .barra .btn .flecha { display: none; } }

.marca span { white-space: nowrap; }
@media (max-width: 760px) { .marca span { font-size: 11px; letter-spacing: .03em; } .marca { gap: 8px; } .marca svg { width: 26px; height: 26px; flex: 0 0 26px; } .barra { padding-inline: 16px; gap: 10px; } }

/* ---------- Pie ---------- */
.pie { background: var(--negro); padding: 40px 0; box-shadow: inset 0 1px rgba(255,255,255,.06); }
.pie__fila { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.pie__centro { text-align: center; }
.pie__copy { margin: 0; font-size: 15px; font-weight: 700; color: var(--blanco); }
.pie__frase { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--gris); }
.pie__frase a { color: inherit; text-decoration: none; } .pie__frase a:hover { color: var(--celeste-claro); }
.pie__nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.pie__nav a { font-size: 15px; font-weight: 700; color: var(--gris-claro); text-decoration: none; transition: color .25s; }
.pie__nav a:hover { color: var(--celeste-claro); }
@media (max-width: 860px) { .pie__fila { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; } .pie__nav { justify-content: center; } }

/* ---------- Portada con lente ---------- */
.portada { position: relative; min-height: 100svh; overflow: hidden; background: #050607; }
.portada__medio { position: absolute; inset: 0; z-index: 0; transform-origin: 50% 50%; }
.portada__medio video, .portada__medio img { width: 100%; height: 100%; object-fit: cover; }
.portada__velo { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,6,7,.62) 0%, rgba(5,6,7,.25) 12%, rgba(5,6,7,0) 22%),
              linear-gradient(0deg, rgba(5,6,7,.92) 0%, rgba(5,6,7,.55) 30%, rgba(5,6,7,0) 58%),
              linear-gradient(90deg, rgba(5,6,7,.45) 0%, rgba(5,6,7,0) 45%),
              radial-gradient(900px 500px at 0% 100%, rgba(47,95,143,.35), transparent 70%); }

/* Visor de ES: cuatro esquinas que encuadran la portada */
.visor { position: absolute; z-index: 3; pointer-events: none; inset: var(--visor-inset, clamp(14px, 2.4vw, 34px)); top: calc(var(--visor-inset, clamp(14px, 2.4vw, 34px)) + 64px); }
.visor i { position: absolute; width: clamp(26px, 3.6vw, 54px); aspect-ratio: 1; border: 0 solid rgba(255,255,255,.82); }
.visor i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.visor i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.visor i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.visor i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
html.con-lente .visor { opacity: 0; transform: scale(.42); }
html.con-lente.visor-on .visor { opacity: 1; transform: none; transition: transform .75s var(--ease-resorte), opacity .2s; }
html.visor-on .visor i { animation: foco 1s var(--ease) both; }
@keyframes foco { 0%, 35% { border-color: var(--celeste); } 100% { border-color: rgba(255,255,255,.82); } }

/* La tapa negra mientras arranca el lente; se va sola si el script no carga */
html.con-lente body::before { content: ""; position: fixed; inset: 0; z-index: 998; background: #050607; animation: tapa-fuera .5s 2.5s forwards; }
html.con-lente.lente-listo body::before { display: none; }
@keyframes tapa-fuera { to { opacity: 0; visibility: hidden; } }

.lente { position: fixed; inset: 0; z-index: 999; background: #050607; cursor: pointer; transition: opacity 1s var(--ease); }
.lente video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.lente.sale { opacity: 0; pointer-events: none; }
.lente.sale.rapido { transition-duration: .45s; }
.lente__avance { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-celeste); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(117,170,219,.8); }
.lente__saltar { position: absolute; right: 22px; bottom: 18px; z-index: 2; font: 700 12px/1 var(--fuente); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8);
  background: rgba(10,11,13,.45); border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background-color .3s, color .3s; }
.lente__saltar:hover { background: rgba(117,170,219,.35); color: #fff; }
.portada__fin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity 1.6s var(--ease); animation: acerca 9s linear both; }
.portada__fin.fuera { opacity: 0; }
@keyframes acerca { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Recorrido manejado por el scroll ---------- */
.recorrido { position: relative; height: 520svh; background: #050607; }
.recorrido__fijo { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.recorrido__fijo video, .recorrido__fijo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.recorrido [data-tramo] { position: absolute; z-index: 4; will-change: transform, opacity; }
.recorrido__avance { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; background: var(--grad-celeste); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 14px rgba(117,170,219,.85); }
.recorrido__cuadro { position: absolute; z-index: 5; right: calc(var(--margen) + 4px); top: 104px; font: 700 12px/1 var(--fuente); letter-spacing: .2em; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.recorrido__cuadro::before { content: "CUADRO "; color: var(--celeste); }
.recorrido__guia { position: absolute; z-index: 4; left: 50%; bottom: 34px; translate: -50% 0; margin: 0; display: grid; justify-items: center; gap: 10px;
  font: 700 12px/1 var(--fuente); letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.recorrido__guia::after { content: ""; width: 2px; height: 38px; border-radius: 2px; background: linear-gradient(var(--celeste), transparent); animation: guia 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes guia { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.recorrido.quieto { height: auto; }
.recorrido.quieto .recorrido__fijo { position: relative; }
.recorrido.quieto [data-tramo]:not(:first-of-type) { display: none; }
@media (max-width: 760px) { .recorrido { height: 430svh; } .recorrido__cuadro { top: 84px; } }

/* Nombre que sube letra por letra */
.letras { display: block; }
.titular.letras { background: none; color: #fff; }
.letras .l { background: var(--grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent; }
.letras .celeste .l { background: var(--grad-texto-celeste); -webkit-background-clip: text; background-clip: text; }
.letras .linea { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.letras .l { display: inline-block; will-change: transform; }
html.js .portada .letras .l { transform: translateY(105%); }
html.listo .portada .letras .l { transform: none; transition: transform 1s var(--ease) calc(var(--i) * 38ms); }

/* Palabra que rota (no salta: todas ocupan la misma celda) */
.rota { display: inline-grid; vertical-align: bottom; overflow: hidden; }
.rota > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(70%); transition: transform .7s var(--ease), opacity .5s var(--ease); }
.rota > span.activa { opacity: 1; transform: none; }
.rota > span.sale { opacity: 0; transform: translateY(-70%); }
html:not(.js) .rota > span:first-child { opacity: 1; transform: none; }

/* ---------- Entradas al hacer scroll ---------- */
html.js [data-entra] { opacity: 0; transform: translateY(28px); }
html.js [data-entra="foto"] { opacity: 1; transform: none; clip-path: inset(14% 6% 14% 6% round 18px); }
html.js [data-entra="foto"] img { transform: scale(1.18); }
html.js [data-entra].visto { opacity: 1; transform: none; transition: opacity .9s var(--ease) calc(var(--i, 0) * 80ms), transform 1s var(--ease) calc(var(--i, 0) * 80ms); }
html.js [data-entra="foto"].visto { clip-path: inset(0 0 0 0 round 0); transition: clip-path 1.3s var(--ease-entrada) calc(var(--i, 0) * 80ms); }
html.js [data-entra="foto"].visto img { transform: scale(1); transition: transform 1.8s var(--ease) calc(var(--i, 0) * 80ms); }
html.js [data-hero] { opacity: 0; transform: translateY(24px); }
html.listo [data-hero] { opacity: 1; transform: none; transition: opacity .9s var(--ease) calc(400ms + var(--i, 0) * 110ms), transform 1s var(--ease) calc(400ms + var(--i, 0) * 110ms); }
/* si el script falla, todo aparece igual */
html.js:not(.listo) [data-hero], html.js:not(.listo) [data-entra], html.js:not(.listo) .portada .letras .l { animation: salvavidas 0s 4.5s forwards; }
@keyframes salvavidas { to { opacity: 1; transform: none; clip-path: none; } }

/* ---------- Luz que sigue al mouse y mira de visor sobre las fotos ---------- */
.luz { position: fixed; left: 0; top: 0; z-index: 60; width: 640px; height: 640px; margin: -320px 0 0 -320px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(140,190,235,.16) 0%, rgba(117,170,219,.07) 32%, transparent 64%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s; will-change: transform; }
.luz.on { opacity: 1; }
.mira { position: fixed; left: 0; top: 0; z-index: 61; width: 74px; height: 74px; margin: -37px 0 0 -37px; pointer-events: none; opacity: 0; transform: scale(1.5); transition: opacity .3s, transform .45s var(--ease-resorte); }
.mira.on { opacity: 1; }
.mira i { position: absolute; width: 16px; height: 16px; border: 0 solid #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.mira i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.mira i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.mira i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.mira i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.mira b { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--celeste); box-shadow: 0 0 10px var(--celeste); }

/* ---------- Cifras ---------- */
.cifra { font-weight: 900; line-height: .85; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: var(--grad-texto-celeste); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Zoom ligado al scroll ---------- */
[data-zoom-scroll] { overflow: hidden; }
[data-zoom-scroll] img { transform: scale(var(--z, 1.12)) translateY(var(--py, 0)); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js [data-entra], html.js [data-hero], html.js .portada .letras .l { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-zoom-scroll] img { transform: none !important; }
  .luz, .mira { display: none; }
}
@media (hover: none) { .luz, .mira { display: none; } }
