/* WuClock — estilo de la web. Los mismos tokens que la app (utils/dnaWearable.js). */
:root {
  --fondo: #060509; --tarjeta: rgba(20, 15, 32, 0.55); --borde: rgba(255, 255, 255, 0.09);
  --texto: #EAE4F4; --cuerpo: #B8B2C8; --pie: #8E89A0;
  --violeta: #A98BE0; --violeta-suave: #C9A9E0; --dorado: #D4A852; --sobre-oro: #1A1625; --verde: #7FBF8E;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1240px; --radio: 26px;
  --suave: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 70% 20%, #120d1c 0%, #08070c 45%, var(--fondo) 80%) fixed; color: var(--texto); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--dorado); }
a:hover { color: #E5C27A; }
:focus-visible { outline: 2px solid var(--violeta-suave); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(212, 168, 82, .35); color: #fff; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--dorado); color: var(--sobre-oro); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.saltar:focus { top: 16px; }

/* El cielo: un lienzo fijo detrás de todo */
#cielo { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* La entrada */
.entrada { position: fixed; inset: 0; z-index: 300; background: #07060B; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .8s ease, visibility .8s; }
.entrada img { width: min(320px, 60vw); opacity: .95; animation: entra 1.2s var(--suave) both; }
.entrada p { margin: 0; font-size: 12px; letter-spacing: 3px; color: var(--violeta); text-transform: uppercase; }
.entrada-cifra { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--dorado); font-variant-numeric: tabular-nums; }
.entrada.fuera { opacity: 0; visibility: hidden; }
@keyframes entra { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Cursor propio */
.con-cursor, .con-cursor a, .con-cursor button { cursor: none; }
.cursor-punto, .cursor-aro { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 250; border-radius: 50%; opacity: 0; transition: opacity .3s ease; }
.con-cursor .cursor-punto, .con-cursor .cursor-aro { opacity: 1; }
.cursor-punto { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--dorado); }
.cursor-aro { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(212, 168, 82, .55); transition: opacity .3s ease, width .3s var(--suave), height .3s var(--suave), margin .3s var(--suave), background .3s; }
.cursor-aro.grande { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(212, 168, 82, .08); }

/* Tipografía y piezas */
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; color: var(--violeta); margin: 0; }
.titular { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -1px; margin: 14px 0 0; }
.t-xxl { font-size: clamp(56px, 10.5vw, 168px); }
.t-xl { font-size: clamp(48px, 8vw, 116px); }
.t-l { font-size: clamp(38px, 5.6vw, 80px); }
.t-m { font-size: clamp(30px, 3.6vw, 48px); }
.cursiva { font-style: italic; color: var(--violeta); }
.dorada { color: var(--dorado); }
.bajada { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--cuerpo); margin: 24px 0 0; max-width: 620px; }
.seccion { padding: clamp(90px, 13vw, 180px) 0; position: relative; }
.pie-nota { font-size: 13px; color: var(--pie); }

/* Botones: el dorado es lo que se toca */
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.boton { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 18px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .35s var(--suave), box-shadow .35s ease, background .35s ease; }
.boton:hover { transform: translateY(-3px); }
.boton-oro { background: var(--dorado); color: var(--sobre-oro); box-shadow: 0 14px 50px rgba(212, 168, 82, .28); }
.boton-oro:hover { color: var(--sobre-oro); box-shadow: 0 20px 70px rgba(212, 168, 82, .45); }
.boton-oro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--suave); }
.boton-oro:hover::after { transform: translateX(120%); }
.boton-linea { border: 1px solid rgba(212, 168, 82, .55); color: var(--dorado); background: rgba(7, 6, 11, .25); backdrop-filter: blur(6px); }
.boton svg { width: 20px; height: 20px; }

/* Encabezado */
.encabezado { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.encabezado.con-borde { background: rgba(7, 6, 11, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--borde); }
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: 150px; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a { color: var(--cuerpo); text-decoration: none; font-size: 15px; position: relative; }
.menu a:not(.boton)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--dorado); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--suave); }
.menu a:not(.boton):hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--texto); }
.menu .boton { min-height: 46px; padding: 0 22px; color: var(--sobre-oro); }
.abrir-menu { display: none; width: 46px; height: 46px; border-radius: 23px; border: 1px solid rgba(255,255,255,.16); background: rgba(7,6,11,.3); color: var(--texto); }
main { padding-top: 76px; }
@media (max-width: 900px) {
  .abrir-menu { display: inline-flex; align-items: center; justify-content: center; }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px; background: rgba(7,6,11,.97); border-bottom: 1px solid var(--borde); transform: translateY(-130%); transition: transform .45s var(--suave); }
  .menu.abierto { transform: none; }
  .menu a { min-height: 54px; display: flex; align-items: center; font-size: 19px; border-bottom: 1px solid var(--borde); }
  .menu a::after { display: none; }
  .menu .boton { margin-top: 16px; justify-content: center; border-bottom: none; }
  .logo img { width: 124px; }
}

/* Portada */
.portada { position: relative; min-height: min(calc(100vh - 76px), 960px); display: flex; align-items: center; }
.portada .contenedor { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; width: 100%; padding-top: 40px; padding-bottom: 110px; }
@media (max-width: 900px) { .portada .contenedor { grid-template-columns: 1fr; padding-bottom: 60px; } }
.capsula-escena { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; }
.capsula-3d { position: relative; transition: transform .8s var(--suave); }
.capsula-3d .chip { transition: transform .8s var(--suave); }
.halo { position: absolute; left: 50%; top: 50%; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,82,.34) 0%, rgba(169,139,224,.08) 42%, transparent 70%); animation: late 1.15s ease-in-out infinite; }
.anillo { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(212,168,82,.22); transform: translate(-50%, -50%); animation: onda 3.6s ease-out infinite; }
.anillo.a2 { animation-delay: 1.2s; } .anillo.a3 { animation-delay: 2.4s; }
.capsula { position: relative; width: 230px; height: 334px; border-radius: 115px; border: 22px solid transparent; background: linear-gradient(160deg, #15121f, #08070d) padding-box, linear-gradient(160deg, rgba(212,168,82,.42), rgba(212,168,82,.10) 45%, rgba(212,168,82,.28)) border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 50px 110px rgba(0,0,0,.8), 0 0 0 1px rgba(212,168,82,.12), inset 0 0 40px rgba(212,168,82,.06); }
.capsula small { font-size: 10.5px; font-weight: 600; letter-spacing: 2px; color: var(--violeta); }
.capsula strong { font-family: var(--serif); font-weight: 400; font-size: 118px; line-height: 1; color: var(--dorado); margin-top: 6px; text-shadow: 0 0 40px rgba(212,168,82,.4); }
.capsula span { font-size: 15px; font-weight: 600; color: var(--dorado); letter-spacing: 1px; }
.chip { position: absolute; background: rgba(18,14,28,.82); border: 1px solid var(--borde); border-radius: 16px; padding: 12px 16px; width: 190px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.chip b { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; color: var(--violeta); text-transform: uppercase; }
.chip p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.4; }
.chip-1 { left: -150px; top: 10px; } .chip-2 { right: -150px; bottom: 20px; }
@media (max-width: 900px) { .chip-1 { left: -10px; top: -30px; } .chip-2 { right: -10px; bottom: -30px; } .capsula-escena { min-height: 480px; } }
@keyframes late { 0%, 100% { transform: scale(.94); opacity: .8; } 12% { transform: scale(1.03); opacity: 1; } 24% { transform: scale(.97); } }
@keyframes onda { from { opacity: .8; width: 240px; height: 240px; } to { opacity: 0; width: 620px; height: 620px; } }
.pulso-vivo { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; }
.pulso-vivo canvas { width: 100%; height: 90px; }
.pulso-vivo .lectura { position: absolute; right: 24px; bottom: 56px; font-size: 13px; color: var(--cuerpo); letter-spacing: 1px; }
.pulso-vivo .lpm { font-family: var(--serif); font-size: 30px; color: var(--texto); margin-right: 4px; font-variant-numeric: tabular-nums; }

/* La cinta de señales */
.cinta { border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); overflow: hidden; padding: 22px 0; background: rgba(7,6,11,.35); }
.cinta-pista { display: flex; width: max-content; will-change: transform; }
.cinta span { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); white-space: nowrap; color: var(--cuerpo); padding-right: 56px; }
.cinta span i { font-style: normal; color: var(--dorado); padding-left: 56px; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* La frase que se enciende */
.enciende { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.2vw, 76px); line-height: 1.08; margin: 0; max-width: 1080px; }
.enciende span { color: rgba(234, 228, 244, .16); transition: color .5s ease; }
.enciende span.on { color: var(--texto); }

/* Tu día en un reloj de 24 horas */
.dia-grilla { display: grid; grid-template-columns: 1fr 520px; gap: 48px; margin-top: 40px; }
.momento { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transform: translateX(-10px); transition: opacity .6s ease, transform .6s var(--suave); }
.momento.activo { opacity: 1; transform: none; }
.momento .hora { font-family: var(--serif); font-size: clamp(64px, 8vw, 120px); line-height: 1; color: var(--violeta); }
.momento h3 { font-size: clamp(24px, 2.6vw, 34px); margin: 12px 0 0; font-weight: 600; }
.momento p { color: var(--cuerpo); font-size: 18px; max-width: 470px; margin: 12px 0 0; }
.reloj-fijo { position: sticky; top: 90px; height: calc(100vh - 110px); display: flex; align-items: center; justify-content: center; }
.reloj { position: relative; width: 500px; height: 500px; }
.reloj svg.esfera { position: absolute; inset: 0; width: 100%; height: 100%; }
.aguja { position: absolute; left: 50%; top: 50%; width: 2px; height: 240px; margin-left: -1px; margin-top: -240px; transform-origin: 50% 100%; transition: transform .25s linear; }
.aguja::before { content: ''; position: absolute; left: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--dorado); box-shadow: 0 0 24px rgba(212,168,82,.9); }
.aguja::after { content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 60px; background: linear-gradient(var(--dorado), transparent); }
.reloj-hora { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-family: var(--serif); font-size: 26px; color: var(--dorado); }
.telefono { position: absolute; left: 50%; top: 50%; width: 230px; aspect-ratio: 600 / 1056; transform: translate(-50%, -50%); border-radius: 36px; border: 8px solid #1b1824; background: #0E0C14; overflow: hidden; box-shadow: 0 50px 120px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.07), 0 0 80px rgba(169,139,224,.18); }
.telefono img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); filter: blur(6px); transition: opacity .7s ease, transform 1s var(--suave), filter .7s ease; }
.telefono img.visible { opacity: 1; transform: none; filter: none; }
.captura-movil { display: none; }
@media (max-width: 1000px) {
  .dia-grilla { grid-template-columns: 1fr; }
  .reloj-fijo { display: none; }
  .momento { min-height: auto; padding: 36px 0; opacity: 1; transform: none; }
  .momento .captura-movil { display: block; width: 240px; margin-top: 24px; border-radius: 30px; border: 8px solid #1b1824; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
}

/* Tarjetas */
.grilla { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tarjeta { position: relative; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: clamp(26px, 3vw, 42px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.tarjeta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; margin: 12px 0 0; }
.tarjeta p { color: var(--cuerpo); margin: 12px 0 0; }
.tarjeta-oro { border-color: rgba(212,168,82,.4); background: linear-gradient(160deg, rgba(212,168,82,.10), rgba(20,15,32,.55)); }
.brilla::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--x, 50%) var(--y, -20%), rgba(212,168,82,.16), transparent 45%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.brilla:hover::before { opacity: 1; }
.lista-limpia { list-style: none; padding: 0; margin: 16px 0 0; }
.lista-limpia li { padding: 11px 0; border-bottom: 1px solid var(--borde); color: var(--cuerpo); }
.lista-limpia li:last-child { border-bottom: none; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .dos-columnas { grid-template-columns: 1fr; } }
.dos-columnas > *, .grilla > *, .dia-grilla > * { min-width: 0; }
.captura { width: 100%; max-width: 320px; border-radius: 34px; border: 8px solid #1b1824; box-shadow: 0 50px 120px rgba(0,0,0,.65), 0 0 90px rgba(169,139,224,.15); margin: 0 auto; }

/* Hexágono que se dibuja */
.dibuja path, .dibuja polygon { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--suave), fill-opacity 1.2s ease 1.2s; fill-opacity: 0; }
.dibuja.visible path, .dibuja.visible polygon { stroke-dashoffset: 0; fill-opacity: 1; }

/* La edad */
.edad { text-align: center; }
.edad strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(130px, 18vw, 230px); line-height: .9; text-shadow: 0 0 60px rgba(127,191,142,.25); }
.edad .pastilla { display: inline-block; margin-top: 14px; padding: 7px 18px; border-radius: 999px; border: 1px solid rgba(127,191,142,.45); color: var(--verde); font-weight: 600; }

/* La Band con su texto girando */
.band-escena { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.band-escena img { width: 100%; max-width: 420px; position: relative; z-index: 1; filter: drop-shadow(0 40px 80px rgba(0,0,0,.7)); animation: flota 7s ease-in-out infinite; }
.texto-giro { position: absolute; width: 520px; height: 520px; animation: gira 40s linear infinite; }
.texto-giro text { font: 600 13px var(--sans); letter-spacing: 6px; fill: rgba(201,169,224,.55); }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 600px) { .texto-giro { width: 360px; height: 360px; } .band-escena { min-height: 400px; } }

/* El cierre */
.cierre { text-align: center; }
.cierre .botones { justify-content: center; }

/* Formularios */
.formulario { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.formulario input, .formulario textarea, .formulario select { flex: 1 1 240px; min-height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--texto); padding: 0 16px; font: 15px var(--sans); }
.formulario textarea { min-height: 140px; padding: 14px 16px; flex-basis: 100%; }
.formulario button { min-height: 56px; padding: 0 24px; border-radius: 14px; border: none; background: var(--dorado); color: var(--sobre-oro); font: 700 15px var(--sans); }
.formulario .estado { flex-basis: 100%; font-size: 14px; color: var(--cuerpo); min-height: 20px; margin: 0; }

/* Preguntas */
.preguntas details { border-bottom: 1px solid var(--borde); }
.preguntas summary { list-style: none; padding: 24px 0; font-size: 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: '+'; color: var(--dorado); font-size: 26px; line-height: 1; transition: transform .35s var(--suave); }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { color: var(--cuerpo); margin: 0 0 24px; max-width: 760px; }

/* Artículos */
.articulo { max-width: 740px; margin: 0 auto; padding: 72px 24px 110px; }
.articulo h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 68px); line-height: 1.03; margin: 14px 0 0; }
.articulo h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 60px 0 0; }
.articulo p, .articulo li { color: var(--cuerpo); font-size: 18px; line-height: 1.78; }
.articulo strong { color: var(--texto); }
.articulo .meta { color: var(--pie); font-size: 14px; margin-top: 16px; }
.articulo .resumen { border: 1px solid var(--borde); background: var(--tarjeta); border-radius: 18px; padding: 20px 24px; margin-top: 32px; }
.articulo .resumen p { margin: 6px 0; font-size: 16px; }
.articulo .cta-app { margin-top: 60px; }
.articulo .fuentes li { font-size: 14px; line-height: 1.6; color: var(--pie); }
.articulo .relacionadas { margin-top: 48px; }
.articulo .relacionadas a { display: block; padding: 14px 0; border-bottom: 1px solid var(--borde); text-decoration: none; font-size: 17px; }

/* Pie */
.pie { border-top: 1px solid var(--borde); padding: 64px 0 44px; color: var(--pie); font-size: 14px; background: rgba(7,6,11,.6); }
.pie .contenedor { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pie h2 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--violeta); margin: 0 0 12px; font-weight: 600; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin: 7px 0; }
.pie a { color: var(--cuerpo); text-decoration: none; }
.pie a:hover { color: var(--texto); }
.pie .aviso { grid-column: 1 / -1; border-top: 1px solid var(--borde); padding-top: 24px; line-height: 1.6; }
@media (max-width: 760px) { .pie .contenedor { grid-template-columns: 1fr 1fr; } }

/* Aparecer al bajar */
.aparece { opacity: 0; transform: translateY(34px); transition: opacity 1s ease, transform 1s var(--suave); }
.aparece.visible { opacity: 1; transform: none; }
.letras span { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(8px); transition: opacity .9s ease, transform .9s var(--suave), filter .9s ease; }
.letras.visible span { opacity: 1; transform: none; filter: none; }
html:not(.listo) .portada .letras span { opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aparece, .letras span, .momento { opacity: 1 !important; transform: none !important; filter: none !important; }
  .enciende span { color: var(--texto); }
  .dibuja path, .dibuja polygon { stroke-dashoffset: 0; fill-opacity: 1; }
}

/* En el teléfono nada se pasa del ancho: titulares un poco más chicos y tarjetas de la cápsula adentro */
html, body { overflow-x: clip; }
@media (max-width: 560px) {
  .t-xxl { font-size: clamp(44px, 13vw, 72px); }
  .t-xl { font-size: clamp(38px, 11vw, 60px); }
  .t-l { font-size: clamp(32px, 9.5vw, 48px); }
  .chip { width: 160px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .capsula-escena { overflow: hidden; }
}

/* ── Versión 3: más vida ─────────────────────────────────────────────────────────────────── */
/* Transiciones suaves entre páginas (Chrome, Edge, Safari 18) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .45s ease both salir; }
::view-transition-new(root) { animation: .55s ease both llegar; }
@keyframes salir { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes llegar { from { opacity: 0; transform: scale(1.015); filter: blur(4px); } }

/* La línea dorada de progreso */
.progreso { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 150; background: linear-gradient(90deg, rgba(169,139,224,.35), var(--violeta)); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* El logo gigante del pie */
.logo-gigante { max-width: var(--ancho); margin: 0 auto; padding: 0 24px 24px; opacity: .1; }
.logo-gigante img { width: 100%; }

/* Página 404 */
.no-esta { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

/* La app por dentro: en computadora se queda fija y las pantallas pasan de lado */
.galeria { position: relative; }
.galeria-fija { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3.5vh, 44px); padding-top: 76px; }
.galeria-pista { display: flex; align-items: flex-start; gap: clamp(48px, 6vw, 110px); width: max-content; padding: 0 max(24px, calc((100vw - var(--ancho)) / 2 + 24px)); will-change: transform; }
.pieza { margin: 0; width: clamp(210px, min(19vw, 29vh), 290px); transition: transform .5s var(--suave), opacity .5s ease; }
.marco { position: relative; border-radius: 38px; padding: 7px; background: linear-gradient(160deg, #26222f, #0d0b12); box-shadow: 0 40px 90px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.08); }
.marco img { width: 100%; border-radius: 31px; aspect-ratio: 1080 / 1900; object-fit: cover; }
.marco::after { content: ''; position: absolute; inset: 7px; border-radius: 31px; background: linear-gradient(115deg, rgba(255,255,255,.09), transparent 32%); pointer-events: none; }
.pieza figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; margin-top: 22px; }
.pieza-num { grid-row: span 2; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--violeta); }
.pieza figcaption b { font-size: 16px; font-weight: 600; color: var(--texto); }
.pieza figcaption span:last-child { font-size: 14.5px; line-height: 1.45; color: var(--cuerpo); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .galeria { height: auto !important; padding: clamp(80px, 12vw, 140px) 0; }
  .galeria-fija { position: static; height: auto; overflow: visible; }
  .galeria-pista { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; transform: none !important; }
  .galeria-pista::-webkit-scrollbar { display: none; }
  .pieza { flex: 0 0 auto; width: 240px; scroll-snap-align: center; transform: none !important; opacity: 1 !important; }
}

/* Grano de película sobre toda la página */
.grano { position: fixed; inset: -50%; z-index: 240; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); animation: grano 1.2s steps(5) infinite; }
@keyframes grano { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .grano { animation: none; } }
