/* ============================================================
   TECLEX · Identidad ISKONEX (se carga la última y manda sobre lo anterior)
   Lenguaje visual del portal iskonex.com: tipografía Archivo + JetBrains Mono,
   fondos limpios, bordes finos azul claro, botones con degradado azul,
   "píldoras" y héroe marino con red de puntos.
   ============================================================ */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100% 125%; font-display: swap;
  src: url(../assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../assets/fonts/jetbrains-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Paleta ISKONEX ── */
:root, [data-estilo] {
  --cielo: #08BDFF; --electrico: #0A7CFB; --profundo: #0B3FD0; --marino: #071A4A;
  --grad-isk: linear-gradient(135deg, #0A7CFB, #0B3FD0);
  --fondo: #F5F9FF; --superficie: #FFFFFF; --superficie-2: #EEF5FF;
  --vidrio: #FFFFFF; --vidrio-borde: #CFE0F7;
  --borde: #CFE0F7; --borde-suave: #CFE0F7;
  --texto: #0B1730; --texto-suave: #4A5B7A;
  --primario: #0A6AEA; --primario-hover: #0B3FD0; --primario-tinta: #FFFFFF;
  --foco: #0B3FD0; --enlace: #0A62DB;
  --malla-1: #F5F9FF; --malla-2: #F5F9FF; --malla-3: #F5F9FF; --malla-4: #F5F9FF;
  --blob-opacidad: 0;
  --sombra-1: 0 1px 2px rgba(7, 26, 74, .05);
  --sombra-2: 0 1px 2px rgba(7, 26, 74, .04), 0 14px 34px -20px rgba(10, 80, 200, .30);
  --sombra-3: 0 2px 4px rgba(7, 26, 74, .05), 0 24px 50px -24px rgba(10, 80, 200, .42);
  --sombra-boton: 0 10px 24px -10px rgba(10, 100, 250, .65);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --alto-boton: 2.9rem;
  --interletra: 0;
}
[data-estilo="ludico"] { --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --alto-boton: 3.2rem; }
[data-theme="dark"], [data-estilo][data-theme="dark"] {
  --fondo: #050B14; --superficie: #0A1730; --superficie-2: #0F2142;
  --vidrio: #0A1730; --vidrio-borde: rgba(120, 160, 255, .22);
  --borde: rgba(120, 160, 255, .22); --borde-suave: rgba(120, 160, 255, .22);
  --texto: #E8EEFB; --texto-suave: #9FB2D4;
  --primario: #3D8BFF; --primario-hover: #6FA6FF; --primario-tinta: #04102E;
  --foco: #08BDFF; --enlace: #6FB4FF;
  --malla-1: #050B14; --malla-2: #050B14; --malla-3: #050B14; --malla-4: #050B14;
  --sombra-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sombra-2: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 36px -20px rgba(0, 0, 0, .7);
  --sombra-3: 0 2px 4px rgba(0, 0, 0, .4), 0 26px 54px -24px rgba(0, 0, 0, .8);
  --sombra-boton: 0 10px 24px -10px rgba(10, 100, 250, .55);
}

/* ── Tipografía ── */
:root:not([data-font="dislexia"]), [data-estilo]:not([data-font="dislexia"]) {
  --fuente-titulo: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fuente-texto: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root, [data-estilo] { --fuente-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
body { font-size: 1.02rem; }
h1, h2, h3, h4 { font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; }
:root:not([data-font="dislexia"]) h1, :root:not([data-font="dislexia"]) h2, :root:not([data-font="dislexia"]) h3 { font-stretch: 108%; }
.eyebrow, .l-pill, .card--hero .chip, .topbar__nivel, .stat__etq {
  font-family: var(--fuente-mono); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: .72rem;
}

/* ── Fondo: limpio, sin manchas de colores ── */
.fondo__malla, .blob { display: none; }
body { background: var(--fondo); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% -10%, rgba(10, 124, 251, .10), transparent 70%),
    linear-gradient(var(--fondo), var(--fondo));
}
[data-theme="dark"] body::before { background: radial-gradient(60% 40% at 50% -10%, rgba(10, 124, 251, .18), transparent 70%), linear-gradient(var(--fondo), var(--fondo)); }

/* ── Botones: planos, esquinas suaves, degradado azul (como iskonex.com) ── */
html:root .btn {
  border-radius: 12px; font-family: var(--fuente-texto); font-weight: 700; font-size: .98rem; letter-spacing: .005em;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--bs) 90%, transparent);
  transition: transform .2s var(--suave), filter .2s, box-shadow .2s, background .2s;
}
html:root .btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
html:root .btn:active { transform: translateY(1px); box-shadow: none; }
html:root .btn--primary { background: var(--grad-isk); color: #fff; box-shadow: var(--sombra-boton); }
html:root .btn--suave { background: var(--superficie); border-color: var(--borde); color: var(--texto); box-shadow: none; }
html:root .btn--suave:hover { border-color: var(--electrico); color: var(--enlace); filter: none; }
html:root .btn--google { border-color: var(--borde); box-shadow: none; }
html:root .btn--sun { box-shadow: 0 10px 22px -12px rgba(255, 184, 0, .9); }
html:root .btn--mint { box-shadow: 0 10px 22px -12px rgba(8, 189, 255, .8); }
html:root .btn--sm { border-radius: 10px; }
html:root .btn--lg { font-size: 1.08rem; }

/* ── Tarjetas ── */
.card { border-radius: var(--r-lg); background: var(--superficie); border: 1px solid var(--borde); box-shadow: var(--sombra-2); }
.card--vidrio { background: var(--superficie); border-color: var(--borde); -webkit-backdrop-filter: none; backdrop-filter: none; }
.card--flota:hover { transform: translateY(-3px); border-color: var(--borde-fuerte, #A9C6EE); }
.card--hero, .l-hero {
  color: #fff; border: 0;
  background:
    url(../assets/img/red-puntos.svg) center / cover no-repeat,
    radial-gradient(60% 90% at 100% 0%, rgba(8, 189, 255, .32), transparent 60%),
    linear-gradient(135deg, #071A4A 0%, #0B2E8F 60%, #0B3FD0 130%);
  box-shadow: var(--sombra-3);
}
.l-hero { border-radius: 28px; box-shadow: 0 30px 80px -30px rgba(7, 26, 74, .6); }
.l-hero::after, .l-hero--foto::after { display: none; }
.l-hero h1 span { background: linear-gradient(100deg, #8EC1FF, #08BDFF 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-pill { background: rgba(255, 255, 255, .08); border-color: rgba(8, 189, 255, .45); color: #BFE6FF; }
.l-hero p { color: #C5D6F2; }
.l-cifras span { color: #9FB9E6; }
.l-hero .btn--sun { background: var(--grad-isk); color: #fff; box-shadow: 0 12px 28px -10px rgba(10, 124, 251, .9); border-color: rgba(255,255,255,.18); }

/* ── Barras: limpias, blancas, bordes finos ── */
.topbar {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 16px;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--sombra-2);
}
.sidebar, .bottomnav {
  background: var(--superficie); border: 1px solid var(--borde);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--sombra-2);
}
.nav-item { font-family: var(--fuente-texto); font-weight: 700; border-radius: 12px; }
.nav-item:hover { transform: none; background: var(--superficie-2); color: var(--enlace); }
.nav-item[aria-current="page"] { background: var(--grad-isk); color: #fff; box-shadow: 0 10px 22px -12px rgba(10, 100, 250, .8); }

/* ── Chips y detalles ── */
.chip { border-radius: 999px; }
:focus-visible { outline-color: var(--cielo); }

/* ── Héroes: marino con red de puntos (en todos los estilos por grado) ── */
html:root[data-estilo] .card--hero {
  color: #fff; border: 0;
  background:
    url(../assets/img/red-puntos.svg) center / cover no-repeat,
    radial-gradient(60% 90% at 100% 0%, rgba(8, 189, 255, .34), transparent 60%),
    linear-gradient(135deg, #071A4A 0%, #0B2E8F 60%, #0B3FD0 130%);
  box-shadow: var(--sombra-3);
}
html:root .card--hero::before, html:root .card--hero::after { display: none; }
html:root .card--hero .suave, html:root .card--hero p { color: rgba(226, 236, 255, .88); }
html:root .card--hero h1, html:root .card--hero h2 { color: #fff; }
html:root .card--hero .btn--sun, html:root .card--hero .btn--primary { background: var(--grad-isk); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: 0 12px 28px -10px rgba(10, 124, 251, .9); }
html:root .card--hero .btn--suave { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
html:root .card--hero .chip, html:root .card--hero .etiqueta { background: rgba(8, 189, 255, .14); border: 1px solid rgba(8, 189, 255, .45); color: #BFE6FF; }

/* ── Estadísticas ("tiles"): planas, con borde fino ── */
html:root .tile, html:root .inicio--ludico .tile {
  background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); border-radius: var(--r-lg);
  box-shadow: var(--sombra-2);
}
html:root .tile:hover { transform: translateY(-3px); border-color: #A9C6EE; box-shadow: var(--sombra-3); }
html:root .inicio--ludico .tile--racha, html:root .inicio--ludico .tile--ppm, html:root .inicio--ludico .tile--pre { background: var(--superficie); color: var(--texto); }
.tile__tit { font-family: var(--fuente-mono); font-size: .7rem; letter-spacing: .12em; }
.tile__num, .tile__medio { font-family: var(--fuente-titulo); font-weight: 800; font-stretch: 108%; }

/* ── Juegos: tarjetas blancas como las de producto de Iskonex ── */
html:root .juego-tarjeta {
  color: var(--texto); background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--r-lg);
  box-shadow: var(--sombra-2); gap: .55rem; align-items: flex-start;
}
html:root .juego-tarjeta::after { display: none; }
html:root .juego-tarjeta:hover { transform: translateY(-3px); border-color: var(--g1); box-shadow: 0 22px 44px -22px var(--g2); }
html:root .juego-tarjeta__ic { color: #fff; border-radius: 14px; background: linear-gradient(145deg, var(--g1), var(--g2)); backdrop-filter: none; box-shadow: 0 10px 20px -10px var(--g2); }
html:root .juego-tarjeta strong { font: 800 1.2rem var(--fuente-titulo); font-stretch: 108%; color: var(--texto); }
html:root .juego-tarjeta > span:not([class]) { color: var(--texto-suave); opacity: 1; }
html:root .juego-tarjeta__mejor { font-family: var(--fuente-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--enlace); opacity: 1; }
html:root .juego-tarjeta__jugar { background: transparent; border: 1px solid var(--borde); color: var(--enlace); font-weight: 700; border-radius: 999px; transition: .2s; }
html:root .juego-tarjeta:hover .juego-tarjeta__jugar { background: var(--grad-isk); color: #fff; border-color: transparent; }

/* Banner de duelos */
html:root .juego-duelo {
  border-radius: var(--r-lg); border: 0; color: #fff;
  background: url(../assets/img/red-puntos.svg) center / cover no-repeat, linear-gradient(135deg, #071A4A, #0B3FD0);
  box-shadow: var(--sombra-3);
}
html:root .juego-duelo__ic { border-radius: 14px; background: rgba(8, 189, 255, .18); border: 1px solid rgba(8, 189, 255, .4); }
html:root .juego-duelo__txt strong { font-weight: 800; font-stretch: 108%; }

/* El juego amarillo ya no cambia el color del texto: la tarjeta es blanca */
html:root .juego-tarjeta--sol, html:root .juego-tarjeta[style*="#FFD04A"] { color: var(--texto); }
html:root .juego-tarjeta--sol .juego-tarjeta__ic, html:root .juego-tarjeta[style*="#FFD04A"] .juego-tarjeta__ic { color: #fff; background: linear-gradient(145deg, var(--g1), var(--g2)); }

/* ── Lúdico (2.º–3.º): mismo lenguaje Iskonex, sin colinas, nubes ni globos de fondo ── */
html:root[data-estilo] .fondo::after, html:root[data-estilo] .nube, html:root[data-estilo] .blob, html:root[data-estilo] .blob::before { display: none; }
html:root[data-estilo="ludico"] h1::after { content: none; }
html:root[data-estilo] .inicio--ludico .tile,
html:root[data-estilo] .inicio--ludico .tile--racha, html:root[data-estilo] .inicio--ludico .tile--ppm, html:root[data-estilo] .inicio--ludico .tile--pre,
html:root[data-estilo][data-theme="dark"] .inicio--ludico .tile--racha, html:root[data-estilo][data-theme="dark"] .inicio--ludico .tile--ppm, html:root[data-estilo][data-theme="dark"] .inicio--ludico .tile--pre {
  background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); box-shadow: var(--sombra-2);
}
html:root[data-estilo] .inicio--ludico .tile .suave, html:root[data-estilo] .inicio--ludico .tile__tit, html:root[data-estilo] .inicio--ludico .tile__num small { color: var(--texto-suave); opacity: 1; }
html:root[data-estilo] .inicio--ludico .tile:nth-child(4), html:root[data-estilo][data-theme="dark"] .inicio--ludico .tile:nth-child(4) { background: var(--superficie); color: var(--texto); }
