:root {
  --bg: #ffffff;
  --panel: rgba(255, 255, 255, 0.82);
  --relleno: rgba(15, 23, 42, 0.04);
  --borde: rgba(15, 23, 42, 0.08);
  --borde-suave: rgba(15, 23, 42, 0.06);
  --anillo: rgba(15, 23, 42, 0.03);
  --sombra: 0 0 0 1px var(--anillo), 0 12px 36px rgba(15, 23, 42, 0.07);
  --titulo: #0e2b60;
  --texto: #0f172a;
  --suave: #5b6472;
  --real: #1f5fe0;
  --cian: #0fb3d9;
  --grad: linear-gradient(100deg, #1f5fe0 0%, #2b8cf0 45%, #0fb3d9 100%);
  --btn: linear-gradient(100deg, #1448c8 0%, #1f5fe0 50%, #1a6fe6 100%);
  --btn-h: linear-gradient(100deg, #1a52d6 0%, #2466ea 50%, #1d78ec 100%);
  --ico-bg: linear-gradient(135deg, rgba(31, 95, 224, 0.12), rgba(31, 200, 232, 0.18));
  --brillo-a: rgba(31, 200, 232, 0.2);
  --brillo-b: rgba(31, 95, 224, 0.14);
  --brillo-c: rgba(43, 140, 240, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --aviso-bg: rgba(217, 119, 6, 0.06);
  --aviso-borde: rgba(217, 119, 6, 0.22);
  --aviso: #b45309;
  --ok: #16a34a;
  --foco: #1f5fe0;
  --ancho: 1240px;
  --margen: clamp(16px, 3vw, 24px);
  --nav-alto: 60px;
  --sans: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marca: "Nunito", "Titillium Web", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #000000;
  --panel: rgba(20, 20, 23, 0.78);
  --relleno: rgba(255, 255, 255, 0.05);
  --borde: rgba(255, 255, 255, 0.09);
  --borde-suave: rgba(255, 255, 255, 0.06);
  --anillo: rgba(255, 255, 255, 0.03);
  --sombra: 0 0 0 1px var(--anillo);
  --titulo: #f2f6fc;
  --texto: #e7e9ee;
  --suave: #9a9aa2;
  --real: #4d8bff;
  --cian: #22d3ee;
  --grad: linear-gradient(100deg, #3b7bff 0%, #3d9bff 40%, #22d3ee 100%);
  --ico-bg: linear-gradient(135deg, rgba(59, 123, 255, 0.2), rgba(34, 211, 238, 0.2));
  --brillo-a: rgba(34, 211, 238, 0.13);
  --brillo-b: rgba(59, 123, 255, 0.14);
  --brillo-c: rgba(31, 95, 224, 0.1);
  --nav-bg: rgba(0, 0, 0, 0.74);
  --aviso-bg: rgba(251, 191, 36, 0.06);
  --aviso-borde: rgba(251, 191, 36, 0.2);
  --aviso: #fbbf24;
  --ok: #4ade80;
  --foco: #22d3ee;
  color-scheme: dark;
}

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

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

html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--texto);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--marca);
  color: var(--titulo);
}

code {
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--texto);
  word-break: break-all;
}

:focus-visible {
  outline: 2.5px solid var(--foco);
  outline-offset: 3px;
  border-radius: 8px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
}

.saltar {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn);
  color: #ffffff;
  font-weight: 700;
  transition: top 0.2s;
}

.saltar:focus {
  top: 12px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.barra {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--borde);
  transition: box-shadow 0.3s;
}

.barra.con-sombra {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .barra.con-sombra {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.barra-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-alto);
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--marca);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--titulo);
}

.marca img {
  width: 28px;
  height: 28px;
}

.marca b,
.heroe h1 span {
  font-weight: 800;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: brillo 7s ease-in-out infinite;
}

@keyframes brillo {
  50% {
    background-position: 100% 0;
  }
}

.menu {
  display: flex;
  gap: 4px;
}

.menu a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--suave);
  transition: color 0.2s, background-color 0.2s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: left 0.3s var(--curva), right 0.3s var(--curva);
}

.menu a:hover {
  color: var(--titulo);
  background: var(--relleno);
}

.menu a.activo {
  color: var(--real);
}

[data-theme="dark"] .menu a.activo {
  color: var(--cian);
}

.menu a.activo::after {
  left: 14px;
  right: 14px;
}

.acciones {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tema {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  color: var(--titulo);
  transition: transform 0.4s var(--curva), border-color 0.2s, background-color 0.2s;
}

.btn-tema:hover {
  background: var(--relleno);
  border-color: var(--real);
  transform: rotate(18deg);
}

.btn-tema:active {
  transform: scale(0.9);
}

.btn-tema svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.tema-nucleo,
.tema-corte,
.tema-rayos {
  transform-origin: center;
  transition: transform 0.6s var(--curva), opacity 0.35s, color 0.35s;
}

.tema-nucleo,
.tema-corte {
  transform-box: fill-box;
}

.tema-nucleo,
.tema-rayos {
  color: #f59e0b;
}

.tema-rayos {
  transform-box: view-box;
}

.tema-corte {
  transform: translate(9px, -9px);
}

[data-theme="dark"] .tema-nucleo {
  color: var(--titulo);
  transform: scale(1.7);
}

[data-theme="dark"] .tema-corte {
  transform: none;
}

[data-theme="dark"] .tema-rayos {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}

.btn-menu {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--borde);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.btn-menu span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--titulo);
  transition: transform 0.3s var(--curva);
}

.menu-abierto .btn-menu span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-abierto .btn-menu span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.progreso {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s, border-color 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primario {
  color: #ffffff;
  background: var(--btn);
  box-shadow: 0 8px 24px rgba(31, 95, 224, 0.34), 0 2px 6px rgba(31, 200, 232, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px rgba(10, 30, 90, 0.25);
}

.btn-primario::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-primario:hover {
  background: var(--btn-h);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(31, 95, 224, 0.42), 0 4px 14px rgba(31, 200, 232, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-destello::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: destello 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes destello {
  0%, 70% { left: -60%; }
  100% { left: 130%; }
}

.btn-chip {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--titulo);
  background: var(--relleno);
  border: 1px solid var(--borde);
}

.btn-chip:hover {
  border-color: var(--real);
  color: var(--real);
}

[data-theme="dark"] .btn-chip:hover {
  border-color: var(--cian);
  color: var(--cian);
}

.btn-nav {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 999px;
}

.btn-grande {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.vidrio {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 18px;
  box-shadow: var(--sombra);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.heroe {
  position: relative;
  padding-block: 32px 24px;
}

.heroe::before {
  content: "";
  position: absolute;
  inset: -60px -10vw auto;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 12% 20%, var(--brillo-a), transparent 70%),
    radial-gradient(35% 50% at 55% 10%, var(--brillo-b), transparent 70%),
    radial-gradient(40% 60% at 90% 40%, var(--brillo-c), transparent 70%);
  animation: resplandor 14s ease-in-out infinite alternate;
}

@keyframes resplandor {
  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.06);
  }
}

.heroe-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.heroe-izq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.identidad {
  display: flex;
  align-items: center;
  gap: 22px;
}

.identidad img {
  width: 88px;
  height: 88px;
  flex: none;
  filter: drop-shadow(0 14px 30px rgba(31, 95, 224, 0.32)) drop-shadow(0 4px 12px rgba(31, 200, 232, 0.35));
  animation: flotar 6s ease-in-out infinite;
}

@keyframes flotar {
  50% {
    transform: translateY(-6px);
  }
}

.heroe h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.lema {
  margin-top: 6px;
  font-family: var(--marca);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--cian);
}

.heroe-desc {
  margin-top: 14px;
  max-width: 680px;
  font-size: 1.06rem;
  color: var(--suave);
}

.pestanas {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  background: var(--relleno);
  border: 1px solid var(--borde);
}

.pestanas-deslizador {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: 0 0 0 1.5px rgba(31, 95, 224, 0.35), 0 6px 18px rgba(31, 200, 232, 0.22);
  transition: transform 0.35s var(--curva), width 0.35s var(--curva);
}

[data-theme="dark"] .pestanas-deslizador {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.45), 0 6px 18px rgba(34, 211, 238, 0.18);
}

.pestana {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--suave);
  transition: color 0.2s;
}

.pestana .ico {
  width: 16px;
  height: 16px;
}

.pestana:hover {
  color: var(--titulo);
}

.pestana[aria-selected="true"] {
  color: var(--real);
}

[data-theme="dark"] .pestana[aria-selected="true"] {
  color: var(--cian);
}

.plataforma {
  flex: 1;
  padding: 30px 32px;
}

.plataforma-cab {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.plataforma h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.insignia {
  flex: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--suave);
  background: var(--relleno);
  border: 1px solid var(--borde);
}

.plataforma-desc {
  margin-bottom: 22px;
  color: var(--suave);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.cta-meta {
  display: flex;
  gap: 22px;
  font-size: 0.86rem;
  color: var(--suave);
}

.cta-meta strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--titulo);
}

.alternativa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--suave);
}

.alternativa[hidden] {
  display: none;
}

.instalar {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--borde-suave);
}

.rotulo {
  display: block;
  margin-bottom: 12px;
  font-family: var(--marca);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--suave);
}

.pasos {
  list-style: none;
  counter-reset: paso;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pasos li {
  counter-increment: paso;
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--relleno);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--suave);
  min-width: 0;
}

.pasos li::before {
  content: counter(paso);
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--btn);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(31, 95, 224, 0.3);
}

.pasos b {
  font-weight: 600;
  color: var(--titulo);
}

.nota {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--aviso-bg);
  border: 1px solid var(--aviso-borde);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--suave);
}

.nota .ico {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--aviso);
}

.nota b {
  font-weight: 600;
  color: var(--titulo);
}

.entra {
  animation: entra 0.45s var(--curva) both;
}

@keyframes entra {
  from {
    opacity: 0;
    transform: translateX(var(--desde, 14px));
  }
}

.archivos {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  min-width: 0;
}

.archivos h2 {
  font-size: 1rem;
  font-weight: 800;
}

.ficha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ficha div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--relleno);
}

.ficha .ancho {
  grid-column: 1 / -1;
}

.ficha dt,
.comando span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--suave);
}

.ficha dd {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--titulo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lista {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--borde);
  border-radius: 12px;
  overflow: hidden;
}

.fila {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--borde);
  transition: background-color 0.2s, box-shadow 0.3s;
}

.fila:first-child {
  border-top: 0;
}

.fila:hover,
.fila.actual {
  background: var(--relleno);
}

.fila.actual {
  box-shadow: inset 3px 0 0 var(--real);
}

[data-theme="dark"] .fila.actual {
  box-shadow: inset 3px 0 0 var(--cian);
}

.fila-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ico-bg);
  color: var(--real);
}

[data-theme="dark"] .fila-ico {
  color: var(--cian);
}

.fila-ico .ico {
  width: 16px;
  height: 16px;
}

.fila-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fila-cab {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fila-cab b {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--titulo);
  white-space: nowrap;
}

.peso {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--ico-bg);
  color: var(--real);
}

[data-theme="dark"] .peso {
  color: var(--cian);
}

.fila-nombre,
.hash {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--suave);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hash {
  text-align: left;
  opacity: 0.8;
}

.hash.completo {
  white-space: normal;
  word-break: break-all;
  opacity: 1;
  color: var(--titulo);
}

.fila-acc {
  display: flex;
  gap: 6px;
}

.icono-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--borde);
  color: var(--suave);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icono-btn .ico {
  width: 15px;
  height: 15px;
}

.icono-btn:hover {
  color: var(--titulo);
  background: var(--relleno);
}

a.icono-btn[download]:hover {
  color: #ffffff;
  background: var(--btn);
  border-color: transparent;
}

.icono-btn.hecho {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
}

.comandos {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--relleno);
}

.comando {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.comando div {
  flex: 1;
  min-width: 0;
}

.comando span {
  display: block;
}

.comando code {
  display: block;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow-x: auto;
  word-break: normal;
  scrollbar-width: none;
}

.comandos a {
  font-size: 0.78rem;
  color: var(--suave);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comandos a:hover {
  color: var(--real);
}

.seccion {
  padding-block: 44px;
}

.encabezado {
  margin-bottom: 22px;
}

.ceja {
  font-family: var(--marca);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.encabezado h2 {
  margin-top: 4px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.encabezado p {
  max-width: 620px;
  margin-top: 8px;
  color: var(--suave);
}

.rejilla {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tarjeta {
  padding: 26px 24px;
  border-radius: 16px;
  transition: transform 0.35s var(--curva), box-shadow 0.35s, border-color 0.35s;
}

.tarjeta:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 200, 232, 0.5);
  box-shadow: 0 14px 40px rgba(31, 95, 224, 0.16);
}

.tarjeta-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--ico-bg);
  color: var(--real);
}

[data-theme="dark"] .tarjeta-ico {
  color: var(--cian);
}

.tarjeta-ico .ico {
  width: 22px;
  height: 22px;
}

.tarjeta h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tarjeta p {
  font-size: 0.95rem;
  color: var(--suave);
}

.simulador {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
  padding: 36px;
}

.simulador .encabezado {
  margin-bottom: 0;
}

.sim-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.sim-botones .btn-primario {
  padding: 12px 24px;
}

.sim-botones .btn-chip {
  padding: 11px 20px;
}

.papel {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.papel-cab {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e9f0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #5b6472;
}

.papel-cab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.papel-cab strong {
  flex: none;
  color: #1f5fe0;
}

.renglon {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #e9edf3;
}

.firmas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.firma {
  position: relative;
  max-width: 270px;
  padding: 7px 10px;
  border: 1.5px solid #0f172a;
  border-radius: 3px;
  background: #ffffff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.66rem;
  line-height: 1.35;
  animation: cae 0.45s var(--curva) both;
}

.firma em {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.6rem;
  background: #e0f2fe;
  color: #0369a1;
}

@keyframes cae {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.preguntas {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 36px;
  align-items: start;
}

.preguntas .encabezado {
  position: sticky;
  top: calc(var(--nav-alto) + 24px);
}

.acordeon {
  display: grid;
  gap: 10px;
}

.item {
  border-radius: 14px;
}

.item-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  text-align: left;
  font-family: var(--marca);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--titulo);
}

.item-btn .ico {
  width: 16px;
  height: 16px;
  color: var(--cian);
  transition: transform 0.3s var(--curva);
}

.item.abierto .item-btn .ico {
  transform: rotate(45deg);
}

.item-cuerpo {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--curva);
}

.item.abierto .item-cuerpo {
  grid-template-rows: 1fr;
}

.item-cuerpo > div {
  overflow: hidden;
}

.item-cuerpo p {
  padding: 0 20px 16px;
  font-size: 0.95rem;
  color: var(--suave);
}

.item-cuerpo a {
  color: var(--real);
}

.pie {
  margin-top: 24px;
  padding-block: 44px 22px;
  border-top: 1px solid var(--borde);
  color: var(--suave);
}

.pie-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pie-marca p {
  max-width: 320px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.pie-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.pie-col h4 {
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pie-col a {
  width: fit-content;
  transition: color 0.2s, transform 0.2s;
}

.pie-col a:hover {
  color: var(--titulo);
  transform: translateX(3px);
}

.pie-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--borde);
  font-size: 0.82rem;
}

.aviso {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--titulo);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--curva);
}

.aviso .ico {
  color: var(--ok);
}

.aviso.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.aparece {
  animation: aparece 0.8s var(--curva) both;
  animation-delay: var(--d, 0ms);
}

@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--curva), transform 0.7s var(--curva);
  transition-delay: var(--d, 0ms);
}

.revelar.visto {
  opacity: 1;
  transform: none;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

@media (max-width: 1100px) {
  .rejilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .heroe-rejilla,
  .simulador,
  .preguntas {
    grid-template-columns: minmax(0, 1fr);
  }

  .preguntas .encabezado {
    position: static;
  }

  .pie-rejilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .btn-menu {
    display: flex;
  }

  .barra-cta {
    display: none;
  }

  .menu {
    position: absolute;
    top: var(--nav-alto);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px var(--margen) 16px;
    background: var(--nav-bg);
    backdrop-filter: saturate(170%) blur(16px);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    border-bottom: 1px solid var(--borde);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .menu-abierto .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu a {
    padding: 12px;
    font-size: 0.95rem;
  }

  .menu a.activo::after {
    left: 12px;
    right: auto;
    width: 24px;
  }
}

@media (max-width: 680px) {
  .identidad {
    gap: 14px;
  }

  .identidad img {
    width: 62px;
    height: 62px;
  }

  .heroe h1 {
    font-size: clamp(2rem, 10.5vw, 2.8rem);
  }

  .heroe-desc {
    font-size: 1rem;
  }

  .pestanas {
    display: flex;
    align-self: stretch;
  }

  .pestana {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 6px;
  }

  .plataforma {
    padding: 22px 18px;
  }

  .plataforma-cab {
    flex-wrap: wrap;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  .pasos {
    grid-template-columns: minmax(0, 1fr);
  }

  .archivos {
    padding: 18px 14px;
  }

  .rejilla {
    grid-template-columns: minmax(0, 1fr);
  }

  .simulador {
    gap: 24px;
    padding: 22px 18px;
  }

  .item-btn {
    padding: 14px 16px;
  }

  .item-cuerpo p {
    padding: 0 16px 14px;
  }
}

@media (max-width: 520px) {
  .pie-rejilla {
    grid-template-columns: minmax(0, 1fr);
  }

  .pie-base {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .revelar {
    opacity: 1;
    transform: none;
  }
}
