/* Portada de Alba Vision. Las subpáginas (Labs, Space, Unblind) siguen con styles.css. */

@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-italica.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --night: #03081a;
  --deep: #050d1c;
  --ink: #071427;
  --marino: #0b1f3b;
  --blue: #2563eb;
  --soft: #8fb2ff;
  --paper: #f4f6fa;
  --dim: rgba(222,231,248,.8);
  --faint: rgba(222,231,248,.62);
  --line: rgba(143,178,255,.16);
  --ease: cubic-bezier(.16,1,.3,1);
  /* Escala de espacios (base 4) */
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --wrap: 1240px;
  --gutter: clamp(20px,4.5vw,64px);
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: rgba(143,178,255,.3) var(--deep); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: "Hanken Grotesk","Segoe UI",Helvetica,Arial,sans-serif; font-weight: 300; font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[id] { scroll-margin-top: var(--nav-h); }
::selection { background: rgba(143,178,255,.35); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 300; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; color: inherit; }
.hero-title em { color: var(--soft); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 200; padding: 10px 16px; background: var(--paper); color: var(--marino); border-radius: 8px; }
.skip:focus { top: var(--s4); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter)*2); margin: 0 auto; padding: 0 var(--gutter); }
h2 { font-size: clamp(32px,4vw,56px); line-height: 1.05; letter-spacing: -.03em; }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 400; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--paper); color: var(--marino); }
.btn-solid:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(222,231,248,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(222,231,248,.55); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-text { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: 15px; font-weight: 400; color: var(--paper); transition: color .3s; }
.btn-text::after { content: "→"; color: var(--soft); transition: transform .4s var(--ease); }
.btn-text:hover { color: var(--soft); }
.btn-text:hover::after { transform: translateX(5px); }

.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--soft); flex: none; }
.status i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--soft); animation: pulso 2.4s var(--ease) infinite; }
.status-dim i { background: var(--faint); }
.status-dim i::after { display: none; }
.status-price { color: var(--soft); }
@keyframes pulso { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

/* Aparición: desvanecido con desenfoque */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i,0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Menú: una pastilla flotante que se compacta al bajar */
.nav { position: fixed; z-index: 100; top: var(--s4); left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; padding-top: env(safe-area-inset-top); }
.nav-pill { pointer-events: auto; position: relative; display: flex; align-items: center; gap: var(--s5); width: min(calc(100% - 32px), 1240px); padding: 8px 8px 8px 22px; border-radius: 999px; border: 1px solid transparent; transition: width .7s var(--ease), background .4s, border-color .4s, box-shadow .4s; }
.nav.scrolled .nav-pill { width: min(calc(100% - 32px), 780px); background: rgba(7,20,39,.58); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-color: rgba(143,178,255,.14); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.nav-brand { display: flex; align-items: center; min-height: 44px; }
.nav-brand img { width: 168px; height: auto; transform-origin: left center; transition: transform .6s var(--ease); }
.nav.scrolled .nav-brand img { transform: scale(.82); }
.nav-links { position: relative; display: flex; gap: var(--s2); margin-left: auto; font-size: 14px; }
.nav-links a { position: relative; z-index: 1; color: var(--dim); padding: 9px 14px; transition: color .3s; }
.nav-links a:hover, .nav-links a.activo { color: var(--paper); }
.nav-marker { position: absolute; top: 0; bottom: 0; left: 0; width: 100px; border-radius: 999px; background: rgba(143,178,255,.12); transform-origin: left; transform: translateX(var(--mx,0)) scaleX(var(--mw,0)); transition: transform .5s var(--ease), opacity .3s; opacity: 0; }
/* Cambio de idioma: ES / EN, discreto, junto al botón del menú */
.nav-idioma { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; font-size: 13px; letter-spacing: .08em; color: var(--dim); transition: color .3s, background .3s; }
.nav-idioma:hover { color: var(--paper); background: rgba(143,178,255,.1); }
.nav.claro .nav-idioma { color: rgba(11,31,59,.72); }
.nav.claro .nav-idioma:hover { color: #0b1f3b; background: rgba(11,31,59,.06); }
.nav.abierto .nav-idioma { visibility: hidden; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { width: 16px; height: 1px; background: var(--paper); transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-panel { display: none; }

/* Portada */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--deep); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,13,28,.88) 0%, rgba(5,13,28,.4) 44%, transparent 70%), linear-gradient(0deg, var(--deep) 0%, transparent 30%); }
.hero-inner { position: relative; z-index: 2; }
.hero-title { font-size: clamp(46px,7.2vw,96px); line-height: 1; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .1em 0; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.4s var(--ease); }
.js .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero.listo .hero-title .line > span { transform: none; }
/* La línea de respaldo bajo el titular: lleva a Quiénes somos */
.hero-prueba { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; margin-top: var(--s3); font-size: 15px; color: var(--paper); text-decoration: underline; text-decoration-color: rgba(143,178,255,.35); text-underline-offset: 6px; transition: text-decoration-color .3s, color .3s; }
.hero-prueba:hover { color: var(--soft); text-decoration-color: var(--soft); }
.hero-prueba i { flex: none; width: 12px; height: 12px; background: var(--soft); clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.hero-prueba + .hero-sub { margin-top: var(--s3); }
.hero-sub { margin: var(--s5) 0 0; max-width: 36ch; font-size: clamp(17px,1.5vw,21px); color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s6); margin-top: var(--s6); }
.js .hero-prueba { opacity: 0; transition: opacity 1s var(--ease) .35s; }
.js .hero.listo .hero-prueba { opacity: 1; }
.js .hero-sub, .js .hero-cta, .js .hero-doors { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.js .hero.listo .hero-sub, .js .hero.listo .hero-cta, .js .hero.listo .hero-doors { opacity: 1; transform: none; }
.js .hero.listo .hero-cta { transition-delay: .65s; }
.js .hero.listo .hero-doors { transition-delay: .85s; }
.hero-doors { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: var(--s7); padding-top: var(--s8); padding-bottom: var(--s6); }
.door { display: grid; gap: 2px; padding: var(--s2) 0; }
.door-name { font-size: 20px; font-weight: 400; transition: color .3s; }
.door-name::after { content: " →"; color: var(--soft); display: inline-block; transition: transform .4s var(--ease); }
.door-line { font-size: 14px; color: var(--faint); }
.door:hover .door-name { color: var(--soft); }
.door:hover .door-name::after { transform: translateX(5px); }
.tagline { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s3); font-size: 15px; font-style: italic; color: var(--dim); }
.tagline i { width: 12px; height: 12px; background: var(--soft); clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); animation: titileo 3.2s ease-in-out infinite; }
@keyframes titileo { 0%,100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* Origen, misión y visión: una pantalla fija */
.origen { position: relative; height: 130vh; background: var(--deep); }
.origen-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.origen-inner { text-align: center; }
.origen-text { margin: 0 auto; font-size: clamp(22px,2.5vw,36px); line-height: 1.3; letter-spacing: -.015em; max-width: 40ch; }
/* Las palabras empiezan apenas visibles y se encienden al bajar (sin JavaScript se ven completas) */
.origen-text .w { opacity: .14; transition: opacity .5s ease; }
.origen-text .w.on { opacity: 1; }
/* Misión y visión: la cortina entre lo que ves y lo que ve Alba */
/* Ya no es pantalla fija: la foto cuenta sola lo que Alba va encontrando (landing.js) */
.mas-alla { position: relative; }
.mas-alla-pin { display: flex; align-items: center; min-height: 100svh; padding: calc(var(--nav-h) + var(--s7)) 0 var(--s9); }
.mas-alla-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: var(--s8); align-items: center; }
.mas-alla-texto h2 { font-size: clamp(40px,5vw,72px); line-height: 1.02; letter-spacing: -.03em; max-width: 10ch; }
.mas-alla-texto h2 em { color: var(--soft); }
.mv { display: grid; gap: var(--s6); margin: var(--s7) 0 0; max-width: 44ch; }
.mv div { opacity: .4; transition: opacity .6s var(--ease); }
.mv div.activa { opacity: 1; }
.mv dt { font-size: 16px; font-weight: 400; color: var(--soft); margin-bottom: var(--s2); }
.mv dd { margin: 0; font-size: clamp(17px,1.5vw,21px); line-height: 1.45; color: var(--paper); }
.cortina-bloque { justify-self: end; width: min(100%, 470px, calc((100svh - var(--nav-h) - 80px) * .8)); }
.cortina { position: relative; container-type: inline-size; margin: 0; width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(3,8,26,.8); }
.cortina-capa { position: absolute; inset: 0; }
.cortina-capa > img { width: 100%; height: 100%; object-fit: cover; }
/* La vista de Alba se enciende encima de la foto: primero el tono y la malla, luego los
   recuadros uno a uno y al final la frase. Al volver a «lo que ves» se apaga todo junto. */
.cortina-alba { opacity: 0; transition: opacity .7s var(--ease); }
.cortina[data-vista="alba"] .cortina-alba { opacity: 1; }
.cortina .caja, .cortina-voz, .cortina-rotulo-alba { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cortina[data-vista="alba"] .caja, .cortina[data-vista="alba"] .cortina-voz, .cortina[data-vista="alba"] .cortina-rotulo-alba { opacity: 1; transform: none; }
.cortina[data-vista="alba"] .caja:nth-of-type(1) { transition-delay: .6s; }
.cortina[data-vista="alba"] .caja:nth-of-type(2) { transition-delay: 1.05s; }
.cortina[data-vista="alba"] .caja:nth-of-type(3) { transition-delay: 1.5s; }
.cortina[data-vista="alba"] .caja:nth-of-type(4) { transition-delay: 1.95s; }
.cortina[data-vista="alba"] .cortina-voz { transition-delay: 2.6s; }
.cortina-normal .cortina-rotulo { display: none; }
/* Los dos botones, debajo de la foto */
.vistas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: var(--s4); padding: 4px; border-radius: 999px; background: rgba(244,246,250,.08); }
.vistas button { min-height: 40px; padding: 0 var(--s3); border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; color: var(--dim); cursor: pointer; transition: background .3s, color .3s; }
.vistas button:hover { color: var(--paper); }
.vistas button[aria-pressed="true"] { background: #f4f6fa; color: #0b1f3b; }
.cortina-alba > img { filter: saturate(.55) brightness(.82) contrast(1.05); }
.cortina-malla { position: absolute; inset: 0; background-image: linear-gradient(rgba(143,178,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(143,178,255,.12) 1px, transparent 1px); background-size: 24px 24px; mix-blend-mode: screen; }
.cortina-rotulo { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(5,13,28,.6); color: #f4f6fa; font-size: 12.5px; letter-spacing: .02em; }
.cortina-rotulo-alba { left: auto; right: 14px; background: #2563eb; }
.cortina-rotulo small { font-size: inherit; opacity: .75; }
.cortina-voz { position: absolute; z-index: 2; left: 5%; right: 5%; bottom: 5%; margin: 0; padding: 9px 13px; border-radius: 12px; background: rgba(244,246,250,.95); color: #0b1f3b; font-size: clamp(11px, 3.4cqw, 14px); line-height: 1.4; }
@container (max-width: 300px) {
  .cortina-rotulo { left: 8px; top: 8px; padding: 3px 8px; font-size: 10.5px; }
  .cortina-rotulo-alba { left: auto; right: 8px; }
  .cortina-rotulo small { display: none; }
}
/* Quiénes somos y collage de hitos */
.about { padding: var(--s9) 0; background: var(--deep); overflow: hidden; }
.about-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s8); align-items: center; }
.about-copy { display: grid; gap: var(--s5); }
.about-foto { margin: 0; }
.about-foto img { width: 100%; height: auto; max-height: 72svh; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.about-foto figcaption { margin-top: var(--s3); font-size: 13px; font-style: italic; color: var(--faint); }
.about-prensa { margin: 0; font-size: 15px; color: var(--dim); }
.about-head h2 { max-width: 26ch; }
.about-lead { margin: 0; max-width: 44ch; font-size: clamp(16px,1.3vw,19px); color: var(--dim); }
.collage-bar { display: flex; justify-content: flex-end; align-items: center; gap: var(--s2); margin-top: var(--s6); }
.collage-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(143,178,255,.1); color: var(--paper); cursor: pointer; transition: background .3s, transform .2s; }
.collage-btn:hover { background: rgba(143,178,255,.2); }
.collage-btn:active { transform: scale(.94); }
.collage-pause { background: none; border: 0; min-height: 44px; padding: 0 var(--s3); font-size: 14px; color: var(--dim); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(143,178,255,.4); text-underline-offset: 5px; transition: color .3s; }
.collage-pause:hover { color: var(--paper); }
.collage { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-top: var(--s3); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.collage::-webkit-scrollbar { display: none; }
.collage-row { list-style: none; margin: 0; padding: var(--s5) var(--gutter); display: flex; gap: var(--s5); width: max-content; }
/* Postales: la foto completa arriba y el texto abajo, como una foto impresa */
.collage-row { align-items: flex-start; }
.postal { flex: 0 0 auto; width: clamp(240px,22vw,300px); display: flex; flex-direction: column; gap: var(--s3); padding: 10px 10px var(--s4); border-radius: 14px; background: #f4f6fa; color: #0b1f3b; box-shadow: 0 24px 48px rgba(3,8,26,.3); transform: rotate(var(--r,0deg)); transition: transform .6s var(--ease); scroll-snap-align: center; }
.postal:nth-child(3n+1) { --r: -2deg; margin-top: var(--s5); }
.postal:nth-child(3n+2) { --r: 1.5deg; }
.postal:nth-child(3n) { --r: -.8deg; margin-top: var(--s7); }
.postal:hover { transform: rotate(0deg) translateY(-6px); }
.postal img { width: 100%; height: auto; border-radius: 8px; background: #d9e2ef; }
.postal-texto { display: grid; gap: 2px; padding: 0 6px; }
.postal-year { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: #2563eb; font-variant-numeric: tabular-nums; }
.postal b { margin-top: var(--s2); font-weight: 400; font-size: 16px; line-height: 1.3; }
.postal-nota { font-size: 14px; line-height: 1.45; color: rgba(11,31,59,.78); }
.postal-enlace { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: 14px; color: #0b1f3b; text-decoration: underline; text-decoration-color: rgba(37,99,235,.5); text-underline-offset: 5px; }
.postal-enlace:hover { color: #2563eb; }
.postal-enlace::after { content: "↗"; color: #2563eb; }
.about-prensa a { text-decoration: underline; text-decoration-color: rgba(143,178,255,.5); text-underline-offset: 5px; color: var(--paper); }
.about-prensa a:hover { color: var(--soft); }

/* Capacidades: el corazón */
.caps { padding: var(--s9) 0; background: var(--ink); }
.caps-title { max-width: 24ch; }
.caps-grid { list-style: none; padding: 0; margin: var(--s8) 0 0; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s6); }
.caps-botones { display: none; } /* sólo en celular (celular.css) */
.cap h3 { font-size: 20px; letter-spacing: -.01em; margin-top: var(--s5); }
.cap p { margin: var(--s2) 0 var(--s3); font-size: 15px; color: var(--dim); }
.cap small { font-size: 13px; color: var(--soft); }
.viz { position: relative; container-type: inline-size; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #0b1c36; isolation: isolate; }
.viz > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viz > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
:is(.viz, .cortina) .caja { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 1.5px solid #8fb2ff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(5,13,28,.22); }
.viz .caja { opacity: 0; animation: caja 8s var(--ease) var(--d) infinite; }
:is(.viz, .cortina) .caja span { position: absolute; left: 0; top: 0; padding: 2px 7px; border-radius: 4px 0 6px 0; background: #2563eb; color: #fff; font-size: clamp(9px, 4cqw, 12px); line-height: 1.4; white-space: nowrap; }
:is(.viz, .cortina) .caja-texto { border-color: #f4f6fa; }
:is(.viz, .cortina) .caja-der span { left: auto; right: 0; border-radius: 0 4px 0 6px; }
:is(.viz, .cortina) .caja-texto span { background: #f4f6fa; color: #0b1f3b; }
@keyframes caja { 0% { opacity: 0; transform: scale(1.06); } 8%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.cap .viz-voz { position: absolute; z-index: 2; left: 6%; right: 6%; bottom: 6%; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(244,246,250,.95); color: #0b1f3b; font-size: clamp(10px, 4.4cqw, 13.5px); line-height: 1.35; box-shadow: 0 6px 18px -8px rgba(5,13,28,.5); opacity: 0; animation: voz 8s var(--ease) 1.8s infinite; }
@keyframes voz { 0% { opacity: 0; transform: translateY(8px); } 10%, 70% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; } }
.viz-orientar { background: radial-gradient(120% 90% at 30% 20%, #10264a, #050d1c 70%); }
.viz-fondo circle { fill: rgba(222,231,248,.4); }
.viz-estrellas circle { fill: #f4f6fa; animation: titileo 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.viz-estrellas circle:nth-child(2n) { animation-delay: 1.2s; }
.viz-figura line { stroke: #8fb2ff; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: linea 8s var(--ease) infinite; }
.viz-figura line:nth-child(2) { animation-delay: .12s; } .viz-figura line:nth-child(3) { animation-delay: .24s; } .viz-figura line:nth-child(4) { animation-delay: .36s; }
.viz-figura line:nth-child(5) { animation-delay: .48s; } .viz-figura line:nth-child(6) { animation-delay: .6s; } .viz-figura line:nth-child(7) { animation-delay: .72s; } .viz-figura line:nth-child(8) { animation-delay: .84s; }
@keyframes linea { 0%, 8% { stroke-dashoffset: 1; opacity: 1; } 36%, 80% { stroke-dashoffset: 0; opacity: 1; } 92%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.viz-nombre { position: absolute; z-index: 1; left: var(--x); top: var(--y); translate: -50% 0; font-size: clamp(9px, 3.8cqw, 11.5px); letter-spacing: .04em; color: rgba(222,231,248,.85); white-space: nowrap; opacity: 0; animation: voz 8s var(--ease) 2.6s infinite; }
.cap .viz-voz-corta { left: 6%; right: auto; top: 6%; bottom: auto; padding: 5px 11px; border-radius: 999px; animation-delay: 3s; }
@container (max-width: 240px) {
  .cap .viz-voz { left: 3%; right: 3%; bottom: 3%; padding: 4px 7px; border-radius: 8px; font-size: 10px; }
  .viz .caja span { padding: 1px 5px; }
  .cap .viz-voz-corta { top: 5%; bottom: auto; right: auto; padding: 3px 8px; }
}
.viz-ejemplo { position: absolute; z-index: 3; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(5,13,28,.55); color: #f4f6fa; font-size: 10.5px; letter-spacing: .03em; }

/* Alba Vision: ventana fija con menú lateral */
.visual-note { position: absolute; left: 0; bottom: 0; font-size: 13px; font-style: italic; color: var(--faint); pointer-events: none; }
@keyframes onda { 0% { transform: scale(.6); opacity: 0; } 15% { opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }

/* Cocina de Vision Ops */
.kitchen { position: absolute; left: 0; top: 0; width: 82%; height: 100%; display: grid; place-items: center; perspective: 1300px; }
.floor { position: relative; width: 86%; aspect-ratio: 1.25; transform: rotateX(56deg) rotateZ(-36deg); transform-style: preserve-3d; border-radius: 16px; background: linear-gradient(0deg, rgba(143,178,255,.06) 1px, transparent 1px) 0 0/24px 24px, linear-gradient(90deg, rgba(143,178,255,.06) 1px, transparent 1px) 0 0/24px 24px, rgba(143,178,255,.035); box-shadow: 0 70px 90px rgba(0,0,0,.5); }
.st { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 10px; background: rgba(37,99,235,.1); transform-style: preserve-3d; animation: calor 5.2s ease-in-out infinite; animation-delay: var(--d); }
.st::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.5), transparent 62%); opacity: 0; animation: brillo 5.2s ease-in-out infinite; animation-delay: var(--d); pointer-events: none; }
.st span { position: absolute; left: 50%; top: 50%; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--marino); font-size: 12px; color: var(--paper); transform: translate(-50%,-50%) rotateZ(36deg) rotateX(-56deg) translateY(-18px); }
@keyframes calor { 0%,100% { background: rgba(37,99,235,.08); transform: translateZ(0); } 45% { background: rgba(37,99,235,.38); transform: translateZ(16px); } }
@keyframes calor-plano { 0%,100% { background: rgba(37,99,235,.08); } 45% { background: rgba(37,99,235,.38); } }
@keyframes brillo { 0%,100% { opacity: 0; } 45% { opacity: 1; } }
.walker { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--soft); box-shadow: 0 4px 10px rgba(0,0,0,.45); animation: andar 11s ease-in-out infinite; transform: translateZ(4px); }
.walker-2 { background: #fff; animation: andar2 13s ease-in-out infinite; }
@keyframes andar { 0%,100% { left: 24%; top: 19%; } 22% { left: 66%; top: 51%; } 44% { left: 48%; top: 84%; } 66% { left: 18%; top: 55%; } 84% { left: 75%; top: 16%; } }
@keyframes andar2 { 0%,100% { left: 66%; top: 51%; } 30% { left: 24%; top: 19%; } 55% { left: 66%; top: 51%; } 80% { left: 48%; top: 84%; } }
.report { position: absolute; right: 0; bottom: 12%; width: min(290px,48%); padding: var(--s5); border-radius: 16px; background: var(--paper); color: var(--marino); box-shadow: 0 30px 70px rgba(0,0,0,.45); animation: flotar 7s ease-in-out infinite; }
@keyframes flotar { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.report-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 var(--s3); font-size: 13px; font-weight: 400; }
.pill { padding: 2px 10px; border-radius: 999px; background: rgba(37,99,235,.1); color: var(--blue); font-size: 12px; }
.bar { display: grid; grid-template-columns: 108px 1fr; gap: var(--s3); align-items: center; padding: 6px 0; font-size: 13px; color: #33476a; }
.bar i { display: block; height: 5px; border-radius: 5px; width: calc(var(--v) * 100%); background: var(--blue); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }

/* Alba Space */
.space { position: relative; min-height: 100svh; display: flex; align-items: center; padding: var(--s10) 0; overflow: hidden; background: var(--night); }
.space-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.space-canvas:active { cursor: grabbing; }
.space-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3,8,26,.9) 0%, rgba(3,8,26,.45) 50%, transparent 78%), linear-gradient(0deg, rgba(3,8,26,.7), transparent 40%); }
.space-inner { position: relative; z-index: 2; pointer-events: none; }
.space-inner a { pointer-events: auto; }
.space-inner h2 { max-width: 16ch; }
.space-lead { margin: var(--s5) 0 0; max-width: 44ch; font-size: clamp(16px,1.35vw,19px); color: var(--dim); }
.systems { list-style: none; padding: 0; margin: var(--s8) 0 var(--s7); display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s7); max-width: 1080px; }
.systems h3 { font-size: 20px; letter-spacing: -.01em; }
.systems p { margin: var(--s2) 0 var(--s4); font-size: 15px; color: var(--dim); }
.space-hud { position: absolute; z-index: 2; right: var(--gutter); top: 16%; margin: 0; display: grid; gap: 6px; text-align: right; font-size: 13px; color: var(--soft); pointer-events: none; }
.space-hud span:last-child { color: var(--paper); }
.space-note { left: auto; right: var(--gutter); bottom: var(--s5); }

/* Contacto */
.contact { position: relative; min-height: 76svh; display: grid; place-items: center; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 115%, rgba(37,99,235,.38), transparent 58%), var(--deep); }
.contact-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.contact-title { font-size: clamp(50px,8vw,96px); line-height: 1; letter-spacing: -.035em; }
.contact-lead { margin: var(--s5) 0 0; max-width: 40ch; font-size: clamp(16px,1.4vw,20px); color: var(--dim); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s7); }
.contact-orbits { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.contact-orbits i { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.contact-orbits i:nth-child(1) { width: 46vmin; height: 46vmin; }
.contact-orbits i:nth-child(2) { width: 74vmin; height: 74vmin; border-style: dashed; border-color: rgba(143,178,255,.1); animation: girar 80s linear infinite; }
.contact-orbits i:nth-child(3) { width: 104vmin; height: 104vmin; border-color: rgba(143,178,255,.07); }
.contact-orbits i:nth-child(2)::after { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--soft); }
.contact-orbits b { position: absolute; width: 22vmin; height: 22vmin; border-radius: 50%; background: radial-gradient(circle, rgba(143,178,255,.22), transparent 65%); }
@keyframes girar { to { transform: rotate(360deg); } }

/* Pie */
.footer { padding: var(--s7) 0 var(--s6); background: var(--night); }
.footer-grid { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: var(--s5) var(--s7); align-items: center; }
.footer-grid img { width: 160px; height: auto; }
.footer-tag { margin: 0; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s5); font-size: 14px; color: var(--dim); }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.footer-links a:hover { color: var(--paper); }
.footer-copy { grid-column: 1 / -1; font-size: 12px; color: var(--faint); }
/* Pie: el enlace al aviso de privacidad, arriba del año */
.footer-legal { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--dim); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: underline; text-decoration-color: rgba(143,178,255,.4); text-underline-offset: 5px; }
.footer-legal a:hover { color: var(--soft); }

/* Sin JavaScript o con «menos movimiento»: todo apilado y quieto */

/* Tableta */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-idioma { margin-left: auto; }
  .nav-idioma + .nav-toggle { margin-left: 0; }
  .nav-carrito ~ .nav-idioma { margin-left: 0; }
  .nav.scrolled .nav-pill { width: min(calc(100% - 32px), 1240px); }
  .nav-panel { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: var(--s5); padding: 0 var(--gutter); background: rgba(5,13,28,.97); font-size: clamp(28px,7vw,40px); letter-spacing: -.02em; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; pointer-events: auto; }
  .nav-panel.abierto { opacity: 1; visibility: visible; }
  .systems { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .caps-grid { grid-template-columns: 1fr 1fr; }
}

/* Celular */
@media (max-width: 760px) {
  :root { --nav-h: 76px; }
  body { font-size: 16px; }
  .nav { top: var(--s3); }
  .nav-pill { padding: 6px 6px 6px 18px; }
  .nav-brand img { width: 132px; }
  .nav.scrolled .nav-brand img { transform: none; }
  h2 { font-size: clamp(28px,8vw,38px); }

  .hero-veil { background: linear-gradient(0deg, var(--deep) 12%, rgba(5,13,28,.6) 58%, rgba(5,13,28,.2) 100%); }
  .hero-title { font-size: clamp(42px,12vw,56px); }
  .hero-cta { gap: var(--s5); }
  /* Los dos accesos lado a lado: la portada cabe en una pantalla y el ojo no tapa el titular */
  .hero-doors { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s4); padding-top: var(--s6); }
  .door-name { font-size: 18px; }
  .door-line { font-size: 13px; }
  .tagline { grid-column: 1 / -1; margin-left: 0; }
  .hero-prueba { font-size: 14px; margin-top: var(--s2); }

  .origen { height: 125vh; }
  .origen-text { font-size: clamp(19px,5.4vw,24px); line-height: 1.35; }
  .mas-alla-pin { align-items: flex-start; padding-top: calc(var(--nav-h) + var(--s4)); }
  .mas-alla-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .mas-alla-texto h2 { font-size: clamp(30px,8.5vw,40px); max-width: none; }
  .mv { gap: var(--s3); margin-top: var(--s4); }
  .mv dt { font-size: 14px; margin-bottom: 2px; }
  .mv dd { font-size: 15px; }
  .cortina-bloque { justify-self: center; width: min(100%, 400px); }
  .cortina { border-radius: 18px; }

  .about { padding: var(--s9) 0 var(--s8); }
  .about-head { gap: var(--s4); }
  .collage { margin-top: var(--s6); }
  .about-head { grid-template-columns: 1fr; gap: var(--s6); }
  .about-foto { max-width: 280px; }
  .postal { width: 230px; }
  .postal-year { font-size: 22px; }
  .postal b { font-size: 15px; }
  .postal-nota { font-size: 13.5px; }

  .caps { padding: var(--s8) 0 var(--s9); }
  .caps-grid { gap: var(--s6) var(--s4); margin-top: var(--s7); }
  .cap h3 { font-size: 18px; margin-top: var(--s3); }
  .cap p { font-size: 14px; margin-bottom: var(--s2); }
  .cap small { font-size: 12px; }

  /* Alba Vision en celular: los proyectos como fila deslizable arriba */
  .report { width: 46%; padding: var(--s3); bottom: 2%; }
  .report-head { font-size: 12px; margin-bottom: var(--s2); }
  .bar { grid-template-columns: 1fr; gap: 3px; padding: 3px 0; font-size: 12px; }
  .bar:nth-of-type(3) { display: none; }
  .visual-note { font-size: 12px; }

  .space { padding: var(--s9) 0 var(--s8); align-items: flex-end; }
  .space-veil { background: linear-gradient(0deg, rgba(3,8,26,.95) 0%, rgba(3,8,26,.7) 55%, rgba(3,8,26,.2) 100%); }
  .systems { grid-template-columns: 1fr; gap: var(--s5); margin: var(--s6) 0 var(--s6); }
  .systems h3 { font-size: 19px; }
  .systems p { font-size: 14px; margin-bottom: var(--s2); }
  .space-hud { display: none; }

  .contact { min-height: 72svh; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-sub, .js .hero-cta, .js .hero-doors, .js .hero-prueba { opacity: 1; transform: none; }
  .js .hero-title .line > span { transform: none; }
  .bar i { transform: none; }
  .viz .caja, .cap .viz-voz, .viz-nombre { opacity: 1; }
  .viz-figura line { stroke-dashoffset: 0; }
}
.space-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5) var(--s6); }

/* Sin JavaScript o con «menos movimiento»: el origen se lee corrido */
html:not(.js) .origen, .reduce .origen { height: auto; }
/* Sin JavaScript se ve la vista de Alba completa */
html:not(.js) .cortina-alba, html:not(.js) .cortina .caja, html:not(.js) .cortina-voz, html:not(.js) .cortina-rotulo-alba { opacity: 1; transform: none; }
html:not(.js) .vistas { display: none; }
.reduce .mv div, html:not(.js) .mv div { opacity: 1; }
html:not(.js) .origen-pin, .reduce .origen-pin { position: static; height: auto; padding: var(--s10) 0; }

/* ═══ Alba Vision: los proyectos como lista editorial, con su vista previa ═══
   Los nombres en grande; el que se toca o se señala se abre y su imagen aparece en el visor. */
/* clip (no hidden) para no romper el visor pegado: el brillo de las estaciones de la cocina 3D se salía 14 px a la derecha en celular */
.proyectos { position: relative; padding: var(--s10) 0 var(--s9); overflow-x: clip; }
.proyectos .wrap { max-width: calc(1440px + var(--gutter) * 2); }
.proyectos-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-bottom: var(--s7); }
.proyectos-head p { margin: 0; font-size: 16px; color: var(--faint); }
.proyectos-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: var(--s8); align-items: start; }
.proyectos-lista { list-style: none; margin: 0; padding: 0; }
/* Al llegar con /#proyecto-… o /#alba-space, que el menú flotante no tape el título */
.proyecto, #alba-vision, #alba-space { scroll-margin-top: calc(var(--nav-h) + var(--s3)); }
.proyecto-nombre { display: flex; align-items: baseline; justify-content: flex-start; gap: var(--s4); width: 100%; padding: var(--s3) 0; border: 0; background: none; text-align: left; cursor: pointer; }
.proyecto-nombre span { font-size: clamp(30px,3.4vw,50px); line-height: 1.08; letter-spacing: -.03em; color: var(--faint); transition: color .4s; }
.proyecto-nombre small { flex: none; font-size: 13px; color: var(--soft); opacity: 0; transition: opacity .4s; }
.proyecto.activo .proyecto-nombre span, .proyecto-nombre span:hover { color: var(--paper); }
.proyecto.activo .proyecto-nombre small { opacity: 1; }
.proyecto-detalle { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.proyecto.activo .proyecto-detalle { grid-template-rows: 1fr; }
.proyecto-detalle > div { overflow: hidden; }
/* Sólo la descripción (en celular la imagen del proyecto también vive dentro del detalle) */
.proyecto-detalle > div > p { margin: 0 0 var(--s3); max-width: 52ch; font-size: 16px; color: var(--dim); }
.proyecto-detalle .pasos { margin: 0 0 var(--s4); }
.proyecto-enlaces { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding-bottom: var(--s4); }
html:not(.js) .proyecto-detalle { grid-template-rows: 1fr; }

/* El visor: se queda a la vista junto a la lista; arriba la imagen, abajo qué es */
.proyectos-visor { position: sticky; top: calc(var(--nav-h) + var(--s5)); display: grid; grid-template-rows: min(46svh, 460px) auto; gap: var(--s5); }
.visor-imagenes { position: relative; min-height: 0; }
.visor-texto p { margin: 0 0 var(--s3); max-width: 56ch; font-size: 16px; color: var(--dim); }
.visor-texto .pasos { margin: 0 0 var(--s4); }
@media (min-width: 1081px) { .proyecto-detalle { display: none; } }
.proy-visual { position: absolute; inset: 0; container-type: size; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s; }
.proy-visual.activa { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.proy-visual.activa .bar i { transform: none; }
.proy-visual .visual-note { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.proy-visual:has(> .visual-note) { padding-bottom: 30px; }

/* El marco: tan grande como quepa en el visor, con la forma de su imagen y el pie debajo */
.marco { --pie: 0px; position: relative; margin: 0; width: min(100cqw, (100cqh - var(--pie)) * (var(--ar))); }
.marco img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; border-radius: 16px; }
.marco figcaption { position: absolute; top: calc(100% + 8px); left: 50%; width: max-content; max-width: 100cqw; transform: translateX(-50%); font-size: 13px; font-style: italic; line-height: 1.35; color: var(--faint); text-align: center; }
/* Lo que no es foto real lleva una etiqueta corta en la esquina («Ilustración», «Ejemplo»), sin pie descriptivo */
.marco .etiqueta { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(5,13,28,.55); color: #f4f6fa; font-size: 11px; letter-spacing: .02em; }
.marco-telefono .etiqueta { top: 14px; right: 14px; }
.marco-claro img { object-fit: contain; background: #eceff3; }
.marco-telefono img { border: 6px solid #1b3152; border-radius: 24px; }
.tema-dia .marco img { box-shadow: 0 24px 50px rgba(11,31,59,.16); }
.floor { width: min(86%, 115cqh); }

/* Órbita: una conversación de ejemplo, con los colores de Alba Vision */
.chat { width: min(100%, 440px); display: grid; gap: var(--s3); padding: var(--s5); border-radius: 22px; background: #fff; box-shadow: 0 24px 50px rgba(11,31,59,.14); }
.chat-cabeza { display: flex; justify-content: space-between; align-items: center; margin: 0 0 var(--s2); font-size: 13px; color: #0b1f3b; }
.msg { margin: 0; max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg-cliente { justify-self: end; border-bottom-right-radius: 4px; background: #0b1f3b; color: #f4f6fa; }
.msg-orbita { justify-self: start; border-bottom-left-radius: 4px; background: #e6eefc; color: #0b1f3b; }
.msg-sistema { justify-self: center; max-width: 100%; padding: 4px 0 0; font-size: 13px; color: #2563eb; }
.proy-visual.activa .msg { opacity: 1; transform: none; }
.proy-visual.activa .msg:nth-of-type(3) { transition-delay: .9s; }
.proy-visual.activa .msg:nth-of-type(4) { transition-delay: 1.7s; }
.proy-visual.activa .msg:nth-of-type(5) { transition-delay: 2.4s; }

/* Tableta y celular: el visor arriba, a la vista, y la lista debajo */
@media (max-width: 1080px) {
  .proyectos { padding: var(--s9) 0 var(--s8); }
  .proyectos-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .proyectos-visor { order: -1; top: var(--nav-h); z-index: 1; display: block; height: 40svh; padding-bottom: var(--s3); background: #f4f6fa; }
  .visor-imagenes { height: 100%; }
  .visor-texto { display: none; }
  .proy-visual:has(> .chat) { padding-bottom: 0; }
  .proy-visual .chat ~ .visual-note { display: none; }
  .chat { padding: var(--s3) var(--s4); gap: 6px; }
  .chat-cabeza { margin: 0; }
  .msg { font-size: 12.5px; padding: 7px 11px; }
}
@media (max-width: 760px) {
  .proyectos-head { margin-bottom: var(--s5); }
  .proyectos-head p { display: none; }
  .proyecto-nombre span { font-size: clamp(26px,8vw,34px); }
  .proyecto-detalle > div > p { font-size: 15px; }
  .proyectos-visor { height: 36svh; }
  .marco figcaption { top: calc(100% + 6px); font-size: 12px; }
  /* En celular la cocina va a la izquierda y la tarjeta a la derecha, sin taparse,
     y la tarjeta queda arriba del espacio de la nota «Ejemplo ilustrativo» */
  .kitchen { width: 60%; }
  .proy-visual .report { width: 40%; bottom: 30px; }
  .proy-visual .st span { padding: 3px 7px; font-size: 10px; }
  /* Las estaciones sólo cambian de color, sin subir, para que sus etiquetas no se toquen */
  .proy-visual .st { animation-name: calor-plano; }
  .proy-visual .report-head { flex-wrap: wrap; gap: 4px; }
  .chat { padding: var(--s4); gap: var(--s2); }
  .msg { font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 360px) {
  /* En teléfonos angostos la tarjeta sólo muestra una barra, para no subir debajo del menú */
  .proy-visual .bar:nth-of-type(2) { display: none; }
  /* Las capacidades en una columna: a dos, las etiquetas chocaban con «Ejemplo» */
  .caps-grid { grid-template-columns: 1fr; }
  /* El pie de foto del visor ocupa dos renglones: se le deja su espacio */
}

/* Celulares bajitos: el eslogan de la portada se queda en el pie para que todo quepa */
@media (max-width: 760px) and (max-height: 800px) {
  .hero .tagline { display: none; }
}

/* Donde hemos estado: logos en blanco, semitransparentes, que se desplazan despacio */
/* Va dentro de «Quiénes somos», después de las postales: primero los premios, luego dónde hemos estado */
/* Un título con la voz de la página (ligero, la segunda parte en itálica azul) y debajo los
   logos desfilando de orilla a orilla */
.logos { position: relative; padding: var(--s8) 0 0; overflow: hidden; }
.logos-titulo { max-width: 22ch; margin: 0 0 var(--s5); font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1.12; letter-spacing: -.025em; color: var(--paper); text-wrap: balance; }
.logos-titulo em { display: block; color: var(--soft); }
.logos-pista { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos-lista { display: flex; width: max-content; animation: logos-desfile 60s linear infinite; }
.logos-pista:hover .logos-lista { animation-play-state: paused; }
.logos ul { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); margin: 0; padding: 0 clamp(20px, 2.5vw, 36px); list-style: none; }
.logos li { display: flex; align-items: center; height: 48px; flex: none; }
.logos img { height: var(--alto, 28px); width: auto; opacity: .58; transition: opacity .3s; }
.logos li:hover img { opacity: .9; }
.logo-texto { font-size: 18px; font-weight: 400; letter-spacing: .02em; color: rgba(244,246,250,.62); white-space: nowrap; }
@keyframes logos-desfile { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .logos { padding-top: var(--s7); }
  .logos img { height: calc(var(--alto, 28px) * .8); }
  .logo-texto { font-size: 15px; }
}
/* Con «menos movimiento»: quietos, en renglones */
@media (prefers-reduced-motion: reduce) {
  .logos-lista { width: auto; animation: none; }
  .logos-lista ul { flex-wrap: wrap; justify-content: center; row-gap: var(--s5); }
  .logos-lista ul[aria-hidden] { display: none; }
  .logos-pista { -webkit-mask-image: none; mask-image: none; }
}

/* Cómo trabajamos: cuatro pasos en orden, unidos con flechas, quietos */
.pasos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.pasos li { display: inline-flex; align-items: center; gap: var(--s3); font-size: 14px; color: var(--paper); }
.pasos li:not(:last-child)::after { content: "→"; color: var(--soft); }
@media (max-width: 760px) { .pasos { margin-top: var(--s3); } .pasos li { font-size: 13px; } }

/* Redes en el pie */
.footer-redes { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.red { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; height: 44px; padding: 0 8px; border-radius: 10px; color: rgba(244,246,250,.7); transition: color .25s, filter .25s, transform .2s; }
.red:hover, .red:focus-visible { color: #fff; filter: drop-shadow(0 0 8px rgba(143,178,255,.75)); }
.red:active { transform: scale(.94); }
.red svg { width: 21px; height: 21px; flex: none; }
.red .trazo { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.red .lleno { fill: currentColor; }
.red-con-nombre { font-size: 12.5px; letter-spacing: .04em; }
@media (max-width: 1240px) { .footer-redes { grid-column: 1 / -1; } }
.space-estado { margin: 0 0 var(--s6); }

/* El panel de Vision Ops: la vista aérea del restaurante de la ronda 13, en lugar del plano dibujado */
.kitchen-aerea { width: 100%; height: auto; max-height: 100%; object-fit: contain; }

/* Alba Space: el instrumento flota sobre el cielo (propuesta de diseño de la ronda 14); no
   estorba para arrastrar el cielo */
.space-instrumento { position: absolute; z-index: 1; right: 19%; top: calc(var(--nav-h) + 8svh); width: min(18vw, 270px); margin: 0; pointer-events: none; }
.space-instrumento img { display: block; width: 100%; height: auto; animation: flotar 9s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.space-instrumento .marca-ilus { position: absolute; top: auto; bottom: -28px; right: 0; padding: 2px 9px; border-radius: 999px; background: rgba(244,246,250,.1); color: rgba(244,246,250,.75); font-size: 11px; white-space: nowrap; }
@keyframes flotar { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .space-instrumento img { animation: none; } }

/* Alba Space en la portada: cada misión con su dibujo animado, del mismo lenguaje que las
   simulaciones de su página (las estrellas se unen, algo cruza entre ellas, la mira se cierra) */
.sistema-dibujo { display: block; width: min(100%, 190px); height: auto; margin: 0 0 var(--s3); overflow: visible; }
.sistema-dibujo .estrellas circle { fill: rgba(220,232,255,.75); }
.sistema-orientarse .trazo { fill: none; stroke: #8fb2ff; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sistema-trazo 6s var(--ease) infinite; }
.sistema-orientarse .centros circle { fill: none; stroke: rgba(143,178,255,.9); stroke-width: 1; opacity: 0; animation: sistema-centros 6s var(--ease) infinite; }
@keyframes sistema-trazo { 0%, 22% { stroke-dashoffset: 1; opacity: 1; } 62%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sistema-centros { 0% { opacity: 0; } 12%, 86% { opacity: 1; } 100% { opacity: 0; } }
.sistema-basura .objeto { animation: sistema-cruza 5s linear infinite; }
.sistema-basura .objeto circle:not(.aro) { fill: #f4f6fa; }
.sistema-basura .estela { stroke: rgba(244,246,250,.55); stroke-width: 1.5; stroke-linecap: round; }
.sistema-basura .aro { fill: none; stroke: #8fb2ff; stroke-width: 1; animation: sistema-aro 5s linear infinite; }
@keyframes sistema-cruza { from { transform: translate(-10px, 70px); } to { transform: translate(170px, 22px); } }
@keyframes sistema-aro { 0%, 30% { opacity: 0; } 40%, 85% { opacity: 1; } 100% { opacity: 0; } }
.sistema-acoplarse .vehiculo rect { fill: #1d3152; stroke: #8fb2ff; stroke-width: 1; }
.sistema-acoplarse .luz { fill: #f4f6fa; }
.sistema-acoplarse .mira path { fill: none; stroke: #f4f6fa; stroke-width: 1.2; stroke-linecap: round; }
.sistema-acoplarse .mira { transform-box: fill-box; transform-origin: center; animation: sistema-mira 4.5s var(--ease) infinite; }
.sistema-acoplarse .vehiculo { transform-box: fill-box; transform-origin: center; animation: sistema-acerca 4.5s var(--ease) infinite; }
@keyframes sistema-mira { 0%, 15% { transform: scale(1.5); opacity: .35; } 55%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: .35; } }
@keyframes sistema-acerca { 0%, 15% { transform: scale(.6); } 55%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .sistema-dibujo *, .sistema-dibujo .objeto { animation: none !important; }
  .sistema-orientarse .trazo { stroke-dashoffset: 0; }
  .sistema-orientarse .centros circle, .sistema-basura .aro { opacity: 1; }
  .sistema-basura .objeto { transform: translate(90px, 40px); }
}

