/* ============================================
   NIPHOS — Hero
   Monocromo + acento cian glacial
   ============================================ */

:root {
  --bg:        #060708;
  --bg-soft:   #0b0d10;
  --fg:        #f4f6f8;
  --fg-dim:    #9aa3ab;
  --fg-faint:  #5b626a;
  --accent:    #7ac4c6;
  --accent-dk: #4f9799;
  --accent-game: #b06bff;
  --line:      rgba(255, 255, 255, 0.09);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --maxw:      1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.preloader--hide {
  opacity: 0;
  visibility: hidden;
}

.preloader__core {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* glow circular detrás del logo (en vez de un halo rectangular) */
.preloader__core::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 196, 198, 0.18), transparent 70%);
  opacity: 0;
  animation: corePulse 1.9s var(--ease) forwards;
  pointer-events: none;
}
@keyframes corePulse {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.preloader__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);   /* arranca arriba */
}
.preloader__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.5;
}
.preloader__progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 339.29;       /* 2·π·54 */
  stroke-dashoffset: 339.29;
  filter: drop-shadow(0 0 6px rgba(122, 196, 198, 0.6));
  animation: ringFill 1.9s var(--ease) forwards;
}
@keyframes ringFill {
  from { stroke-dashoffset: 339.29; }
  to   { stroke-dashoffset: 0; }
}

.preloader__logo {
  width: 170px;      /* logo completo, holgado dentro del anillo grande */
  height: auto;
  opacity: 0;
  animation: logoPulse 1.9s var(--ease) forwards;
}
@keyframes logoPulse {
  0%   { opacity: 0; transform: scale(0.92); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Capas de fondo ---------- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Aurora glacial ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora__band {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.4;
  will-change: transform;
}
.aurora__band--1 {
  top: -18%;
  left: -10%;
  width: 70vw;
  height: 55vh;
  background: radial-gradient(ellipse at center,
    rgba(122, 196, 198, 0.30), transparent 65%);
  animation: aurora1 26s ease-in-out infinite alternate;
}
.aurora__band--2 {
  top: -6%;
  right: -12%;
  width: 65vw;
  height: 50vh;
  background: radial-gradient(ellipse at center,
    rgba(96, 142, 185, 0.24), transparent 65%);
  animation: aurora2 32s ease-in-out infinite alternate;
}
.aurora__band--3 {
  top: 8%;
  left: 22%;
  width: 60vw;
  height: 45vh;
  background: radial-gradient(ellipse at center,
    rgba(124, 200, 192, 0.18), transparent 65%);
  animation: aurora3 38s ease-in-out infinite alternate;
}
@keyframes aurora1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(14vw, 8vh) scale(1.25) rotate(12deg); }
}
@keyframes aurora2 {
  0%   { transform: translate(0, 0) scale(1.1) rotate(0deg); }
  100% { transform: translate(-12vw, 10vh) scale(0.95) rotate(-14deg); }
}
@keyframes aurora3 {
  0%   { transform: translate(0, 0) scale(0.9); opacity: 0.18; }
  100% { transform: translate(8vw, -6vh) scale(1.3); opacity: 0.32; }
}

.glow {
  position: fixed;
  top: 42%;
  left: 50%;
  width: 90vmax;
  height: 90vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(122, 196, 198, 0.10) 0%,
    rgba(122, 196, 198, 0.04) 26%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Pestañas orbitando el logo ---------- */
.orbit {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  --ox: clamp(200px, 36vw, 460px);   /* separación horizontal del centro */
  --oy: clamp(120px, 22vh, 230px);   /* separación vertical del centro */
}

.orbit__item {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  pointer-events: auto;
  text-decoration: none;
  color: var(--fg);
  font-size: 17px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transition: color 0.3s var(--ease);
}
/* posición en las cuatro esquinas alrededor del logo */
.orbit__item--tl { transform: translate(calc(-50% - var(--ox)), calc(-50% - var(--oy))); }
.orbit__item--tr { transform: translate(calc(-50% + var(--ox)), calc(-50% - var(--oy))); }
.orbit__item--bl { transform: translate(calc(-50% - var(--ox)), calc(-50% + var(--oy))); }
.orbit__item--br { transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy))); }

.orbit__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 9px rgba(122, 196, 198, 0.65);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.orbit__item:hover { color: var(--accent); }
.orbit__item:hover .orbit__dot {
  transform: scale(1.45);
  box-shadow: 0 0 16px rgba(122, 196, 198, 1);
}

/* Contacto destacado sutil */
.orbit__item--br .orbit__txt {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.orbit__item--br:hover .orbit__txt { border-color: var(--accent); }

/* selector de idioma */
.lang {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  opacity: 0;
}
.lang__btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  color: var(--fg-faint);
  padding: 2px;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.lang__btn:hover { color: var(--fg); }
.lang__btn.is-active {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(122, 196, 198, 0.55);
}
.lang__sep {
  color: var(--fg-faint);
  opacity: 0.5;
}
body.ready .lang { animation: orbitIn 0.8s var(--ease) 0.4s forwards; }

/* botón hamburguesa (solo móvil) */
.burger {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---- entrada de las pestañas (tras el preloader; solo opacidad para no romper la posición) ---- */
.orbit__item { opacity: 0; }
body.ready .orbit__item { animation: orbitIn 0.8s var(--ease) forwards; }
body.ready .orbit__item--tl { animation-delay: 0.55s; }
body.ready .orbit__item--tr { animation-delay: 0.67s; }
body.ready .orbit__item--bl { animation-delay: 0.79s; }
body.ready .orbit__item--br { animation-delay: 0.91s; }
@keyframes orbitIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 40px) 80px;
}

.hero__inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* ---------- Efecto "dos caminos" ---------- */
.hero__split {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  pointer-events: none;
}
.hero__half {
  flex: 1;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.hero__half::before {
  content: '';
  position: absolute;
  inset: 0;
}
.hero__half--soft::before {
  background: radial-gradient(ellipse 60% 75% at 8% 50%,
    rgba(122, 196, 198, 0.16), transparent 70%);
}
.hero__half--game::before {
  background: radial-gradient(ellipse 60% 75% at 92% 50%,
    rgba(176, 107, 255, 0.16), transparent 70%);
}
.hero__half-label {
  position: absolute;
  top: 50%;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 6rem);
  letter-spacing: 0.12em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.10);
  transform: translateY(-50%);
  transition: -webkit-text-stroke-color 0.7s var(--ease), opacity 0.7s var(--ease);
  white-space: nowrap;
}
.hero__half--soft .hero__half-label { left: 4vw; }
.hero__half--game .hero__half-label { right: 4vw; }

/* estados activados por JS según el lado del cursor */
.hero.path-soft .hero__half--soft { opacity: 1; }
.hero.path-soft .hero__half--soft .hero__half-label { -webkit-text-stroke-color: rgba(122, 196, 198, 0.30); }
.hero.path-game .hero__half--game { opacity: 1; }
.hero.path-game .hero__half--game .hero__half-label { -webkit-text-stroke-color: rgba(176, 107, 255, 0.30); }

/* el CTA del lado activo recibe un leve realce */
.hero.path-game .btn--ghost {
  border-color: rgba(176, 107, 255, 0.5);
  background: rgba(176, 107, 255, 0.06);
}

@media (max-width: 720px) {
  .hero__split { display: none; }
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--accent);
  font-weight: 500;
  padding-left: 0.5em;
  margin-bottom: 28px;
}

.hero__logo {
  margin: 0;
  position: relative;
  z-index: 0;
}
/* halo de luz definido detrás del logo */
.hero__logo::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  width: 115%;
  height: 95%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(122, 196, 198, 0.22) 0%,
    rgba(122, 196, 198, 0.10) 30%,
    rgba(96, 142, 185, 0.05) 50%,
    transparent 70%
  );
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
  animation: haloBreathe 6.5s ease-in-out infinite;
}
@keyframes haloBreathe {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}

.hero__logo-img {
  position: relative;
  width: clamp(320px, 50vw, 560px);
  height: auto;
  filter: drop-shadow(0 0 36px rgba(122, 196, 198, 0.18));
}

.hero__title {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 46px;
}
.hero__title .accent {
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), #cffafa 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  max-width: 600px;
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
}
.hero__subtitle strong { color: var(--fg); font-weight: 500; }

/* ---------- Paneles que se expanden ---------- */
.hero__panels {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 640px;
  height: 168px;
  margin-bottom: 64px;
}

.panel {
  --c: var(--accent);
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  transition: flex-grow 0.55s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  will-change: flex-grow;
}
.panel--soft { --c: var(--accent); }
.panel--game { --c: var(--accent-game); }

/* resplandor interno por panel */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 120%,
    color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.panel__icon {
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--c);
  opacity: 0.85;
  transition: transform 0.45s var(--ease);
}

.panel__eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  transition: color 0.45s var(--ease);
}

/* contenido oculto que se revela al expandir */
.panel__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.45s var(--ease), margin-top 0.55s var(--ease);
  margin-top: 0;
}
.panel__body > * { overflow: hidden; min-height: 0; }
.panel__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
}
.panel__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-dim);
  font-weight: 300;
  margin-top: 4px;
}
.panel__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c);
}
.panel__link svg { transition: transform 0.3s var(--ease); }

/* ---- estado expandido (hover, foco o activado por JS) ---- */
.panel:hover,
.panel:focus-visible,
.panel.is-active {
  flex-grow: 2.4;
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 6%, transparent);
}
.panel:hover::after,
.panel:focus-visible::after,
.panel.is-active::after { opacity: 1; }

.panel:hover .panel__eyebrow,
.panel.is-active .panel__eyebrow { color: var(--c); }

.panel:hover .panel__icon,
.panel.is-active .panel__icon { transform: scale(1.08); }

.panel:hover .panel__body,
.panel:focus-visible .panel__body,
.panel.is-active .panel__body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 12px;
}

.panel:hover .panel__link svg,
.panel.is-active .panel__link svg { transform: translateX(4px); }

/* ---------- Stats ---------- */
.hero__stats {
  display: flex;
  gap: clamp(28px, 6vw, 72px);
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero__stats .num {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--fg);
}
.hero__stats .lbl {
  font-size: 12.5px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  max-width: 150px;
}

/* ---------- Indicador de scroll ---------- */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--fg);
  animation: scrollDrop 1.9s var(--ease) infinite;
}
@keyframes scrollDrop {
  0%   { top: -50%; }
  100% { top: 100%; }
}
.hero__scroll-text {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
}

/* ---------- Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .glow, .hero__scroll-line::after, .aurora__band, .hero__logo::before { animation: none; }
  .orbit__item, .lang { opacity: 1; animation: none; }
}

/* ---------- Transición al seleccionar pestaña ---------- */
/* primer plano del hero se desvanece para dejar ver las partículas converger */
body.transitioning .hero__inner,
body.transitioning .orbit,
body.transitioning .lang,
body.transitioning .burger {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
/* el hero se aleja hacia el fondo */
body.transitioning .hero__inner { transform: scale(0.82); }
body.transitioning .orbit { transform: scale(0.9); }

/* hero oculto cuando hay una vista abierta */
body.view-open .hero { opacity: 0; pointer-events: none; }

/* entrada del logo y la nav al volver de una sección */
body.returning .hero__inner { animation: heroReturn 0.95s var(--ease) both; }
body.returning .lang { animation: orbitIn 0.8s var(--ease) 0.25s both; }
@media (min-width: 821px) {
  body.returning .orbit { animation: heroReturn 1s var(--ease) 0.12s both; }
}
@keyframes heroReturn {
  from { opacity: 0; transform: scale(0.86); filter: blur(9px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* destello en el punto de convergencia (fogonazo, no relleno) */
.flash {
  position: fixed;
  left: var(--tx, 50%);
  top: var(--ty, 50%);
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(235, 255, 255, 0.95) 0%,
    rgba(160, 220, 222, 0.55) 22%,
    rgba(122, 196, 198, 0.22) 42%,
    transparent 66%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
  z-index: 150;
  mix-blend-mode: screen;
}
.flash.burst { animation: flashBurst 0.55s var(--ease) forwards; }
@keyframes flashBurst {
  0%   { opacity: 0; transform: scale(0.2); }
  30%  { opacity: 1; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* contenedor de secciones */
.views {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  background: var(--bg);                 /* su propio fondo, sin color de relleno */
  transition: opacity 0.4s var(--ease);
}
.views.active { opacity: 1; pointer-events: auto; }

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px clamp(24px, 6vw, 60px);
}
.view.active { display: flex; }
.view.active .view__eyebrow,
.view.active .view__title,
.view.active .view__text,
.view.active .view__back {
  animation: viewUp 0.8s var(--ease) both;
}
.view.active .view__eyebrow { animation-delay: 0.12s; }
.view.active .view__title   { animation-delay: 0.22s; }
.view.active .view__text    { animation-delay: 0.34s; }
.view.active .view__back    { animation-delay: 0.46s; }
@keyframes viewUp {
  from { opacity: 0; transform: translateY(30px) scale(1.05); filter: blur(7px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.view__eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--accent);
  font-weight: 500;
  padding-left: 0.5em;
  margin-bottom: 20px;
}
.view__title {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.view__text {
  max-width: 540px;
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
}
/* botón Volver: círculo que se expande al pasar el cursor */
.view__back {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--fg);
  cursor: pointer;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease),
              box-shadow 0.35s var(--ease), color 0.35s var(--ease), transform 0.2s var(--ease);
}
.view__back-ic {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease);
}
.view__back-txt {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: max-width 0.4s var(--ease), opacity 0.35s var(--ease), padding 0.4s var(--ease);
}
.view__back:hover,
.view__back:focus-visible {
  color: var(--vc, var(--accent));
  border-color: color-mix(in srgb, var(--vc, var(--accent)) 60%, transparent);
  background: color-mix(in srgb, var(--vc, var(--accent)) 12%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--vc, var(--accent)) 28%, transparent);
}
.view__back:hover .view__back-ic,
.view__back:focus-visible .view__back-ic { transform: translateX(-3px); }
.view__back:hover .view__back-txt,
.view__back:focus-visible .view__back-txt {
  max-width: 160px;
  opacity: 1;
  padding-right: 24px;
}
.view__back:active { transform: scale(0.95); }

/* ============================================
   Showcase de sección (estilo Foxico)
   Software / Videojuegos
   ============================================ */
.view--showcase {
  --vc: var(--accent);
  display: none;            /* lo activa .view.active */
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: left;
  padding: clamp(28px, 6vh, 64px) clamp(24px, 6vw, 80px);
  overflow: hidden;
}
.view--showcase.active { display: flex; }
.show--soft { --vc: var(--accent); }
.show--game { --vc: var(--accent-game); }

/* fondo a pantalla completa con dos capas para hacer crossfade de color */
.show__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.show__bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease);
  animation: showZoom 16s ease-in-out infinite alternate;
}
.show__bg-layer.is-on { opacity: 1; }
@keyframes showZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

/* velo para legibilidad del texto */
.show__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(4, 6, 8, 0.92) 0%, rgba(4, 6, 8, 0.45) 38%, transparent 70%),
    linear-gradient(to right, rgba(4, 6, 8, 0.7) 0%, transparent 55%);
}

/* botón volver, arriba a la izquierda */
.show__back {
  position: absolute;
  top: clamp(20px, 4vh, 36px);
  left: clamp(24px, 6vw, 80px);
  z-index: 7;
}

/* ===== Cortina "Próximamente" (Videojuegos) ===== */
.coming {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 40px;
  background: radial-gradient(ellipse at center, rgba(12, 7, 22, 0.32), rgba(6, 5, 12, 0.62));
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
}
.coming__eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--vc);
  text-shadow: 0 0 18px color-mix(in srgb, var(--vc) 60%, transparent);
}
.coming__title {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 6rem);
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff, color-mix(in srgb, var(--vc) 75%, #ffffff) 52%, #ffffff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: comingShimmer 6s ease-in-out infinite;
}
@keyframes comingShimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 120% center; }
}
.coming__line {
  width: 70px;
  height: 2px;
  border-radius: 2px;
  background: var(--vc);
  box-shadow: 0 0 14px var(--vc);
  animation: comingPulse 2.6s ease-in-out infinite;
}
@keyframes comingPulse {
  0%, 100% { opacity: 0.5; width: 56px; }
  50%      { opacity: 1;   width: 92px; }
}
.coming__text {
  max-width: 430px;
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  font-weight: 300;
}

/* bloque de texto, abajo a la izquierda */
.show__content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}
.show__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.34em;
  font-weight: 600;
  color: var(--vc);
  margin-bottom: 16px;
}
.show__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.55);
}
.show__text {
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 30px;
}
.show__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--vc);
  color: #06141a;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 100px;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--vc) 35%, transparent);
  transition: transform 0.3s var(--ease), box-shadow 0.5s var(--ease),
              background 0.5s var(--ease), color 0.5s var(--ease), filter 0.3s var(--ease);
}
.show--game .show__cta { color: #f4f6f8; }
.show__cta svg { transition: transform 0.3s var(--ease); }
.show__cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 20px 46px color-mix(in srgb, var(--vc) 45%, transparent);
}
.show__cta:hover svg { transform: translateX(4px); }
.show__cta.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.3);
  box-shadow: none;
}

/* baraja de tarjetas, centrada verticalmente a la derecha */
.show__cards {
  position: absolute;
  top: 48%;
  right: clamp(100px, 17vw, 360px);
  transform: translateY(-50%);
  z-index: 3;
  width: clamp(330px, 26vw, 560px);
  aspect-ratio: 4 / 5;
}
.scard {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  transform:
    translate(calc(var(--rank, 0) * 54px), calc(var(--rank, 0) * 38px))
    scale(calc(1 - var(--rank, 0) * 0.06));
  opacity: calc(1 - var(--rank, 0) * 0.22);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* la tarjeta seleccionada queda al frente, resaltada */
.scard.is-front {
  border-color: color-mix(in srgb, var(--vc) 55%, transparent);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.62),
              0 0 0 1px color-mix(in srgb, var(--vc) 40%, transparent);
}
/* las de atrás se asoman un poco al pasar el cursor */
.scard:not(.is-front):hover {
  transform:
    translate(calc(var(--rank, 0) * 54px), calc(var(--rank, 0) * 38px - 14px))
    scale(calc(1 - var(--rank, 0) * 0.06));
}
.scard__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.scard:hover .scard__media { transform: scale(1.08); }
.scard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 8, 0.85), transparent 55%);
  z-index: 1;
}

/* placeholders de imagen (reemplazar por fotos reales cuando estén) */
.scard__media--1  { background-image: url("assets/Software/Nexarq/NexarqCard.png"); }
.scard__media--2  { background-image: linear-gradient(160deg, #3a7d8a, #0f2330); }
.scard__media--3  { background-image: linear-gradient(160deg, #1c4a4d, #081b1f); }
.scard__media--g1 { background-image: linear-gradient(160deg, #6b3fb0, #1a0d2a); }
.scard__media--g2 { background-image: linear-gradient(160deg, #8a4dc0, #220f33); }
.scard__media--g3 { background-image: linear-gradient(160deg, #4a2c7a, #14081f); }

.scard__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: color-mix(in srgb, var(--vc) 70%, rgba(0,0,0,0.3));
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.scard__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.4s var(--ease);
}
/* solo la tarjeta del frente muestra su texto; las de atrás quedan limpias */
.scard:not(.is-front) .scard__meta { opacity: 0; }
.scard__name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--fg);
}
.scard__sub {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}

/* animaciones de entrada del showcase */
.view--showcase.active .show__eyebrow,
.view--showcase.active .show__title,
.view--showcase.active .show__text,
.view--showcase.active .show__cta { animation: viewUp 0.8s var(--ease) both; }
.view--showcase.active .show__eyebrow { animation-delay: 0.14s; }
.view--showcase.active .show__title   { animation-delay: 0.24s; }
.view--showcase.active .show__text    { animation-delay: 0.36s; }
.view--showcase.active .show__cta     { animation-delay: 0.48s; }
.view--showcase.active .show__cards { animation: cardsIn 0.8s var(--ease) 0.45s both; }
@keyframes cardsIn { from { opacity: 0; } to { opacity: 1; } }

/* navegación de la baraja: indicadores + anterior / siguiente */
.show__nav {
  position: absolute;
  z-index: 4;
  bottom: clamp(26px, 6vh, 56px);
  left: auto;
  /* centrada bajo la baraja: borde-derecho-tarjeta + media tarjeta */
  right: calc(clamp(100px, 17vw, 360px) + clamp(330px, 26vw, 560px) / 2);
  width: clamp(380px, 40vw, 540px);
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* indicadores tipo guion */
.show__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.show__dot {
  width: 26px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s var(--ease), width 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.show__dot:hover { background: rgba(255, 255, 255, 0.4); }
.show__dot.is-active {
  width: 42px;
  background: var(--vc);
  box-shadow: 0 0 12px color-mix(in srgb, var(--vc) 80%, transparent);
}

/* fila anterior / siguiente, en los extremos */
.show__nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.show__navbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  transition: color 0.3s var(--ease);
}
.show__navbtn:hover { color: var(--vc); }
.show__arrow-ic {
  width: 38px;
  height: auto;
  transition: transform 0.3s var(--ease);
}
.show__navbtn--prev .show__arrow-ic { transform: scaleX(-1); }
.show__navbtn--prev:hover .show__arrow-ic { transform: scaleX(-1) translateX(4px); }
.show__navbtn--next:hover .show__arrow-ic { transform: translateX(4px); }

/* línea con glow bajo cada botón */
.show__navbtn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, transparent, var(--vc), transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--vc) 80%, transparent);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.show__navbtn:hover::after { opacity: 1; }

.view--showcase.active .show__nav { animation: cardsIn 0.8s var(--ease) 0.6s both; }

/* ===== Sub-nivel: lista + preview grande (proyectos dentro de un producto) ===== */
.show__detail { display: none; }
.is-sub .show__content,
.is-sub .show__cards,
.is-sub .show__nav { display: none !important; }

.is-sub .show__detail {
  display: grid;
  position: absolute;
  inset: 0;
  z-index: 3;
  grid-template-columns: minmax(190px, 300px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(92px, 13vh, 140px) clamp(28px, 6vw, 80px) clamp(40px, 7vh, 80px);
  animation: detailIn 0.6s var(--ease) both;
}
@keyframes detailIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.detail__left { display: flex; flex-direction: column; gap: 22px; }
.detail__eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--vc);
  transition: color 0.5s var(--ease);
}
.detail__eyebrow { position: relative; }
/* splash/glow detrás del logo */
.detail__eyebrow:has(img)::before {
  content: '';
  position: absolute;
  left: 48%;
  top: 50%;
  width: 150%;
  height: 230%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--vc) 50%, transparent) 0%,
    color-mix(in srgb, var(--vc) 22%, transparent) 38%,
    transparent 70%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
  transition: background 0.5s var(--ease);
  animation: splashPulse 3.6s ease-in-out infinite;
}
@keyframes splashPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.1); }
}
.detail__eyebrow img {
  position: relative;
  z-index: 1;
  display: block;
  height: clamp(110px, 15vw, 200px);
  width: auto;
  max-width: none;
  margin: clamp(-16px, -1.2vw, -8px) 0 clamp(-12px, -1vw, -6px) clamp(-34px, -2vw, -12px);
  filter: drop-shadow(0 6px 22px color-mix(in srgb, var(--vc) 45%, transparent));
}
.detail__list { display: flex; flex-direction: column; }
.detail__item {
  display: grid;
  grid-template-columns: 3px auto;
  column-gap: 14px;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
  cursor: pointer;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.detail__item-bar {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 3px;
  height: 0;
  align-self: center;
  border-radius: 3px;
  background: var(--vc);
  box-shadow: 0 0 10px var(--vc);
  transition: height 0.35s var(--ease), background 0.5s var(--ease);
}
.detail__item-name {
  grid-column: 2;
  grid-row: 1;
  font-family: 'Sora', sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.15;
}
.detail__item-sub {
  grid-column: 2;
  grid-row: 2;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--fg-faint);
}
.detail__item:hover { color: var(--fg); padding-left: 8px; }
.detail__item.is-active { color: var(--fg); }
.detail__item.is-active .detail__item-bar { height: 36px; }

.detail__heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: -8px;
}
.detail__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--fg);
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
              background 0.3s var(--ease), transform 0.3s var(--ease);
}
.detail__more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.detail__more:hover {
  color: var(--vc);
  border-color: color-mix(in srgb, var(--vc) 60%, transparent);
  background: color-mix(in srgb, var(--vc) 10%, transparent);
  transform: translateY(-2px);
}
.detail__more:hover svg { transform: translateX(4px); }
.detail__cta.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
  box-shadow: none;
}

.detail__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--vc) 30%, transparent);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transition: border-color 0.5s var(--ease);
}
.detail__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}
.detail__preview:hover .detail__media { transform: scale(1.12); }
.detail__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 8, 0.92), rgba(4, 6, 8, 0.1) 55%);
  z-index: 1;
}
.detail__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: color-mix(in srgb, var(--vc) 70%, rgba(0, 0, 0, 0.3));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: background 0.5s var(--ease);
}
.detail__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(20px, 3vw, 36px);
}
.detail__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1;
}
.detail__title img {
  display: block;
  height: clamp(64px, 8vw, 110px);
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
}
.detail__text {
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  font-weight: 300;
  max-width: 560px;
}
.detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  background: var(--vc);
  color: #06141a;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--vc) 35%, transparent);
  transition: transform 0.3s var(--ease), background 0.5s var(--ease),
              box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.detail__cta svg { transition: transform 0.3s var(--ease); }
.detail__cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.detail__cta:hover svg { transform: translateX(4px); }

@media (max-width: 820px) {
  .is-sub .show__detail {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 22px;
    padding: 84px 18px 40px;
    overflow-y: auto;
  }

  /* el preview deja de ser un marco fijo: imagen + texto debajo */
  .detail__preview {
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .detail__preview::after { display: none; }
  .detail__media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--vc) 30%, transparent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transform: none;
  }
  .detail__overlay {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 16px 2px 0;
    gap: 10px;
  }
  .detail__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .detail__title img { height: clamp(56px, 16vw, 84px); }
  .detail__text { font-size: 0.94rem; line-height: 1.6; }

  .detail__item-name { font-size: 1.05rem; }
  .detail__eyebrow { text-align: center; }
  .detail__eyebrow img { height: clamp(80px, 20vw, 120px); margin: 0 auto; }
  .detail__eyebrow:has(img)::before { left: 50%; }
}

@media (max-width: 820px) {
  /* apilado vertical y desplazable en móvil */
  .view--showcase {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 26px;
    padding: 86px 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .show__cards {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    order: 1;
    margin: 0 auto;
    width: clamp(200px, 58vw, 290px);
  }
  /* baraja más recogida para que no se salga de la pantalla */
  .scard {
    transform:
      translate(calc(var(--rank, 0) * 30px), calc(var(--rank, 0) * 22px))
      scale(calc(1 - var(--rank, 0) * 0.06));
  }

  .show__content {
    order: 2;
    position: relative;
    max-width: 100%;
    text-align: center;
  }
  .show__title { font-size: clamp(2.4rem, 13vw, 4rem); }
  .show__cta { align-self: center; }

  .show__nav {
    position: relative;
    order: 3;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    gap: 16px;
  }
  .show__navlabel { font-size: 11px; letter-spacing: 0.2em; }
  .show__arrow-ic { width: 30px; }
}

/* ===== Estudio: perfil del equipo ===== */
.view--studio { --vc: var(--accent); }
.studio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}
.studio .view__text { margin-bottom: 44px; }

.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.member {
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
  padding: 18px 26px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.member:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--vc) 55%, transparent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.member__photo {
  flex: 0 0 auto;
  width: clamp(96px, 12vw, 130px);
  height: clamp(96px, 12vw, 130px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--vc) 40%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--vc) 30%, transparent);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__body { display: flex; flex-direction: column; gap: 5px; }
.member__name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.1;
}
.member__role {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--vc);
}
.member__meta {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-dim);
  font-weight: 300;
  max-width: 320px;
}
.view.active .member { animation: viewUp 0.8s var(--ease) 0.4s both; }

@media (max-width: 560px) {
  .member { flex-direction: column; text-align: center; align-items: center; padding: 22px; }
  .member__body { align-items: center; }
  .member__meta { max-width: 280px; }
}

/* ===== Contacto: tarjetas de medios + formulario ===== */
.view--contact { --vc: var(--accent); }
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 920px;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(20px, 4vw, 46px);
  width: 100%;
  margin-top: 38px;
  text-align: left;
  align-items: start;
}
.contact__media { display: flex; flex-direction: column; gap: 14px; }
.cmedia {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.cmedia:hover {
  border-color: color-mix(in srgb, var(--vc) 55%, transparent);
  background: color-mix(in srgb, var(--vc) 10%, transparent);
  transform: translateX(4px);
}
.cmedia__ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--vc);
  background: color-mix(in srgb, var(--vc) 14%, transparent);
}
.cmedia--soon { opacity: 0.5; cursor: default; }
.cmedia--soon:hover {
  transform: none;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.cmedia__body { display: flex; flex-direction: column; gap: 2px; }
.cmedia__label { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.cmedia__sub { font-size: 12.5px; color: var(--fg-dim); }

.contact__form { display: flex; flex-direction: column; gap: 14px; }
.cfield { display: flex; flex-direction: column; gap: 6px; }
.cfield__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  font-weight: 500;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--fg-faint); }
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--vc) 60%, transparent);
  background: color-mix(in srgb, var(--vc) 7%, transparent);
}
.cform__btn {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--vc);
  color: #06141a;
  border: none;
  border-radius: 100px;
  padding: 13px 30px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--vc) 35%, transparent);
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.cform__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.cform__status { font-size: 13px; margin-top: 2px; min-height: 1.2em; }
.cform__status.is-ok { color: var(--vc); }
.cform__status.is-error { color: #e8888a; }

.view.active .contact__grid { animation: viewUp 0.8s var(--ease) 0.4s both; }

@media (max-width: 720px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .burger { display: flex; }

  /* las pestañas dejan de orbitar y pasan a menú a pantalla completa */
  .orbit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(6, 7, 8, 0.92);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 55;
  }
  .orbit.open { opacity: 1; pointer-events: auto; }
  .orbit__item {
    position: static;
    transform: none !important;
    opacity: 1;
    animation: none;
    font-size: 24px;
  }

  /* hamburguesa -> X al abrir */
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
