/* =====================================================================
   VIONEXUS INTERACTIVE · GALAXIA
   La portada es la galaxia del estudio: el logotipo en el centro y un
   planeta por página. Cada página es la superficie de su planeta.
   Colores del logotipo en plano; sin degradados de fondo ni brillos.
   ===================================================================== */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --black: #07080C; --fg: #F3F1EC; --violet: #8A3DFE; --violet-deep: #6A24E6; --cyan: #3FDFFE;
  --sheet: #E5E2DB; --ink: #131318; --ink-2: #4A4843; --rule: rgba(19, 19, 24, .22);
  --paper: #F1EEE6; --bf-blue: #315D8A; --bf-red: #B52D39;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --bf: "Barlow Condensed", "Arial Narrow", sans-serif;
  --bar: 56px; --pad: clamp(20px, 4.4vw, 64px);
  /* Cada página fija el color de la superficie de su planeta */
  --surface: var(--sheet); --on: var(--ink); --on-2: var(--ink-2); --line: var(--rule);
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--black); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.surface :focus-visible { outline-color: var(--focus, var(--violet)); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 50; background: var(--fg); color: var(--black); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 8px; }

/* Rótulo de carta: estrecho, en versalitas */
.label, dt, .bar-nav a, .lang button, .cap-city, .back { font-stretch: 78%; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
h1, h2 { font-stretch: 125%; font-weight: 700; letter-spacing: -.012em; line-height: 1.04; text-wrap: balance; }

/* ---------- Barra ---------- */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); background: var(--black); color: var(--fg); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand .iso { width: 36px; height: 29px; }
.brand .word { width: 124px; height: 14px; }
.bar-nav { display: flex; align-self: stretch; margin-right: 10px; }
.bar-nav a { display: flex; align-items: center; padding: 0 12px; font-size: 14.5px; color: #B9B6AE; text-decoration: none; border-block: 3px solid transparent; white-space: nowrap; }
.bar-nav a:hover { color: var(--fg); }
.bar-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--violet); }
.lang { display: flex; }
.lang button { min-width: 36px; height: 36px; font-size: 13px; color: #B9B6AE; }
.lang button[aria-pressed="true"] { color: var(--black); background: var(--fg); }
html:not(.js) .lang { display: none; }
.menu-btn { display: none; height: 36px; padding: 0 12px; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px #6B6962; }

/* =====================================================================
   PORTADA: LA GALAXIA
   ===================================================================== */
/* La portada ocupa exactamente una pantalla: no tiene scroll */
body.p-home { height: 100vh; height: 100svh; overflow: hidden; }
.view.p-home { flex: none; height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); overflow: hidden; }
.p-home .page-main { min-height: 0; }
.sky { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 27%) minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 0 var(--pad); overflow: hidden; }
.sky-text { position: relative; z-index: 2; }
.sky-text h1 { font-size: clamp(26px, min(3.1vw, 7.4vh), 52px); }
.sky-text p { margin-top: 18px; max-width: 26em; color: #D9D6CF; font-size: clamp(15px, min(1.3vw, 3vh), 20px); }
.sky-text .pick { color: var(--fg); font-weight: 650; }
.orbit-btn { min-height: 40px; padding: 0 14px; margin-left: auto; font-size: 14px; font-weight: 650; color: var(--fg); box-shadow: inset 0 0 0 1.5px #6B6962; }
.orbit-btn:hover { background: var(--fg); color: var(--black); box-shadow: none; }
html:not(.js) .orbit-btn, .orbit-btn[hidden] { display: none; }

/* La galaxia llena el hueco que tenga, sea ancho o alto */
.system-box { position: relative; align-self: stretch; min-height: 0; }
.system { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; --tilt: -14deg; }
.system.is-tall { --tilt: -76deg; }                       /* en vertical la galaxia se pone de pie */
.stars circle { fill: var(--fg); }
.sys { transform: rotate(var(--tilt)); }
.up { transform: rotate(calc(var(--tilt) * -1)); }
.orbit-line { fill: none; stroke: var(--fg); stroke-opacity: .3; stroke-width: 1.5; }
.orbit-line--open { stroke-dasharray: 3 11; stroke-opacity: .45; }

.planet { cursor: pointer; text-decoration: none; }
.planet text { fill: var(--fg); font-size: 27px; font-weight: 700; text-anchor: middle; }
.planet .st { font-size: 18px; font-weight: 650; font-stretch: 78%; letter-spacing: .08em; text-transform: uppercase; fill: #B9B6AE; }
.planet .halo { fill: none; stroke: var(--fg); stroke-width: 2; opacity: 0; }
.planet .hit { fill: transparent; }
/* Al pasar el cursor, el planeta se hincha. El aro queda solo para quien navega con el teclado. */
.planet .body { transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.planet:hover .body, .planet:focus-visible .body { transform: scale(1.2); }
.planet--studio:hover .body, .planet--studio:focus-visible .body { transform: scale(1.12); }
.planet:focus-visible .halo { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .planet .body { transition: none; } }
.planet:focus-visible { outline: none; }
.planet--studio text { font-size: 24px; }
.is-tall .planet text { font-size: 40px; }
.is-tall .planet .st { font-size: 30px; }
.is-tall .planet--studio text { font-size: 34px; }
.shade { fill: #000; opacity: .34; }

/* Los planetas giran siempre por su órbita, también con el cursor encima. Se paran con el botón o al recorrerlos con el teclado. */
@supports (offset-path: path("M0 0L1 1")) {
  .orbiter { transform: none; offset-rotate: 0deg; offset-distance: var(--at); }
  @media (prefers-reduced-motion: no-preference) {
    .orbiter { animation: orbit var(--t) linear infinite; }
    .system:has(.planet:focus-visible) .orbiter, .is-paused .orbiter { animation-play-state: paused; }
  }
}
@keyframes orbit { from { offset-distance: var(--at); } to { offset-distance: calc(var(--at) + 100%); } }

.home-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 8px var(--pad) 10px; font-size: 14px; color: #A6A39C; border-top: 1px solid #26262C; }
.home-foot a { display: inline-flex; align-items: center; min-height: 40px; }

/* =====================================================================
   PÁGINAS: LA SUPERFICIE DE CADA PLANETA
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(26px, 5vw, 56px) var(--pad) clamp(120px, 15vw, 190px); }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 380vw; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--horizon, transparent); transform: translate(-50%, calc(100% - max(40px, 7vw))); }   /* el horizonte curvo del planeta, de lado a lado */
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: #B9B6AE; text-decoration: none; }
.back:hover { color: var(--fg); }
.hero-row { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); margin-top: 10px; }
.hero-planet { flex: none; width: clamp(64px, 9vw, 112px); height: auto; overflow: visible; }
.hero h1 { font-size: clamp(34px, 5.6vw, 76px); }
.hero .label { display: block; margin-bottom: 8px; font-size: 14px; color: #B9B6AE; }

.page-main { flex: 1; display: flex; flex-direction: column; }
.surface { flex: 1; background: var(--surface); color: var(--on); padding: clamp(8px, 2vw, 24px) var(--pad) clamp(48px, 7vw, 90px); }
.wrap { max-width: 1240px; margin: 0 auto; }
.surface h2 { font-size: clamp(26px, 3.2vw, 40px); }
.surface dt { font-size: 13px; color: var(--on-2); }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; max-width: 30em; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; background: var(--ink); color: var(--fg); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--violet-deep); color: #fff; }
.btn.is-off { background: none; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .75; cursor: default; }
.mail { font-weight: 700; font-size: clamp(17px, 2.1vw, 23px); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }

.page-foot { background: var(--black); color: #A6A39C; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 20px var(--pad) 24px; font-size: 14px; }
.page-foot a:first-of-type { margin-left: auto; }

/* Estudio */
.p-studio { --surface: var(--black); --on: var(--fg); --on-2: #A6A39C; --line: #34343C; --horizon: var(--violet); --focus: var(--cyan); }
.lockup { display: grid; grid-template-columns: max-content max-content; justify-content: start; align-items: center; column-gap: clamp(14px, 2vw, 26px); row-gap: 8px; margin-bottom: clamp(26px, 4vw, 44px); }
.lockup .iso { grid-row: span 2; width: clamp(92px, 12vw, 150px); height: auto; aspect-ratio: 264 / 212; }
.lockup .word { width: clamp(180px, 26vw, 330px); height: auto; aspect-ratio: 750 / 82; align-self: end; }
.lockup .sub { width: clamp(135px, 19.5vw, 247px); height: auto; aspect-ratio: 562 / 41; align-self: start; margin-left: 12.4%; color: #B9B6AE; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.proj { margin-top: clamp(38px, 5vw, 64px); }
.proj h2 { font-size: 15px; font-stretch: 78%; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; color: var(--on-2); margin-bottom: 6px; }
.proj a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.proj a:last-child { border-bottom: 1px solid var(--line); }
.proj a svg { width: 56px; height: 56px; overflow: visible; }
.proj a strong { display: block; font-stretch: 112%; font-size: clamp(20px, 2.2vw, 27px); }
.proj a span span { color: var(--on-2); }
.proj a:hover strong { text-decoration: underline; }

/* Battle France */
.p-bf { --surface: var(--paper); }
.p-bf .hero h1 { font-family: var(--bf); font-stretch: 100%; text-transform: uppercase; letter-spacing: 0; font-size: clamp(60px, 10vw, 136px); line-height: .84; }
.bf-grid { display: grid; gap: 34px; }
.bf-emblem { width: min(330px, 78%); height: auto; }
.bf-status { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 22px 0 14px; font-size: 14px; }
.bf-status span:first-child { padding-left: 26px; background: linear-gradient(90deg, var(--bf-blue) 0 9px, var(--bf-red) 9px 18px, transparent 18px) left center / 18px 12px no-repeat; }
.bf-facts { margin-top: 26px; }
.bf-facts div { padding: 10px 0 11px; border-top: 1px solid var(--rule); }
.bf-facts dd { margin-top: 1px; }
.wl { margin-top: 26px; padding: 22px; background: var(--ink); color: var(--fg); }
.wl h3 { font-family: var(--bf); font-weight: 700; text-transform: uppercase; font-size: 34px; line-height: 1; }
.wl p { margin: 8px 0 16px; color: #D2CEC5; font-size: 16px; }
.wl .btn { background: var(--fg); color: var(--ink); }
.wl .btn:hover { background: var(--bf-red); color: #fff; }
.wl .btn.is-off { background: none; color: var(--fg); }
.fiction { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.bf-media { display: grid; gap: 28px; align-content: start; }
.shot img { width: 100%; background: #2A2538; }
.shot figcaption { margin-top: 10px; font-size: 16px; line-height: 1.42; max-width: 38em; }
.shot figcaption strong { display: block; font-stretch: 112%; font-weight: 700; font-size: 18px; }
.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.bf-row .shot--night { grid-column: 1 / -1; }
.shot--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.cities { margin-top: 34px; }
.cities h2 { font-size: 13px; font-stretch: 78%; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; margin-bottom: 10px; }
.cities ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cities img { width: 100%; background: #2A2538; }
.cap-city { display: block; margin-top: 6px; font-size: 13.5px; }
.cities p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* Proyecto 02: suelo reservado */
.p-p02 .surface { background: repeating-linear-gradient(135deg, var(--sheet) 0 13px, #CFC3EE 13px 15px); }
.p02-in { background: var(--sheet); padding: clamp(22px, 3vw, 38px); border: 1.5px dashed var(--ink); max-width: 660px; }
.p02-in .label { font-size: 14px; color: var(--violet-deep); }
.p02-in h2 { margin: 6px 0 12px; }

/* Comunidad */
.p-community { --surface: var(--cyan); --on-2: #173B45; }
.p-community .lead { margin-bottom: 26px; }
.tt { display: block; margin-top: 18px; font-weight: 700; }
.tt[hidden] { display: none; }

/* Prensa */
.p-press { --surface: var(--violet-deep); --on: #fff; --on-2: #EDE6FF; --focus: var(--cyan); }
.press-list { display: grid; gap: 30px; }
.press-list h2 { font-size: 14px; font-stretch: 78%; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; }
.press-list p { margin: 4px 0 8px; max-width: 30em; color: var(--on-2); }
.press-mail { margin-top: clamp(30px, 4vw, 48px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .3); }
.press-mail .label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--on-2); }
.legal-dl a { overflow-wrap: anywhere; }

/* Aviso legal */
.legal-dl { max-width: 720px; }
.legal-dl div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); }
.legal-dl div:last-child { border-bottom: 1px solid var(--rule); }
.legal-dl dd { overflow-wrap: anywhere; }
.pending { color: #A1202C; font-style: italic; }
.legal-txt { max-width: 720px; margin-top: 22px; }
.legal-txt p { margin-top: 12px; color: var(--ink-2); }

/* ---------- Pantallas anchas ---------- */
@media (min-width: 981px) {
  .bf-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 34px clamp(30px, 4vw, 56px); }
  .bf-row { grid-template-columns: 56fr 30fr 30fr; }
  .bf-row .shot--night { grid-column: auto; }
  .cities { grid-column: 1 / -1; margin-top: 0; }
  .cities ul { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .press-list { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---------- Pantallas estrechas ---------- */
@media (max-width: 980px) {
  :root { --bar: 52px; }
  .menu-btn { display: block; }
  html:not(.js) .menu-btn { display: none; }
  .bar { gap: 10px; }
  .bar-nav { display: none; position: absolute; left: 0; right: 0; top: var(--bar); margin: 0; flex-direction: column; background: var(--black); border-top: 1px solid #26262C; padding: 6px var(--pad) 14px; }
  .bar-nav.is-open, html:not(.js) .bar-nav { display: flex; }
  html:not(.js) .bar { height: auto; flex-wrap: wrap; }
  html:not(.js) .bar-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 0 0 8px; border: 0; width: 100%; }
  .bar-nav a { min-height: 48px; padding: 0; font-size: 16px; border: 0; border-bottom: 1px solid #26262C; }
  .bar-nav a[aria-current="page"] { border-bottom-color: var(--violet); }
  html:not(.js) .bar-nav a { padding-right: 16px; border: 0; }
  .sky { grid-template-columns: minmax(200px, 36%) minmax(0, 1fr); }
  .sky-text p { margin-top: 10px; }
}
@media (max-width: 980px) and (orientation: portrait) {
  .sky { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; padding-top: 16px; }
  .sky-text h1 { font-size: clamp(22px, 6.6vw, 44px); }
  .sky-text p { font-size: clamp(15px, 4.2vw, 19px); }
  .system-box { margin: 0 calc(var(--pad) * -1); }
  .home-foot { justify-content: space-between; gap: 0 16px; padding-block: 5px 7px; }
  .home-foot > span { display: none; }                    /* el © está en el aviso legal; aquí el sitio es para la galaxia */
  .orbit-btn { margin-left: 0; }
}
@media (max-height: 480px) { .sky-text p:not(.pick) { display: none; } .sky-text .pick { margin-top: 10px; } }
@media (max-width: 980px) and (orientation: portrait) and (max-height: 640px) { .sky-text p:not(.pick) { display: none; } }
@media (max-width: 360px) { .brand .word { display: none; } }
@media (forced-colors: active) { .orbit-line { stroke: CanvasText; } .hero::after { border: 1px solid CanvasText; } }
