/* ==========================================================================
   Kryzonix — hoja de estilos principal
   Paleta púrpura sobre negro · Sora + IBM Plex Sans/Mono
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Fondos */
  --bg:            #06050A;
  --bg-band:       linear-gradient(180deg, #08060D, #0B0813);
  --bg-footer:     #08060D;
  --bg-flat:       #0A0810;
  --bg-panel:      #0D0A14;
  --bg-field:      #120E1C;
  --card:          linear-gradient(165deg, #120E1C, #09070E);
  --card-alt:      linear-gradient(170deg, #140F20, #09070E);

  /* Texto */
  --tx:            #E9E6F2;
  --tx-hero:       #F5F2FC;
  --tx-head:       #F2EFFA;
  --tx-strong:     #EDE9F7;
  --tx-body:       #B0A9C2;
  --tx-soft:       #9C95AF;
  --tx-mute:       #948DA8;
  --tx-dim:        #8F889F;
  --tx-dimmer:     #6B6480;
  --tx-faint:      #5F5975;
  --tx-list:       #C5BED6;

  /* Acentos */
  --pu:            #8B2FE8;
  --pu-lt:         #C08CFF;
  --pu-lter:       #E4CBFF;
  --pu-soft:       #CBB6EE;
  --pu-mono:       #7E5AB8;
  --pu-num:        #5A3E86;
  --pu-title:      #E8B9FF;
  --up:            #4ADE80;
  --down:          #F87171;

  /* Líneas */
  --line:          rgba(160, 110, 255, .18);
  --line-soft:     rgba(160, 110, 255, .14);
  --line-mid:      rgba(160, 110, 255, .24);
  --line-hi:       rgba(180, 120, 255, .45);
  --line-head:     rgba(160, 110, 255, .16);

  /* Botones */
  --btn:           linear-gradient(180deg, #9B3BF5, #6D18C0);
  --btn-hover:     linear-gradient(180deg, #AC53FF, #7C22D6);
  --btn-border:    rgba(200, 150, 255, .5);
  --btn-shadow:    0 10px 34px rgba(139, 47, 232, .4);

  /* Tipografía */
  --f-display:     'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body:        'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:        'IBM Plex Mono', ui-monospace, 'SFMono-Regular', 'Consolas', monospace;

  /* Layout */
  --wrap:          1240px;
  --gutter:        clamp(18px, 4vw, 32px);
  --header-h:      66px;
  --r-sm:          9px;
  --r-md:          14px;
  --r-lg:          18px;
  --r-xl:          20px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--pu-lt); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--pu-lter); }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--pu); color: #fff; }

h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--pu-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Enlace de salto para teclado y lectores de pantalla */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pu);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Utilidades de layout
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 1000px; }
.wrap--text   { max-width: 900px; }
.wrap--prose  { max-width: 820px; }

.section        { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--top0  { padding-top: 0; }
.section--bot0  { padding-bottom: 0; }

/* Banda con borde y fondo degradado */
.band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-band);
}
.band--top { border-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid--cards   { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* Servicios de la portada: las cuatro líneas de negocio en una sola fila en
   escritorio. Se salta el estado de 3 columnas a propósito — con 4 tarjetas
   dejaría una descolgada debajo. Progresión: 1 → 2 → 4. */
.grid--services { grid-template-columns: 1fr; }

@media (min-width: 620px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1180px) {
  .grid--services {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 18px;
  }
  /* Con 4 columnas cada tarjeta baja a ~270 px: se recorta el relleno y la
     tipografía para que el texto no quede ahogado. */
  .grid--services .card        { padding: 28px 24px; }
  .grid--services .card__title { font-size: 21px; line-height: 1.25; }
  .grid--services .card__text  { font-size: 14.5px; line-height: 1.6; }

  /* Las cuatro tarjetas comparten las filas de la rejilla madre (subgrid), así
     que etiqueta, título, descripción y enlace empiezan a la misma altura en
     todas — aunque unos títulos ocupen una línea y otros dos. */
  .grid--services {
    grid-template-rows: repeat(4, auto);   /* etiqueta · título · texto · enlace */
    row-gap: 14px;                          /* separación DENTRO de la tarjeta */
  }
  .grid--services .card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
  }
  .grid--services .card__text { flex: none; }

  /* Reserva para navegadores sin subgrid: se fijan dos líneas de título. */
  @supports not (grid-template-rows: subgrid) {
    .grid--services .card { display: flex; gap: 14px; }
    .grid--services .card__title { min-height: 2.5em; }
    .grid--services .card__text { flex: 1; }
  }
}
.grid--cards-s { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--why     { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.grid--split   { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(32px, 5vw, 56px); }
.grid--proc    { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 22px; }
.grid--how     { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 34px 40px; }

/* --------------------------------------------------------------------------
   4. Tipografía de secciones
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pu);
  margin-bottom: 14px;
}

.kicker {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pu-mono);
  margin-bottom: 16px;
}

.h1-hero {
  font-weight: 800;
  font-size: clamp(34px, 6.5vw, 66px);
  line-height: 1.03;
  letter-spacing: -.028em;
  color: var(--tx-hero);
  margin-bottom: 24px;
}

.h1-page {
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--tx-hero);
  margin-bottom: 16px;
}

.h2 {
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--tx-head);
}
.h2--sm { font-size: clamp(22px, 3.1vw, 32px); }

.lead-sub {
  font-family: var(--f-display);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--pu-lt);
}

.lead {
  font-size: clamp(16.5px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--tx-body);
}

.sec-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--tx-soft);
  max-width: 640px;
}

.note-mono {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--tx-dimmer);
}

.stack { display: flex; flex-direction: column; gap: 20px; }

.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mb-30 { margin-bottom: 30px; }
.mb-34 { margin-bottom: 34px; }
.mb-36 { margin-bottom: 36px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

/* Nota destacada con barra lateral púrpura */
.callout {
  font-size: clamp(16px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--tx-body);
  padding: 28px clamp(20px, 4vw, 30px);
  border-left: 2px solid var(--pu);
  background: rgba(139, 47, 232, .06);
}

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border-radius: 11px;
  padding: 16px 30px;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--btn);
  color: #fff;
  border: 1px solid var(--btn-border);
  box-shadow: var(--btn-shadow);
}
.btn--primary:hover { background: var(--btn-hover); color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  color: #DCD5EC;
  border: 1px solid rgba(160, 110, 255, .28);
}
.btn--ghost:hover { background: rgba(160, 110, 255, .12); color: #EFE8FF; }

.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
  min-height: 40px;
  border-radius: var(--r-sm);
  box-shadow: 0 6px 22px rgba(139, 47, 232, .35);
}

.btn--outline {
  background: rgba(160, 110, 255, .12);
  border: 1px solid rgba(180, 120, 255, .4);
  color: #DCC5FF;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14px;
}
.btn--outline:hover { background: rgba(160, 110, 255, .22); color: #EFE8FF; }

.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.link-more {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pu-lt);
}

/* --------------------------------------------------------------------------
   6. Cabecera y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  padding: 14px var(--gutter);
  background: rgba(6, 5, 10, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-head);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand:hover { color: inherit; }

.brand__mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-hi);
  box-shadow: 0 0 18px rgba(139, 47, 232, .4);
  background: #0B0812;
  flex: 0 0 auto;
}
/* Recorte del key visual: aísla la K del cartel */
.brand__mark img {
  position: absolute;
  width: 104px;
  max-width: none;
  left: -35px;
  top: -6px;
}

.brand__word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(15px, 2.6vw, 18px);
  letter-spacing: .16em;
  color: #EDEAF5;
  background: linear-gradient(180deg, #FFFFFF 0%, #CFCADB 44%, #7C7590 58%, #F4F1FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  display: inline-block;
  background: none;
  border: 0;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--tx-dim);
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: rgba(160, 110, 255, .1); color: #EFE8FF; }
.nav-link[aria-current="page"],
.nav-link.is-active { color: #EFE8FF; }

/* Desplegable de servicios */
.nav-drop { position: relative; }
.nav-drop__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 290px;
  background: var(--bg-panel);
  border: 1px solid var(--line-mid);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.nav-drop.is-open .nav-drop__panel { display: flex; }
.nav-drop__item {
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #B6AFC7;
  transition: background .18s ease, color .18s ease;
}
.nav-drop__item:hover { background: rgba(160, 110, 255, .12); color: #EFE8FF; }
.nav-drop__caret { display: inline-block; margin-left: 5px; font-size: 9px; transition: transform .2s ease; }
.nav-drop.is-open .nav-drop__caret { transform: rotate(180deg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-select {
  background: var(--bg-panel);
  color: #CFC9DE;
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12.5px;
  cursor: pointer;
  min-height: 40px;
}
.lang-select option { background: var(--bg-panel); color: var(--tx); }

.header-actions .btn--sm,
.header-actions .lang-select { display: none; }

/* Botón hamburguesa */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 42px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: #CFC9DE;
  transition: transform .22s ease, opacity .22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Panel de navegación móvil */
.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #08060D;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(160, 110, 255, .18);
  padding: 14px var(--gutter) 22px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-mobile.is-open { display: flex; }

.nav-mobile a {
  padding: 13px 4px;
  border-radius: 8px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--tx-dim);
  min-height: 46px;
  display: flex;
  align-items: center;
}
.nav-mobile a:hover { color: #EFE8FF; }
.nav-mobile a[aria-current="page"] { color: #EFE8FF; }

.nav-mobile__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.nav-mobile__foot .lang-select { padding: 11px 12px; font-size: 13px; min-height: 46px; }
.nav-mobile__foot .btn { flex: 1; min-width: 160px; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-actions .btn--sm,
  .header-actions .lang-select { display: inline-flex; }
  .burger, .nav-mobile { display: none !important; }
}

/* --------------------------------------------------------------------------
   7. Home — banda del key visual + hero
   -------------------------------------------------------------------------- */
/* Banda superior del cartel — RETIRADA del HTML, estilos conservados.
   Para recuperarla, vuelve a poner esto justo dentro de <main> en index.html:

     <div class="keyband" aria-hidden="true">
       <img src="assets/img/kryzonix-key-visual.jpg?v=2" alt=""
            width="1179" height="1158" fetchpriority="high">
     </div>

   El recorte corta en la fila 700 del original (de 1158), dentro de la franja
   oscura entre el logotipo y el eslogan «WE TRAIN…», para que no asome. */
.keyband {
  position: relative;
  width: 100%;
  aspect-ratio: 4.736;
  overflow: hidden;
  background: var(--bg);
}
.keyband img {
  position: absolute;
  width: 108.7%;
  max-width: none;
  left: -4.35%;
  top: -205.66%;
}
.keyband::before,
.keyband::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.keyband::before {
  background: linear-gradient(180deg, #06050A 0%, rgba(6,5,10,0) 26%, rgba(6,5,10,0) 72%, #06050A 100%);
}
.keyband::after {
  background: linear-gradient(90deg, #06050A 0%, rgba(6,5,10,0) 16%, rgba(6,5,10,0) 84%, #06050A 100%);
}

.hero {
  position: relative;
  padding-inline: var(--gutter);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 22% 8%, rgba(139, 47, 232, .28), transparent 70%),
    radial-gradient(ellipse 50% 50% at 88% 30%, rgba(90, 30, 190, .22), transparent 70%);
}
.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 84px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(180, 120, 255, .3);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 26px;
}
.pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #B36BFF;
  box-shadow: 0 0 10px #B36BFF;
  animation: krzPulse 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}
.pill__text {
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pu-soft);
}

@keyframes krzPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.hero__sub {
  font-size: clamp(16px, 1.7vw, 17.5px);
  line-height: 1.65;
  color: #A8A1BC;
  margin-bottom: 18px;
  max-width: 560px;
}
.hero__note {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--pu-lt);
  margin-bottom: 34px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  border: 1px solid rgba(180, 120, 255, .3);
  box-shadow: 0 0 90px rgba(139, 47, 232, .28);
  overflow: hidden;
  background: #0B0812;
}
.hero__visual img { width: 100%; height: 100%; object-fit: contain; }

/* Cifras */
.stats {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat { background: var(--bg-flat); padding: 26px 24px; }
.stat__k {
  font-family: var(--f-mono);
  font-size: clamp(22px, 2.9vw, 30px);
  font-weight: 500;
  color: var(--pu-lt);
  margin-bottom: 6px;
}
.stat__v { font-size: 13px; line-height: 1.45; color: var(--tx-dim); }

/* --------------------------------------------------------------------------
   8. Tarjetas
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-hi); }
.card--flat:hover { border-color: var(--line); }
.card--alt { background: var(--card-alt); border-color: rgba(160, 110, 255, .2); }
.card--pad-s { padding: clamp(24px, 3vw, 30px); gap: 12px; border-radius: var(--r-md); }

.card__tag {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pu-mono);
}
.card__title {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: -.01em;
  color: var(--tx-head);
}
.card__title--sm { font-size: 19px; }
.card__title--pu { color: var(--pu-lt); font-size: 20px; }
.card__text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--tx-mute);
  flex: 1;
}

.card__num {
  font-family: var(--f-mono);
  font-size: 26px;
  color: var(--pu-num);
}

/* Tarjeta de nivel del curso */
.level__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pu);
}
.level__rule { height: 1px; background: var(--line); }
.level__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.level__list > li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.55;
  color: #B6AFC7;
}
.level__list > li::before {
  content: "";
  margin-top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pu);
  box-shadow: 0 0 8px rgba(139, 47, 232, .8);
}

/* Bloque "por qué" */
.why { display: flex; flex-direction: column; gap: 12px; }
.why__rule { height: 2px; width: 44px; background: linear-gradient(90deg, var(--pu), transparent); }
.why__t { font-weight: 700; font-size: 18px; color: var(--tx-strong); }
.why__d { font-size: 14.5px; line-height: 1.6; color: #928BA6; }

/* Proceso numerado en columnas */
.proc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid rgba(139, 47, 232, .5);
}
.proc__n { font-family: var(--f-mono); font-size: 12px; color: var(--pu); }
.proc__t { font-weight: 700; font-size: 17px; color: var(--tx-strong); }
.proc__d { font-size: 14px; line-height: 1.6; color: #928BA6; }

/* --------------------------------------------------------------------------
   9. Listas numeradas y con marcador
   -------------------------------------------------------------------------- */
.numlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.numlist--rows > li {
  display: grid;
  grid-template-columns: clamp(34px, 5vw, 52px) 1fr;
  gap: clamp(12px, 2vw, 18px);
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.numlist--rows .n { font-family: var(--f-mono); font-size: clamp(18px, 2.4vw, 22px); color: var(--pu-num); }
.numlist--rows .s { font-size: clamp(15.5px, 1.6vw, 17px); line-height: 1.5; color: var(--tx-list); }

.numlist--steps > li {
  display: grid;
  grid-template-columns: clamp(36px, 5vw, 56px) 1fr;
  gap: clamp(14px, 2.4vw, 22px);
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.numlist--steps .n { font-family: var(--f-mono); font-size: clamp(19px, 2.6vw, 24px); color: var(--pu-num); }
.numlist--steps h3 { font-weight: 700; font-size: 19px; color: var(--tx-strong); margin-bottom: 8px; }
.numlist--steps p { font-size: 15.5px; line-height: 1.65; color: var(--tx-mute); }

/* Resultados del curso: dos columnas en escritorio */
.outlist {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0 40px;
}
.outlist > li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.outlist .n { font-family: var(--f-mono); font-size: 13px; color: var(--pu); }
.outlist .s { font-size: 16px; line-height: 1.55; color: var(--tx-list); }

/* Lista de seguridad con marcador cuadrado */
.seclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.seclist > li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tx-list);
}
.seclist > li::before {
  content: "";
  margin-top: 6px;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--pu);
  box-shadow: 0 0 12px rgba(139, 47, 232, .8);
}

/* --------------------------------------------------------------------------
   10. Marcos de imagen
   -------------------------------------------------------------------------- */
.figure {
  border-radius: var(--r-md);
  border: 1px solid rgba(160, 110, 255, .22);
  overflow: hidden;
  background: #0B0812;
  display: grid;
  place-items: center;
}
.figure--43 { aspect-ratio: 4 / 3; }
.figure--16 { aspect-ratio: 16 / 10; }
.figure img { width: 100%; height: 100%; object-fit: cover; }

/* Marcador de imagen pendiente de sustituir */
.figure--slot {
  background:
    repeating-linear-gradient(135deg, rgba(160,110,255,.05) 0 12px, transparent 12px 24px),
    var(--bg-flat);
}
.figure--slot span {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pu-num);
  padding: 20px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Socios / infraestructura
   -------------------------------------------------------------------------- */
.partners {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}
.partners__label {
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6F6785;
}
.partners__list { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.partner {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line-head);
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 56px;
  background: rgba(255, 255, 255, .02);
  color: #7A7291;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.partner:hover {
  border-color: rgba(180, 120, 255, .38);
  background: rgba(160, 110, 255, .06);
  color: #B6AFC7;
}

/* Los logotipos heredan el color del chip: una sola tinta para toda la fila. */
.partner__mark {
  display: block;
  width: auto;
  fill: currentColor;
  flex: 0 0 auto;
}
/* Alturas distintas por proporción, para que pesen ópticamente igual */
.partner__mark--sq   { height: 21px; }  /* marca cuadrada  — Binance */
.partner__mark--wide { height: 17px; }  /* marca apaisada  — 3Commas, TradingView */
.partner__mark--word  { height: 15px; }  /* logotipo de texto de trazo fino — Bybit */
.partner__mark--block { height: 13px; }  /* logotipo macizo, pesa más — OKX */

.partner__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  color: inherit;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Testimonios
   -------------------------------------------------------------------------- */
.quote {
  background: var(--card);
  border: 1px solid var(--line-head);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
.quote p { font-size: 16px; line-height: 1.6; color: #CFC9DE; flex: 1; }
.quote figcaption { font-style: normal; }
.quote__a { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--pu-lt); }
.quote__r { font-size: 12.5px; color: #7C7591; margin-top: 3px; }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-head);
  border: 1px solid var(--line-head);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq details { background: var(--bg-flat); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px clamp(18px, 3vw, 26px);
  padding-right: 58px;
  position: relative;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.45;
  color: var(--tx-strong);
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after {
  content: "";
  position: absolute;
  right: clamp(20px, 3vw, 28px);
  top: 50%;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 1.5px solid var(--pu-lt);
  border-bottom: 1.5px solid var(--pu-lt);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq p {
  margin: 0;
  padding: 0 clamp(18px, 3vw, 26px) 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--tx-mute);
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   14. Encabezado de página interior + CTA final
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  border-bottom: 1px solid var(--line-head);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 20% 0%, rgba(139, 47, 232, .22), transparent 70%);
  pointer-events: none;
}
.page-head__inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(40px, 6vw, 64px);
}

.cta-box {
  border: 1px solid rgba(180, 120, 255, .3);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 80% 140% at 15% 0%, rgba(139, 47, 232, .22), transparent 70%),
    var(--bg-flat);
  padding: clamp(30px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-box h2 {
  font-weight: 800;
  font-size: clamp(21px, 2.9vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--tx-hero);
  max-width: 520px;
}

/* --------------------------------------------------------------------------
   15. Mercado
   -------------------------------------------------------------------------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.coins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 14px;
}
.coin {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .18s ease;
}
.coin:hover { border-color: rgba(180, 120, 255, .5); }
.coin[aria-pressed="true"] { border-color: rgba(180, 120, 255, .55); }
.coin__head { display: flex; align-items: baseline; gap: 8px; }
.coin__sym { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--tx-strong); }
.coin__name { font-size: 11.5px; color: var(--tx-dimmer); }
.coin__px { font-family: var(--f-mono); font-size: clamp(19px, 2.2vw, 23px); color: var(--tx-head); }
.coin__ch { font-family: var(--f-mono); font-size: 12.5px; color: var(--tx-dimmer); }
.coin__ch.is-up { color: var(--up); }
.coin__ch.is-down { color: var(--down); }

.price-status { font-family: var(--f-mono); font-size: 11.5px; color: var(--tx-faint); margin-top: 14px; min-height: 17px; }

.chart-box {
  height: clamp(320px, 44vw, 520px);
  border: 1px solid rgba(160, 110, 255, .2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-flat);
  display: grid;
  place-items: center;
}
.chart-box .tradingview-widget-container { width: 100%; height: 100%; }

.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px;
  background: var(--line-head);
  border: 1px solid var(--line-head);
  border-radius: var(--r-md);
  overflow: hidden;
}
.news__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-flat);
  padding: 26px;
  transition: background .18s ease;
}
a.news__item:hover { background: #100C1A; color: inherit; }
.news__date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pu-mono);
}
.news__title { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--tx-strong); }
.news__excerpt { font-size: 14px; line-height: 1.55; color: var(--tx-dim); }

/* Esqueletos de carga */
.sk {
  background: linear-gradient(90deg, rgba(160,110,255,.05), rgba(160,110,255,.14), rgba(160,110,255,.05));
  background-size: 200% 100%;
  animation: krzShimmer 1.5s linear infinite;
  border-radius: 6px;
  color: transparent !important;
  user-select: none;
}
@keyframes krzShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.feed-msg { font-size: 15px; color: var(--tx-mute); margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   16. Guía — conceptos
   -------------------------------------------------------------------------- */
.concept {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(24px, 4vw, 44px);
}
.concept h3 {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -.01em;
  color: var(--pu-lt);
  margin-bottom: 14px;
}
.concept p { font-size: 16px; line-height: 1.7; color: #ABA4BE; }
.concept__keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-content: start; }
.concept__keys > li {
  border: 1px solid var(--line-mid);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: #B6AFC7;
  background: rgba(139, 47, 232, .05);
}

/* --------------------------------------------------------------------------
   17. Equipo
   -------------------------------------------------------------------------- */
.member {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.member__photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(160,110,255,.06) 0 10px, transparent 10px 20px),
    #0F0B18;
  border: 1px solid var(--line-mid);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pu-num);
  flex: 0 0 auto;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-weight: 700; font-size: 18px; color: var(--tx-strong); }
.member p { font-size: 14.5px; line-height: 1.6; color: #928BA6; }

/* --------------------------------------------------------------------------
   18. Contacto — formulario
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  align-items: start;
}

.form-card {
  background: var(--bg-flat);
  border: 1px solid rgba(160, 110, 255, .2);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 34px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-dim);
}
.field input,
.field select,
.field textarea {
  background: var(--bg-field);
  border: 1px solid var(--line-mid);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  color: var(--tx-strong);
  font-family: var(--f-body);
  font-size: 16px;
  min-height: 48px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(180, 120, 255, .6);
  box-shadow: 0 0 0 3px rgba(139, 47, 232, .18);
}
.field input::placeholder,
.field textarea::placeholder { color: #6B6480; }
.field select option { background: var(--bg-panel); color: var(--tx); }

.form-card .btn { grid-column: 1 / -1; justify-self: start; }

.form-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.form-msg.is-ok  { color: var(--pu-lt); }
.form-msg.is-err { color: #FFA8A8; }

/* Trampa antispam: fuera de pantalla, no display:none */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 620px) {
  .form-card { grid-template-columns: 1fr; }
  .field--full { grid-column: 1; }
  .form-card .btn { grid-column: 1; justify-self: stretch; }
  .form-msg { grid-column: 1; }
}

.side-card {
  background: var(--bg-flat);
  border: 1px solid rgba(160, 110, 255, .2);
  border-radius: var(--r-lg);
  padding: 30px;
}
.side-card h3 { font-weight: 700; font-size: 19px; color: var(--tx-head); margin-bottom: 12px; }
.side-card p { font-size: 14.5px; line-height: 1.6; color: #928BA6; margin-bottom: 20px; }
.side-card a.mono { font-family: var(--f-mono); font-size: 15px; color: var(--pu-lt); word-break: break-word; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(28px, 4vw, 44px);
}
.legal-grid h2 { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--pu-title); margin-bottom: 14px; }
.legal-grid p  { font-size: 14px; line-height: 1.7; color: #8B849E; }

/* --------------------------------------------------------------------------
   19. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-head);
  background: var(--bg-footer);
}
.site-footer__cols {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 40px;
}
.site-footer__word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .16em;
  color: #EDEAF5;
  margin-bottom: 12px;
}
.site-footer__tag {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--pu);
  margin-bottom: 18px;
}
.site-footer a.mono { font-family: var(--f-mono); font-size: 13.5px; color: var(--tx-dim); }
.site-footer a.mono:hover { color: var(--pu-lt); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  align-self: flex-start;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--tx-dim);
}
.footer-nav a:hover { color: var(--pu-lt); }

.site-footer__bottom {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) 44px;
  border-top: 1px solid rgba(160, 110, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--tx-faint);
}
.site-footer__bottom a { color: var(--tx-faint); font-size: 12.5px; }
.site-footer__bottom a:hover { color: var(--pu-lt); }
.site-footer__bottom div { display: flex; gap: 22px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   20. Página 404
   -------------------------------------------------------------------------- */
.err {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 20px;
  padding: clamp(48px, 10vw, 120px) var(--gutter);
}
.err__code {
  font-family: var(--f-mono);
  font-size: clamp(60px, 14vw, 120px);
  line-height: 1;
  color: var(--pu-num);
}

/* --------------------------------------------------------------------------
   21. Ajustes finos responsive
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-box .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .partners { gap: 18px; }
  .partners__list { gap: 10px; }
  .partner { padding: 10px 14px; gap: 9px; min-height: 48px; }
  .partner__name { font-size: 15px; }
  .partner__mark--sq   { height: 18px; }
  .partner__mark--wide { height: 15px; }
  .partner__mark--word  { height: 14px; }
  .partner__mark--block { height: 12px; }
  .news__item { padding: 22px; }
  .card, .quote, .member, .side-card { padding: 24px; }
  .site-footer__bottom { flex-direction: column; gap: 14px; }
  .sec-head { margin-bottom: 18px; }
}

@media (max-width: 400px) {
  .brand__word { letter-spacing: .1em; }
}

/* Sin animación para quien lo pide */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Impresión */
@media print {
  .site-header, .site-footer, .keyband, .hero__glow, .chart-box, .burger, .nav-mobile { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .quote, .concept, .form-card, .side-card { border: 1px solid #ccc; background: #fff; }
}

/* Estado activo dentro del desplegable de servicios */
.nav-drop__item[aria-current="page"] { color: #EFE8FF; background: rgba(160, 110, 255, .08); }
.nav-drop:has(.nav-drop__item[aria-current="page"]) .nav-drop__toggle { color: #EFE8FF; }

/* Bloqueo del scroll de fondo con el menú móvil abierto */
body.menu-open { overflow: hidden; }
