/* Arcore Capital — hoja de estilos del sitio público.
   Identidad visual tomada de la landing de marca (obsidiana + gradiente solar,
   Space Grotesk para títulos, Space Mono para etiquetas). Las webfonts se
   autoalojan con el subconjunto `latin` (U+0000-00FF ya cubre acentos y ñ del
   español), font-display:swap y preload de la crítica: el LCP sigue siendo
   texto y no hay conexión a fonts.gstatic.com que bloquee el render.
   Sin JavaScript: los efectos son CSS puro. */

/* ---------------- WEBFONTS (subconjunto latin, autoalojadas) ---------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/space-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------- TOKENS ---------------- */
:root {
  /* neutros */
  --obsidian: #0a0b0d;
  --carbon: #121419;
  --graphite: #1b1e25;
  --slate: #262a33;
  --steel: #3a4050;
  --mist: #9aa0ad;
  --fog: #c9ccd4;
  --white: #ffffff;
  /* acentos */
  --gold: #f4b23e;
  --gold-deep: #c8881e;
  --gold-soft: #fbd98c;
  --coral: #ff6b57;
  --cyan: #22d3ee;
  /* gradientes firma */
  --solar: linear-gradient(120deg, #f4b23e 0%, #ff6b57 100%);
  --flux: linear-gradient(120deg, #22d3ee 0%, #6366f1 100%);
  /* radios */
  --r-card: 16px;
  --r-ctl: 12px;
  --r-pill: 100px;
  /* tipografía */
  --ff-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-mono: 'Space Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  /* layout */
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.2s;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--fog);
  font: 400 17px/1.65 var(--ff-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 18px; max-width: 72ch; }
strong, b { color: var(--white); font-weight: 600; }
.muted { color: var(--mist); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #1a0f02;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 0 0 var(--r-ctl) 0;
  z-index: 60;
}
.skip:focus { left: 0; top: 0; }

/* ---------------- BOTONES ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  min-height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn-primary {
  background: var(--solar);
  color: #1a0f02;
  box-shadow: 0 8px 24px -10px rgba(244, 178, 62, 0.6);
}
.btn-primary:hover, .btn-primary:focus-visible {
  color: #1a0f02;
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255, 107, 87, 0.6);
}
.btn-ghost { border-color: var(--steel); color: var(--white); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

/* ---------------- CABECERA ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 11, 13, 0.84);
  border-bottom-color: var(--slate);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.logo { height: 26px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-right: auto; }
.nav a {
  position: relative;
  font-family: var(--ff-display);
  font-size: 14.5px;
  color: var(--mist);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a[aria-current='page'] { color: var(--white); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--solar);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--slate);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 440px at 82% 4%, rgba(244, 178, 62, 0.18), transparent 62%),
    radial-gradient(620px 460px at 4% 96%, rgba(255, 107, 87, 0.08), transparent 64%);
}
/* la portada usa el glow triple de la landing (oro + coral + cian) */
.hhero::before {
  background:
    radial-gradient(640px 440px at 80% 6%, rgba(244, 178, 62, 0.2), transparent 62%),
    radial-gradient(680px 460px at 4% 96%, rgba(255, 107, 87, 0.13), transparent 62%),
    radial-gradient(560px 520px at 60% 110%, rgba(34, 211, 238, 0.09), transparent 60%);
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 76px 0 60px;
}
h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 19ch;
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--mist);
  max-width: 56ch;
  margin: 0;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* señales de confianza bajo el hero */
.trustrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 40px;
  border-top: 1px solid var(--slate);
  padding-top: 22px;
}
.trustrow span {
  position: relative;
  padding: 0 22px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--fog);
  display: flex;
  align-items: center;
  gap: 9px;
}
.trustrow span:first-child { padding-left: 0; }
.trustrow span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--steel);
}
.trustrow span:first-child::before { display: none; }
.trustrow span::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  order: -1;
  flex: none;
}

/* ---------------- MIGAS ---------------- */
.crumbs { padding-top: 22px; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--mist);
}
.crumbs li + li::before { content: '/'; color: var(--steel); margin-right: 8px; }
.crumbs a { color: var(--mist); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current='page'] { color: var(--fog); }

/* ---------------- SECCIONES ---------------- */
main { display: block; }
.block { padding: 56px 0 0; }
.block > h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  margin: 0 0 18px;
  position: relative;
  padding-top: 26px;
}
.block > h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--solar);
}
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }

/* listas con marca */
.ticks { list-style: none; margin: 0 0 18px; padding: 0; max-width: 72ch; }
.ticks li {
  position: relative;
  padding: 0 0 0 30px;
  margin-bottom: 12px;
  color: var(--fog);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--solar);
}

/* pasos numerados */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 26px 0 18px;
  padding: 0;
}
.steps li {
  position: relative;
  background: var(--carbon);
  border: 1px solid var(--slate);
  border-radius: var(--r-card);
  padding: 26px 22px 22px;
  overflow: hidden;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 12px;
}
.steps h3 { font-size: 17px; }
.steps p { font-size: 14.5px; color: var(--mist); line-height: 1.6; margin: 0; }

/* tarjetas de producto */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 26px 0 18px;
}
.card {
  background: var(--carbon);
  border: 1px solid var(--slate);
  border-radius: var(--r-card);
  padding: 26px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--steel); }
.card .eyebrow { margin-bottom: 12px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card h3 a { color: var(--white); }
.card h3 a:hover { color: var(--gold); }
.card p { font-size: 14.5px; color: var(--mist); line-height: 1.6; margin: 0 0 14px; }
.card-cta { margin: 0; }
.card-cta a {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card-cta a span { transition: transform var(--dur) var(--ease); }
.card-cta a:hover span { transform: translateX(3px); }

/* preguntas frecuentes */
.faq .qa {
  border-top: 1px solid var(--slate);
  padding: 22px 0;
  max-width: 78ch;
}
.faq .qa h3 { font-size: 18px; margin-bottom: 8px; }
.faq .qa p { color: var(--mist); font-size: 15.5px; margin: 0; }

/* llamada final */
.cta {
  margin: 72px 0 0;
  padding: 48px 40px;
  background: var(--carbon);
  border: 1px solid var(--slate);
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 300px at 88% 0%, rgba(244, 178, 62, 0.14), transparent 65%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(25px, 3vw, 34px); margin: 0 0 12px; }
.cta p { color: var(--mist); max-width: 58ch; }
.cta p:last-child { margin: 22px 0 0; }

/* ---------------- PIE ---------------- */
.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--slate);
  background: var(--carbon);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-top: 50px;
  padding-bottom: 40px;
}
.footer-brand { margin: 0 0 14px; }
.site-footer .muted { font-size: 14px; max-width: 34ch; }
.footer-h {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 400;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: var(--fog); font-size: 14.5px; }
.site-footer li a:hover { color: var(--gold); }
.legal { border-top: 1px solid var(--slate); padding-top: 18px; padding-bottom: 26px; }
.legal p {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--mist);
  line-height: 1.7;
  max-width: none;
}

/* ================= HOME: SECCIONES DE MARCA =================
   Réplica de la landing de Arcore en HTML estático. Todo el movimiento es CSS
   (hover y :focus-visible): la versión original dependía de JavaScript para el
   explorador de pilares, aquí los nodos son enlaces reales, así que el bloque
   es navegable, indexable y funciona con el teclado. */

/* hero extendido de portada */
.hhero { border-bottom: none; }
.hhero .hero-inner { padding: 104px 0 96px; }
.hhero h1 { font-size: clamp(40px, 6.6vw, 78px); line-height: 1.03; max-width: 15ch; }
.hhero .lead { font-size: clamp(17px, 2vw, 21px); max-width: 50ch; margin-top: 24px; }
.g-solar {
  background: var(--solar);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* franja "operaciones conectadas" */
.connected { padding: 84px 0; border-top: 1px solid var(--slate); }
.connected h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 14px 0 0; }
.connected .lead {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--fog);
  max-width: 64ch;
  line-height: 1.65;
  margin-top: 18px;
}
.connected .ac-gold { color: var(--gold); font-weight: 600; }
.connected .ac-cyan { color: var(--cyan); font-weight: 600; }
.connected .ac-coral { color: var(--coral); font-weight: 600; }
.connected .closer {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--white);
  margin: 26px 0 0;
  letter-spacing: -0.01em;
}

/* explorador de pilares (réplica exacta de la landing) */
.explorer {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--slate);
  background: var(--obsidian);
  --scene: #f4b23e;
  --scene-rgb: 244, 178, 62;
}
.explorer-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 78%);
}
.explorer-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  background: radial-gradient(720px 560px at 50% 46%, rgba(var(--scene-rgb), 0.18), transparent 66%);
  mix-blend-mode: screen;
}
.explorer.active .explorer-tint { opacity: 1; }
.explorer-cursor {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--scene-rgb), 0.16), transparent 62%);
  mix-blend-mode: screen;
  transition: opacity 0.4s var(--ease);
}
.explorer.active .explorer-cursor { opacity: 1; }
.explorer-inner { position: relative; z-index: 3; padding: 70px 0 80px; }
.explorer-head { text-align: center; max-width: 56ch; margin: 0 auto 8px; }
.explorer-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.explorer-head p { color: var(--mist); font-size: 16px; margin: 12px auto 0; }

/* escena de escritorio: core + nodos orbitales */
.stage { position: relative; height: 540px; margin-top: 10px; }
.core { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); }
.core svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--scene); transition: stroke 0.55s var(--ease); }
.core-flow { transform-origin: 260px 260px; transition: transform 0.7s var(--ease); }
.core-dot { fill: var(--scene); transition: fill 0.55s var(--ease); }
.core-spin { transform-origin: 260px 260px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tick { stroke: var(--scene); stroke-width: 1.5; opacity: 0.35; transition: stroke 0.55s var(--ease); }
.flowline {
  fill: none;
  stroke: var(--scene);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 5 12;
  opacity: 0.55;
  transition: stroke 0.55s var(--ease);
  animation: coreflow 2.4s linear infinite;
}
@keyframes coreflow { to { stroke-dashoffset: -34; } }
.explorer.to-arcore .core-flow { transform: rotate(-42deg); }
.explorer.to-corecap .core-flow { transform: rotate(42deg); }
.explorer.to-arca .core-flow { transform: rotate(180deg); }

/* panel central */
.ex-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
  width: min(380px, 72%);
}
.ex-panel .phrase {
  font-family: var(--ff-display);
  font-size: clamp(17px, 2vw, 21px);
  color: var(--white);
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: color 0.4s var(--ease);
}
.ex-panel .ex-prompt { color: var(--mist); transition: opacity 0.3s var(--ease); }
.explorer.active .ex-prompt { opacity: 0; }
.ex-panel .explore {
  margin-top: 16px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.explorer.active .ex-panel .explore { opacity: 1; transform: none; }
.ex-cta {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--r-ctl);
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--scene);
  color: #0a0b0d;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.ex-cta:hover, .ex-cta:focus-visible { transform: translateY(-2px); filter: brightness(1.07); color: #0a0b0d; }

/* nodos (escritorio) */
.node {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 206px;
  padding: 16px 20px;
  border: 1px solid var(--steel);
  border-radius: var(--r-card);
  background: rgba(18, 20, 25, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.node:hover, .node:focus-visible { transform: translateY(-4px) scale(1.02); outline: none; }
.node .nodedot { width: 9px; height: 9px; border-radius: 50%; }
.node .role {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.3s var(--ease);
}
.node .name { font-family: var(--ff-display); font-weight: 700; font-size: 22px; color: var(--white); }
.node .aud { font-family: var(--ff-mono); font-size: 11px; color: var(--mist); }
.n-arcore { left: 6%; top: 8%; }
.n-arcore .nodedot { background: var(--gold); }
.n-corecap { right: 6%; top: 8%; }
.n-corecap .name { font-family: var(--ff-mono); letter-spacing: -0.02em; }
.n-corecap .nodedot { background: var(--cyan); }
.n-arca { left: 50%; bottom: 2%; transform: translateX(-50%); }
.n-arca:hover, .n-arca:focus-visible { transform: translateX(-50%) translateY(-4px) scale(1.02); }
.n-arca .nodedot { background: var(--coral); }
.explorer.to-arcore .n-arcore { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 16px 40px -16px rgba(244, 178, 62, 0.6); }
.explorer.to-arcore .n-arcore .role { color: var(--gold); }
.explorer.to-corecap .n-corecap { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 16px 40px -16px rgba(34, 211, 238, 0.6); }
.explorer.to-corecap .n-corecap .role { color: var(--cyan); }
.explorer.to-arca .n-arca { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 16px 40px -16px rgba(255, 107, 87, 0.6); }
.explorer.to-arca .n-arca .role { color: var(--coral); }

/* tarjetas apiladas de móvil */
.ex-mobile { display: none; }
.mcard {
  border: 1px solid var(--slate);
  border-radius: var(--r-card);
  background: var(--carbon);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.mcard summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}
.mcard summary::-webkit-details-marker { display: none; }
.mcard .mdot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.m-arcore .mdot { background: var(--gold); }
.m-arcore[open] { border-color: var(--gold); }
.m-corecap .mdot { background: var(--cyan); }
.m-corecap[open] { border-color: var(--cyan); }
.m-corecap .mname { font-family: var(--ff-mono); letter-spacing: -0.02em; }
.m-arca .mdot { background: var(--coral); }
.m-arca[open] { border-color: var(--coral); }
.mcard .mrole { display: block; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mist); }
.mcard .mname { font-family: var(--ff-display); font-weight: 700; font-size: 20px; color: var(--white); margin-top: 2px; }
.mcard .mchev { margin-left: auto; color: var(--mist); transition: transform 0.3s var(--ease); }
.mcard[open] .mchev { transform: rotate(180deg); }
.mcard .mbody { padding: 0 22px 22px; }
.mcard .mbody p { font-size: 14.5px; color: var(--mist); line-height: 1.6; margin: 0 0 16px; }
.mcard .mbody .ex-cta { font-size: 13px; padding: 11px 18px; }

/* reveal on scroll (el contenido queda visible si no hay JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* transición de cambio de página */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: var(--scene);
  clip-path: circle(0 at var(--wx, 50%) var(--wy, 50%));
  transition: clip-path 0.5s var(--ease);
}
.wipe.go { clip-path: circle(150% at var(--wx, 50%) var(--wy, 50%)); }

/* sección de tarjetas */
.cards-sec { position: relative; overflow: hidden; border-top: 1px solid var(--slate); padding: 84px 0; }
.cards-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.cards-copy .eyebrow { color: var(--cyan); }
.cards-copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 14px 0 0; }
.cards-copy .lead { margin-top: 16px; }
.cards-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.cards-bullets li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--fog);
}
.cards-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.35em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.cards-copy .btn { margin-top: 30px; }
.btn-cyan { background: var(--cyan); color: #02232a; box-shadow: 0 8px 24px -12px rgba(34, 211, 238, 0.7); }
.btn-cyan:hover, .btn-cyan:focus-visible { color: #02232a; filter: brightness(1.07); transform: translateY(-2px); }

.cards-visual { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.flux-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  max-width: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 62%);
  pointer-events: none;
}
.vcf-ghost {
  position: absolute;
  width: 360px;
  max-width: 84%;
  aspect-ratio: 1.586;
  border-radius: 20px;
  border: 1px solid var(--steel);
  background: rgba(27, 30, 37, 0.6);
  transform: rotate(-9deg) translate(-16px, 16px);
}
.vcf {
  position: relative;
  width: 360px;
  max-width: 84%;
  aspect-ratio: 1.586;
  border-radius: 20px;
  padding: 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--flux);
  box-shadow: 0 30px 60px -30px rgba(34, 211, 238, 0.7);
  transform: rotate(-4deg);
  transition: transform 0.35s var(--ease);
}
.cards-visual:hover .vcf { transform: rotate(-4deg) translateY(-6px); }
.vcf::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.vcf-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.vcf-name { font-family: var(--ff-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.vcf-chip {
  width: 42px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
}
.vcf-mid { font-family: var(--ff-mono); font-size: 14px; letter-spacing: 0.06em; position: relative; z-index: 1; }
.vcf-bot { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.vcf-label { font-family: var(--ff-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.vcf-holder { font-family: var(--ff-display); font-weight: 600; font-size: 15px; margin-top: 3px; }
.vcf-logo { font-weight: 800; font-style: italic; font-size: 22px; letter-spacing: -0.02em; }

/* llamada final a pantalla completa */
.finalcta { position: relative; overflow: hidden; text-align: center; border-top: 1px solid var(--slate); }
.finalcta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px 420px at 50% 0%, rgba(244, 178, 62, 0.16), transparent 65%);
}
.finalcta-inner { max-width: 780px; margin: 0 auto; padding: 96px 28px; position: relative; z-index: 1; }
.finalcta .eyebrow { display: block; }
.finalcta h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin: 0; }
.finalcta p { color: var(--mist); font-size: 18px; margin: 18px auto 0; max-width: 46ch; }
.finalcta .cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 56px 0 48px; }
  .hhero .hero-inner { padding: 64px 0 56px; }
  .cards-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-visual { order: 2; min-height: 300px; }
  /* explorador: se oculta la escena orbital y aparecen las tarjetas apiladas */
  .explorer { min-height: 0; }
  .explorer-inner { padding: 64px 0 56px; }
  .stage, .ex-panel { display: none; }
  .ex-mobile { display: block; margin-top: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header-inner { min-height: 62px; gap: 12px; padding: 10px 0; }
  .nav { order: 3; width: 100%; margin: 0; gap: 0; }
  .nav a { padding: 8px 10px; font-size: 13.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 34px 24px; }
  .trustrow span { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
