:root {
  --fondo: #ffffff;
  --superficie: #ffffff;
  --superficie-2: #f5f6f8;
  --superficie-3: #eceef2;
  --borde: #e6e8ec;
  --borde-fuerte: #c8ccd4;
  --texto: #15181e;
  --texto-suave: #5b6270;
  --texto-tenue: #8b919c;
  --enlace: #0b6f9e;
  --acento: #0b6f9e;
  --acento-fondo: #e8f3f9;
  --foco: rgba(11, 111, 158, 0.28);

  --primario: #27365e;
  --primario-hover: #1f2c4d;
  --primario-texto: #ffffff;

  --exito: #1f7a46;
  --exito-fondo: #e9f6ee;
  --error: #b42318;
  --error-fondo: #fdecea;
  --aviso: #8a5a00;
  --aviso-fondo: #fff5dc;
  --info: #0b5f86;
  --info-fondo: #e8f3f9;

  --sombra: 0 6px 20px rgba(21, 24, 30, 0.08), 0 1px 2px rgba(21, 24, 30, 0.05);
  --radio: 10px;
  --radio-chico: 8px;
  --ancho: 1040px;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fuente-codigo: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0f1115;
    --superficie: #14171c;
    --superficie-2: #1a1e25;
    --superficie-3: #22272f;
    --borde: #262b33;
    --borde-fuerte: #3b424d;
    --texto: #e8eaee;
    --texto-suave: #a3a9b4;
    --texto-tenue: #737a86;
    --enlace: #6fbfea;
    --acento: #6fbfea;
    --acento-fondo: #15283a;
    --foco: rgba(111, 191, 234, 0.32);

    --primario: #e8eaee;
    --primario-hover: #ffffff;
    --primario-texto: #0f1115;

    --exito: #5fcf8f;
    --exito-fondo: #11291b;
    --error: #ff8f85;
    --error-fondo: #371713;
    --aviso: #f4c86a;
    --aviso-fondo: #332709;
    --info: #7fcdf4;
    --info-fondo: #10283a;

    --sombra: 0 8px 24px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  outline: none;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--texto);
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

h1[tabindex]:focus {
  outline: none;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--enlace);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--texto);
}

code {
  font-family: var(--fuente-codigo);
}

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

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

.saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--primario);
  color: var(--primario-texto);
  border-radius: var(--radio-chico);
  font-weight: 500;
  text-decoration: none;
}

.saltar:focus {
  top: 12px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 720px) {
  .contenedor {
    padding: 0 32px;
  }
}

.columna {
  max-width: 800px;
}

.encabezado {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fondo);
  border-bottom: 1px solid var(--borde);
}

.encabezado__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  text-decoration: none;
}

.marca img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.marca__nombre {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.menu-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: var(--radio-chico);
  background: transparent;
  color: var(--texto);
  cursor: pointer;
}

.menu-boton:hover {
  background: var(--superficie-2);
}

.menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 10px 16px 16px;
  background: var(--fondo);
  border-bottom: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.menu.abierto {
  display: block;
}

.menu ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a,
.menu button.menu__enlace {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radio-chico);
  background: transparent;
  color: var(--texto-suave);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.12s, background 0.12s;
}

.menu a:hover,
.menu button.menu__enlace:hover {
  color: var(--texto);
  background: var(--superficie-2);
}

.menu a[aria-current="page"] {
  color: var(--texto);
  background: var(--superficie-2);
}

.menu a.menu__destacado,
.menu button.menu__destacado {
  justify-content: center;
  margin-top: 6px;
  background: var(--primario);
  color: var(--primario-texto);
}

.menu a.menu__destacado:hover,
.menu button.menu__destacado:hover {
  background: var(--primario-hover);
  color: var(--primario-texto);
}

@media (min-width: 960px) {
  .menu-boton {
    display: none;
  }

  .menu {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .menu ul {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .menu a,
  .menu button.menu__enlace {
    width: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .menu a[aria-current="page"] {
    background: transparent;
  }

  .menu a.menu__destacado,
  .menu button.menu__destacado {
    min-height: 34px;
    margin: 0 0 0 10px;
    padding: 0 14px;
  }
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--primario);
  border-radius: var(--radio-chico);
  background: var(--primario);
  color: var(--primario-texto);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.boton:hover {
  background: var(--primario-hover);
  border-color: var(--primario-hover);
  color: var(--primario-texto);
  text-decoration: none;
}

.boton[disabled],
.boton[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.boton--secundario {
  background: var(--superficie);
  color: var(--texto);
  border-color: var(--borde-fuerte);
}

.boton--secundario:hover {
  background: var(--superficie-2);
  border-color: var(--borde-fuerte);
  color: var(--texto);
}

.boton--texto {
  background: transparent;
  border-color: transparent;
  color: var(--texto-suave);
}

.boton--texto:hover {
  background: var(--superficie-2);
  border-color: transparent;
  color: var(--texto);
}

.boton--enlace {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--enlace);
  font-size: 0.875rem;
  font-weight: 500;
}

.boton--enlace:hover {
  background: transparent;
  color: var(--texto);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.boton--chico {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.875rem;
}

.boton--peligro {
  background: transparent;
  color: var(--error);
  border-color: var(--error);
}

.boton--peligro:hover {
  background: var(--error-fondo);
  border-color: var(--error);
  color: var(--error);
}

.boton--borrar {
  background: transparent;
  border-color: transparent;
  color: var(--texto-suave);
}

.boton--borrar:hover {
  background: var(--error-fondo);
  border-color: transparent;
  color: var(--error);
}

.boton svg,
.icono {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.heroe {
  border-bottom: 1px solid var(--borde);
}

.heroe__contenido {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .heroe__contenido {
    grid-template-columns: 1.25fr 0.75fr;
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

.heroe h1 {
  max-width: 14em;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.heroe h1 em {
  font-style: normal;
  color: var(--acento);
}

.heroe__entradilla {
  max-width: 32em;
  margin-bottom: 28px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--texto-suave);
}

.sobretitulo {
  display: block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-tenue);
}

.heroe__marca {
  justify-self: center;
  width: min(100%, 340px);
}

.heroe__marca img {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  .heroe__marca {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.chips li + li::before {
  content: "·";
  margin: 0 10px;
  color: var(--texto-tenue);
}

.seccion {
  padding: 64px 0;
}

@media (min-width: 720px) {
  .seccion {
    padding: 88px 0;
  }
}

.seccion--alterna {
  background: var(--superficie-2);
  border-block: 1px solid var(--borde);
}

.seccion__cabecera {
  max-width: 40em;
  margin-bottom: 40px;
}

.seccion__cabecera h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.seccion__cabecera p {
  font-size: 1.05rem;
  color: var(--texto-suave);
}

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

.rejilla--dos {
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-items: start;
}

.rejilla--dos h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.rejilla--dos > div > p {
  color: var(--texto-suave);
}

.tarjeta {
  padding: 22px 24px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--superficie);
}

.tarjeta h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.tarjeta h3 {
  margin-bottom: 0.35em;
}

.tarjeta p:last-child {
  margin-bottom: 0;
}

.tarjeta > p,
.tarjeta li {
  color: var(--texto-suave);
}

.tarjeta__icono {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: var(--radio-chico);
  background: var(--acento-fondo);
  color: var(--acento);
}

.tarjeta__icono svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pasos {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.pasos li {
  padding-top: 16px;
  border-top: 1px solid var(--borde-fuerte);
  counter-increment: paso;
}

.pasos li::before {
  content: counter(paso, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--fuente-codigo);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--texto-tenue);
}

.pasos h3 {
  margin-bottom: 0.4em;
}

.pasos p {
  margin: 0;
  color: var(--texto-suave);
}

.banda {
  padding: 0 0 88px;
}

.banda .contenedor {
  padding-top: 56px;
  padding-bottom: 56px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--superficie-2);
  text-align: center;
}

@media (max-width: 719px) {
  .banda {
    padding: 0 16px 64px;
  }
}

.banda h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.banda p {
  max-width: 34em;
  margin: 0 auto 24px;
  color: var(--texto-suave);
}

.banda .botones {
  justify-content: center;
}

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

.lista-marcas {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.lista-marcas li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--texto-suave);
}

.lista-marcas svg {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.3em;
  flex: none;
  stroke: var(--exito);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lista-marcas--pendiente svg {
  stroke: var(--texto-tenue);
}

.lista-marcas + p {
  margin-top: 16px;
  font-size: 0.875rem;
}

.pagina {
  padding-block: 48px 80px;
}

.pagina__cabecera {
  max-width: 42em;
  margin-bottom: 40px;
}

.pagina__cabecera p {
  font-size: 1.05rem;
  color: var(--texto-suave);
}

.grupo {
  margin-bottom: 56px;
}

.grupo > h2 {
  margin-bottom: 8px;
}

.definiciones {
  display: grid;
  margin: 0;
}

.definiciones > div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--borde);
}

@media (min-width: 720px) {
  .definiciones > div {
    grid-template-columns: 15em 1fr;
    gap: 24px;
  }
}

.definiciones dt {
  font-weight: 500;
}

.definiciones dd {
  margin: 0;
  color: var(--texto-suave);
}

.tabla-simple {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
}

.tabla-simple th,
.tabla-simple td {
  padding: 12px 12px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--borde);
}

.tabla-simple th {
  padding-top: 6px;
  padding-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-tenue);
}

.tabla-simple td {
  color: var(--texto);
}

.tabla-simple td strong {
  font-weight: 500;
}

.tabla-simple--apilada td::before {
  display: none;
}

@media (max-width: 719px) {
  .tabla-simple--apilada thead {
    position: absolute;
    left: -9999px;
  }

  .tabla-simple--apilada,
  .tabla-simple--apilada tbody,
  .tabla-simple--apilada tr,
  .tabla-simple--apilada td {
    display: block;
    width: 100%;
  }

  .tabla-simple--apilada tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--borde);
  }

  .tabla-simple--apilada td {
    display: grid;
    grid-template-columns: 8em 1fr;
    gap: 8px;
    padding: 4px 0;
    border: 0;
  }

  .tabla-simple--apilada td::before {
    display: block;
    content: attr(data-rotulo);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--texto-tenue);
  }
}

.formulario {
  display: grid;
  gap: 16px;
}

.formulario--angosto {
  max-width: 480px;
}

.campo {
  display: grid;
  gap: 6px;
}

.campo label,
.campo__rotulo {
  font-size: 0.875rem;
  font-weight: 500;
}

.campo__rotulo {
  margin: 0 0 6px;
}

.campo__ayuda {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--texto-suave);
}

.campo__opcional {
  font-weight: 400;
  color: var(--texto-tenue);
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="password"],
.campo input[type="number"],
.campo input[type="search"],
.campo textarea,
.campo select {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio-chico);
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: var(--texto-tenue);
}

.campo textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px var(--foco);
}

.campo input[disabled],
.campo textarea[disabled] {
  background: var(--superficie-2);
  color: var(--texto-tenue);
  cursor: not-allowed;
}

.campo--error input,
.campo--error textarea {
  border-color: var(--error);
}

.campo--error input:focus,
.campo--error textarea:focus {
  box-shadow: 0 0 0 3px var(--error-fondo);
}

.campo__error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error);
}

.campo--casilla {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.campo--casilla input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--primario);
}

.campo--casilla label {
  font-weight: 400;
  font-size: 0.9rem;
}

.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contrasena {
  position: relative;
}

.contrasena input {
  padding-right: 84px !important;
}

.contrasena button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--enlace);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.contrasena button:hover {
  background: var(--superficie-2);
  color: var(--texto);
}

.contrasena input[disabled] + button {
  display: none;
}

.alerta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radio-chico);
  font-size: 0.9rem;
  line-height: 1.5;
}

.alerta svg {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alerta p {
  margin: 0;
}

.alerta p + p {
  margin-top: 0.5em;
}

.alerta--info {
  background: var(--info-fondo);
  color: var(--info);
}

.alerta--exito {
  background: var(--exito-fondo);
  color: var(--exito);
}

.alerta--error {
  background: var(--error-fondo);
  color: var(--error);
}

.alerta--aviso {
  background: var(--aviso-fondo);
  color: var(--aviso);
}

.alerta p,
.alerta strong {
  color: inherit;
}

.alerta a {
  color: inherit;
}

.avisos {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(400px, calc(100vw - 32px));
}

.avisos .alerta {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 10px 10px 14px;
  border-color: var(--borde);
  background: var(--superficie);
  color: var(--texto);
  box-shadow: var(--sombra);
}

.avisos .alerta--info svg {
  color: var(--info);
}

.avisos .alerta--exito svg {
  color: var(--exito);
}

.avisos .alerta--error svg,
.avisos .alerta--aviso svg {
  color: var(--error);
}

.avisos .alerta--aviso svg {
  color: var(--aviso);
}

.avisos .alerta .boton {
  min-height: 30px;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  color: var(--texto-tenue);
}

.avisos .alerta .boton:hover {
  background: var(--superficie-2);
  color: var(--texto);
}

.acceso {
  display: grid;
  place-items: start center;
  padding-block: 56px 80px;
}

.acceso__tarjeta {
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie);
}

.acceso__tarjeta h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.acceso__tarjeta > p {
  color: var(--texto-suave);
}

.pestanas {
  display: flex;
  gap: 20px;
  margin: 20px 0 22px;
  border-bottom: 1px solid var(--borde);
}

.pestanas button {
  margin-bottom: -1px;
  padding: 6px 2px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--texto-suave);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.pestanas button:hover {
  color: var(--texto);
}

.pestanas button[aria-selected="true"] {
  color: var(--texto);
  border-bottom-color: var(--texto);
}

.progreso {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-chico);
  background: var(--superficie-2);
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.progreso__barra {
  height: 4px;
  border-radius: 99px;
  background: var(--borde);
  overflow: hidden;
}

.progreso__barra > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acento);
  transition: width 0.12s linear;
}

.enlace-secundario {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--texto-suave);
  text-align: center;
}

.fuerza {
  margin: -6px 0 0;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.fuerza[data-nivel="ok"] {
  color: var(--exito);
}

.fuerza[data-nivel="mal"] {
  color: var(--error);
}

.cabecera-vista {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--borde);
}

.cabecera-vista > div {
  max-width: 44em;
}

.cabecera-vista h1 {
  margin-bottom: 6px;
}

.cabecera-vista p {
  margin: 0;
  color: var(--texto-suave);
}

.herramientas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.herramientas .campo {
  flex: 1 1 240px;
  max-width: 360px;
}

.sub-pestanas {
  display: inline-flex;
  gap: 18px;
  margin-bottom: -21px;
}

.sub-pestanas a {
  display: inline-flex;
  align-items: center;
  padding: 8px 2px 18px;
  border-bottom: 2px solid transparent;
  color: var(--texto-suave);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.12s, border-color 0.12s;
}

.sub-pestanas a:hover {
  color: var(--texto);
}

.sub-pestanas a[aria-current="page"] {
  color: var(--texto);
  border-bottom-color: var(--texto);
}

.equipos {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.equipo {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--superficie);
  color: var(--texto);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}

.equipo:hover {
  border-color: var(--borde-fuerte);
  background: var(--superficie-2);
  color: var(--texto);
}

.equipo__nombre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

.equipo__datos {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.equipo__datos strong {
  color: var(--texto);
  font-weight: 500;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--superficie-2);
  color: var(--texto-suave);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.etiqueta--gris {
  background: var(--superficie-2);
  color: var(--texto-suave);
}

.etiqueta--exito {
  border-color: transparent;
  background: var(--exito-fondo);
  color: var(--exito);
}

.etiqueta--aviso {
  border-color: transparent;
  background: var(--aviso-fondo);
  color: var(--aviso);
}

.etiqueta--error {
  border-color: transparent;
  background: var(--error-fondo);
  color: var(--error);
}

.migas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.migas a {
  color: var(--texto-suave);
  text-decoration: none;
}

.migas a:hover {
  color: var(--texto);
  text-decoration: underline;
}

.migas li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--texto-tenue);
}

.migas [aria-current="page"] {
  color: var(--texto);
}

.vacio {
  padding: 48px 24px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  text-align: center;
  color: var(--texto-suave);
}

.vacio h2,
.vacio h3 {
  font-size: 1.1rem;
  color: var(--texto);
}

.vacio p:last-of-type {
  margin-bottom: 0;
}

.vacio p + .boton,
.vacio .botones {
  margin-top: 16px;
}

.vacio .botones {
  justify-content: center;
}

.vacio svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  stroke: var(--texto-tenue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cargando {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.cargando::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--borde);
  border-top-color: var(--texto-suave);
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.equipo-vista {
  display: grid;
  gap: 24px;
}

@media (min-width: 980px) {
  .equipo-vista {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }
}

.versiones {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 70vh;
  overflow: auto;
}

.version {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radio-chico);
  background: transparent;
  color: var(--texto);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.version:hover {
  background: var(--superficie-2);
}

.version[aria-current="true"] {
  background: var(--superficie-2);
  border-color: var(--borde-fuerte);
}

.version__fecha {
  font-weight: 500;
}

.version__detalle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.visor {
  min-width: 0;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--superficie);
  overflow: hidden;
}

.visor__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--borde);
}

.visor__cabecera h2 {
  margin: 0;
  font-size: 1rem;
}

.visor__cabecera p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.visor__cuerpo {
  padding: 0;
}

.visor__aviso {
  padding: 16px;
}

.codigo {
  display: block;
  max-height: 68vh;
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  background: var(--superficie);
  color: var(--texto);
  font-family: var(--fuente-codigo);
  font-size: 0.8125rem;
  line-height: 1.6;
  tab-size: 4;
  white-space: pre;
}

.codigo--ajustar {
  white-space: pre-wrap;
  word-break: break-word;
}

.tarjeta .codigo {
  margin: 12px 0 16px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-chico);
  background: var(--superficie-2);
}

.diff {
  max-height: 68vh;
  overflow: auto;
  font-family: var(--fuente-codigo);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.diff__linea {
  display: grid;
  grid-template-columns: 4em 1fr;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff__numero {
  padding: 0 8px;
  text-align: right;
  user-select: none;
  color: var(--texto-tenue);
  background: var(--superficie-2);
}

.diff__texto {
  padding: 0 12px;
}

.diff__linea--mas {
  background: var(--exito-fondo);
}

.diff__linea--mas .diff__texto::before {
  content: "+ ";
  color: var(--exito);
  font-weight: 700;
}

.diff__linea--menos {
  background: var(--error-fondo);
}

.diff__linea--menos .diff__texto::before {
  content: "− ";
  color: var(--error);
  font-weight: 700;
}

.diff__linea--igual .diff__texto::before {
  content: "  ";
}

.diff__plegado {
  display: block;
  width: 100%;
  padding: 6px 12px;
  border: 0;
  border-block: 1px dashed var(--borde);
  background: var(--superficie-2);
  color: var(--enlace);
  font: inherit;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}

.diff__resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--borde);
  font-family: var(--fuente);
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.diff__resumen .mas {
  color: var(--exito);
  font-weight: 600;
}

.diff__resumen .menos {
  color: var(--error);
  font-weight: 600;
}

.descarga {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.descarga__principal {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--superficie);
}

.descarga__datos {
  display: grid;
  gap: 2px;
  margin: 0;
}

.descarga__datos dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-tenue);
}

.descarga__datos dd {
  margin: 0 0 12px;
}

.descarga__datos dd strong {
  font-weight: 600;
}

.huella {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.huella code {
  padding: 5px 8px;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--superficie-2);
  font-size: 0.8rem;
  word-break: break-all;
}

.notas {
  white-space: pre-wrap;
}

.cuenta {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.datos {
  display: grid;
  margin: 0;
}

.datos > div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--borde);
}

@media (min-width: 640px) {
  .datos > div {
    grid-template-columns: 13em 1fr;
    gap: 16px;
  }
}

.datos dt {
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.datos dd {
  margin: 0;
  word-break: break-word;
}

.tarjeta .datos + .botones {
  margin-top: 20px;
}

.codigo-alta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}

.codigo-alta code {
  padding: 8px 12px;
  border: 1px dashed var(--borde-fuerte);
  border-radius: var(--radio-chico);
  background: var(--superficie-2);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  word-break: break-all;
  color: var(--texto);
}

.pie {
  margin-top: auto;
  padding: 32px 0 28px;
  border-top: 1px solid var(--borde);
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.pie a {
  color: var(--texto-suave);
  text-decoration: none;
}

.pie a:hover {
  color: var(--texto);
  text-decoration: underline;
}

.pie p {
  margin: 4px 0 0;
}

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
}

.pie__marca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--texto);
}

.pie__marca img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.pie ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pie__legal {
  margin: 24px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
  font-size: 0.8125rem;
  color: var(--texto-tenue);
}

.texto-largo {
  max-width: 44em;
}

.texto-largo p,
.texto-largo li {
  color: var(--texto-suave);
}

.texto-largo strong {
  color: var(--texto);
  font-weight: 500;
}

.texto-largo li {
  margin-bottom: 0.5em;
}

.lista-puntos {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.nota {
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--borde-fuerte);
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.nota strong {
  color: var(--texto);
  font-weight: 500;
}

.nota p:last-child {
  margin-bottom: 0;
}

.nota a {
  color: var(--texto);
}

.texto-largo .nota {
  margin-top: 20px;
}

.grupo .nota,
.pagina > .nota {
  margin-bottom: 40px;
}

.lista-grupos {
  display: grid;
  gap: 12px;
}

.lista-grupos + .nota {
  margin-top: 36px;
}

.grupo-cred {
  padding: 18px 22px 8px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--superficie);
}

.grupo-cred--editando {
  padding-bottom: 22px;
  border-color: var(--borde-fuerte);
}

.grupo-cred--ilegible {
  padding-bottom: 22px;
}

.grupo-cred--alta {
  margin-bottom: 12px;
}

.grupo-cred--alta h2 {
  font-family: var(--fuente);
  letter-spacing: -0.015em;
}

.grupo-cred__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.grupo-cred h2 {
  margin: 0;
  font-family: var(--fuente-codigo);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.grupo-cred--ilegible h2 {
  color: var(--texto-suave);
}

.grupo-cred__acciones {
  display: flex;
  gap: 4px;
}

.grupo-cred__datos {
  display: grid;
  margin: 0;
}

.grupo-cred__datos > div {
  display: grid;
  gap: 4px;
  padding: 11px 0;
  border-top: 1px solid var(--borde);
}

@media (min-width: 640px) {
  .grupo-cred__datos > div {
    grid-template-columns: 15em 1fr;
    align-items: center;
    gap: 16px;
  }
}

.grupo-cred__datos dt {
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.grupo-cred__datos dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  min-height: 24px;
}

.grupo-cred--editando .formulario {
  margin-top: 14px;
}

.grupo-cred__secretos {
  display: grid;
}

.campo-secreto {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--borde);
}

.campo-secreto:last-child {
  padding-bottom: 4px;
}

.campo-secreto .campo--casilla {
  margin: 0;
}

.grupo-cred .alerta {
  margin: 4px 0 14px;
}

.grupo-cred__confirmar {
  display: grid;
  gap: 14px;
  padding-top: 10px;
}

.grupo-cred__confirmar p {
  margin: 0;
  color: var(--texto-suave);
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.estado::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.estado--cargada::before {
  background: var(--exito);
}

.estado--vacia::before {
  border: 1.5px solid var(--borde-fuerte);
}

.estado--vacia {
  color: var(--texto-suave);
}

.estado--falta::before {
  background: var(--aviso);
}

.secreto {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.secreto code {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--texto);
  word-break: break-all;
}

.sin-dato {
  color: var(--texto-tenue);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.app--ancha {
  max-width: 1400px;
}

@media (min-width: 720px) {
  .app {
    padding: 28px 24px 48px;
  }
}

.app p {
  margin: 0;
}

.app-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.app-cabecera--ficha {
  align-items: flex-start;
}

.app-titulo {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-bajada {
  margin-top: 4px;
  color: var(--texto-suave);
}

.app-migas {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.app-migas a {
  color: var(--texto-suave);
  text-decoration: none;
}

.app-migas a:hover {
  color: var(--texto);
  text-decoration: underline;
}

.app-migas span[aria-hidden] {
  color: var(--texto-tenue);
}

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

.app-fila--envuelve {
  flex-wrap: wrap;
}

.app-columna {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.app-crece {
  flex: 1;
  min-width: 0;
}

.app-espacio {
  flex: 1;
}

.app-tenue {
  color: var(--texto-suave);
}

.app-fuerte {
  font-weight: 600;
}

.app-medio {
  font-weight: 500;
}

.app-chico {
  font-size: 0.8125rem;
}

.app-mono,
.app-codigo {
  font-family: var(--fuente-codigo);
  font-size: 0.8125rem;
}

.app-codigo {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--superficie-3);
}

.app-numeros {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-angosto {
  max-width: 320px;
}

.app-nota {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.app-nota-suave {
  padding: 8px 12px;
  border-radius: var(--radio-chico);
  background: var(--superficie-3);
  color: var(--texto-suave);
  font-size: 0.8125rem;
}

.app-nota-aviso {
  padding: 8px 12px;
  border-radius: var(--radio-chico);
  background: var(--aviso-fondo);
  color: var(--aviso);
  font-size: 0.8125rem;
}

.app-tarjeta {
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie);
}

.app-tarjeta__cabecera {
  padding: 10px 16px;
  border-bottom: 1px solid var(--borde);
}

.app-seccion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
}

.app-subtitulo {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-subtitulo-chico {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 52px 24px;
  border: 1px dashed var(--borde-fuerte);
  border-radius: 12px;
  text-align: center;
}

.app-enlace {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--enlace);
  font: inherit;
  cursor: pointer;
}

.app-enlace:hover {
  text-decoration: underline;
}

.app-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--borde);
  border-radius: 9px;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.app-boton:hover {
  background: var(--superficie-2);
  color: var(--texto);
  text-decoration: none;
}

.app-boton[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.app-boton svg,
.app-menu svg,
.app-pildora svg,
.app-busqueda svg,
.app-marca svg,
.app-chip svg,
.app-rama__flecha svg,
.app-versiones__fecha svg,
.menu__icono svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-boton--icono {
  width: 36px;
  padding: 0;
}

.app-boton--primario {
  border-color: var(--primario);
  background: var(--primario);
  color: var(--primario-texto);
}

.app-boton--primario:hover {
  background: var(--primario-hover);
  color: var(--primario-texto);
}

.app-boton--fantasma,
.app-boton--chico-fantasma {
  border-color: transparent;
  background: transparent;
  color: var(--texto-suave);
}

.app-boton--fantasma:hover,
.app-boton--chico-fantasma:hover {
  background: var(--superficie-3);
  color: var(--texto);
}

.app-boton--chico,
.app-boton--chico-fantasma {
  height: 30px;
  padding: 0 10px;
  font-size: 0.8125rem;
}

.app-boton--fantasma.app-boton--icono {
  width: 32px;
  height: 32px;
}

.app-boton--chico-fantasma.app-boton--icono {
  width: 30px;
  padding: 0;
}

.solo-app,
.solo-app:hover {
  color: var(--texto-tenue);
  cursor: not-allowed;
}

.app-boton.solo-app,
.app-boton.solo-app:hover {
  border-color: var(--borde);
  background: var(--superficie-2);
  color: var(--texto-tenue);
}

.app-boton--fantasma.solo-app,
.app-boton--fantasma.solo-app:hover {
  border-color: transparent;
  background: transparent;
}

.solo-app svg {
  opacity: 0.75;
}

[data-ayuda] {
  position: relative;
}

[data-ayuda]:hover::after,
[data-ayuda]:focus-visible::after {
  content: attr(data-ayuda);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 70;
  width: max-content;
  max-width: 260px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--texto);
  color: var(--fondo);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  transform: translateX(-50%);
}

.app-tabla [data-ayuda]:hover::after,
.app-tabla [data-ayuda]:focus-visible::after,
.app-solapas [data-ayuda]:hover::after,
.app-solapas [data-ayuda]:focus-visible::after,
.menu [data-ayuda]:hover::after,
.menu [data-ayuda]:focus-visible::after {
  top: calc(100% + 6px);
  bottom: auto;
}

.app-menu [data-ayuda]:hover::after,
.app-menu [data-ayuda]:focus-visible::after,
.app-tabla__marcas [data-ayuda]:hover::after,
.app-tabla__marcas [data-ayuda]:focus-visible::after {
  top: 50%;
  bottom: auto;
  left: calc(100% + 8px);
  transform: translateY(-50%);
}

.app-menu--derecha [data-ayuda]:hover::after,
.app-menu--derecha [data-ayuda]:focus-visible::after {
  right: calc(100% + 8px);
  left: auto;
}

.app-insignia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}

.app-insignia__punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.app-insignia--exito {
  background: var(--exito-fondo);
  color: var(--exito);
}

.app-insignia--aviso {
  background: var(--aviso-fondo);
  color: var(--aviso);
}

.app-insignia--error {
  background: var(--error-fondo);
  color: var(--error);
}

.app-insignia--acento {
  background: var(--acento-fondo);
  color: var(--acento);
}

.app-insignia--neutro {
  background: var(--superficie-3);
  color: var(--texto-suave);
}

.app-segmentado {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--superficie-3);
}

.app-segmentado button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--texto-suave);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.app-segmentado button.activo {
  background: var(--superficie);
  color: var(--texto);
  box-shadow: 0 1px 2px rgba(21, 24, 30, 0.12);
}

.app-desplegable {
  position: relative;
  display: inline-flex;
}

.app-menu {
  position: absolute;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--borde);
  border-radius: 11px;
  background: var(--superficie);
  box-shadow: var(--sombra);
  text-align: left;
  white-space: normal;
}

.app-menu[hidden] {
  display: none;
}

.app-menu--derecha {
  right: 0;
}

.app-menu--izquierda {
  left: 0;
}

.app-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--texto);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-menu__item:hover {
  background: var(--superficie-2);
}

.app-menu__item svg {
  margin-top: 2px;
  color: var(--texto-suave);
}

.app-menu__item--peligro,
.app-menu__item--peligro svg {
  color: var(--error);
}

.app-menu__item.solo-app,
.app-menu__item.solo-app svg {
  color: var(--texto-tenue);
}

.app-menu__hueco {
  width: 16px;
  flex: none;
}

.app-menu__textos {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-menu__descripcion {
  color: var(--texto-suave);
  font-size: 0.75rem;
}

.app-menu__item.solo-app .app-menu__descripcion {
  color: var(--texto-tenue);
}

.app-menu__separador {
  height: 1px;
  margin: 5px 4px;
  background: var(--borde);
}

.app-menu__lista {
  max-height: 290px;
  overflow-y: auto;
}

.app-menu__pie {
  margin-top: 4px;
  padding: 6px 8px 2px;
  border-top: 1px solid var(--borde);
}

.app-opcion {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.app-opcion:hover {
  background: var(--superficie-2);
}

.app-opcion span:first-of-type {
  flex: 1;
}

.app-opcion input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--acento);
}

.app-busqueda {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

@media (min-width: 640px) {
  .app-busqueda {
    width: 290px;
  }
}

.app-busqueda svg {
  position: absolute;
  left: 11px;
  color: var(--texto-suave);
  pointer-events: none;
}

.app-busqueda input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 35px;
  border: 1px solid var(--borde);
  border-radius: 9px;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  outline: none;
}

.app-busqueda input:focus {
  border-color: var(--acento);
}

.app-pildora {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.app-pildora:hover {
  background: var(--superficie-2);
}

.app-pildora.activa {
  border-color: var(--acento);
  background: var(--acento-fondo);
  color: var(--acento);
}

.app-tarjeta--tabla {
  overflow-x: auto;
}

@media (min-width: 900px) {
  .app-tarjeta--tabla {
    overflow: visible;
  }
}

.app-tabla {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.app-tabla th {
  padding: 0;
  border-bottom: 1px solid var(--borde);
  background: var(--superficie-2);
  color: var(--texto-suave);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.app-tabla thead tr th:first-child {
  border-top-left-radius: 12px;
}

.app-tabla thead tr th:last-child {
  border-top-right-radius: 12px;
}

.app-orden {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app-orden:hover {
  color: var(--texto);
}

.app-orden svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.app-tabla td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--borde);
  vertical-align: middle;
}

.app-tabla tbody tr:last-child td {
  border-bottom: 0;
}

.app-tabla tbody tr:hover {
  background: var(--superficie-2);
}

.app-tabla__fila--enlace {
  cursor: pointer;
}

.app-tabla td a {
  color: var(--texto);
  text-decoration: none;
}

.app-tabla td a:hover {
  text-decoration: underline;
}

.app-tabla .app-tabla__marcas {
  width: 64px;
  padding-right: 0;
}

.app-tabla .app-tabla__acciones {
  width: 48px;
  padding: 6px 8px 6px 0;
  text-align: right;
}

.app-marcas {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-marca {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--texto-suave);
}

.icono__marca--exito {
  stroke: var(--exito);
}

.icono__marca--error {
  stroke: var(--error);
}

.app-punto {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.app-punto--neutro {
  background: var(--borde-fuerte);
}

.app-punto--exito {
  background: var(--exito);
}

.app-punto--aviso {
  background: var(--aviso);
}

.app-lista-simple {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-solapas {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--borde);
}

@media (min-width: 900px) {
  .app-solapas {
    overflow: visible;
  }
}

.app-solapa {
  margin-bottom: -1px;
  padding: 0 2px 10px;
  border-bottom: 2px solid transparent;
  color: var(--texto-suave);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.app-solapa:hover {
  color: var(--texto);
  text-decoration: none;
}

.app-solapa[aria-current="page"] {
  border-bottom-color: var(--acento);
  color: var(--texto);
}

.app-solapa.solo-app,
.app-solapa.solo-app:hover {
  color: var(--texto-tenue);
}

.app-datos {
  display: grid;
  gap: 10px 24px;
  margin: 0;
}

@media (min-width: 640px) {
  .app-datos {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

.app-datos dt {
  color: var(--texto-suave);
}

.app-datos dd {
  margin: 0;
}

.app-notas {
  padding: 16px;
  background: var(--superficie-2);
  white-space: pre-line;
}

.app-estado {
  padding: 16px 20px;
}

.app-estado .app-fila {
  gap: 14px;
}

.app-grilla-versiones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (min-width: 980px) {
  .app-grilla-versiones {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.app-versiones {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.app-versiones__fecha {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--borde);
}

.app-versiones__fecha > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-versiones__fecha svg {
  width: 14px;
  height: 14px;
}

.app-versiones__fecha input {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  font-size: 0.8125rem;
}

.app-versiones__lista {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 480px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.app-versiones__pie {
  padding: 8px 6px 4px;
}

.app-version {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--texto);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-version:hover {
  background: var(--superficie-2);
}

.app-version[aria-current="true"] {
  background: var(--acento-fondo);
}

.app-version .app-fila {
  width: 100%;
}

.app-cargando {
  padding: 4px 20px;
}

.app-comparacion__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--borde);
}

.app-comparacion__cuerpo {
  overflow-x: auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.app-comparacion__vacia {
  padding: 20px;
}

.app-diff {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fuente-codigo);
  font-size: 0.78rem;
  line-height: 1.7;
}

.app-diff th {
  padding: 5px 12px;
  border-bottom: 1px solid var(--borde);
  color: var(--texto-suave);
  font-family: var(--fuente);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
}

.app-diff__borde,
.app-diff__numero--borde {
  border-left: 1px solid var(--borde);
}

.app-diff__numero {
  width: 1%;
  padding: 0 8px;
  color: var(--texto-tenue);
  text-align: right;
  white-space: nowrap;
  user-select: none;
}

.app-diff__signo {
  width: 16px;
  text-align: center;
  user-select: none;
}

.app-diff__signo--mas {
  color: var(--exito);
}

.app-diff__signo--menos {
  color: var(--error);
}

.app-diff__codigo {
  padding: 0 12px 0 6px;
  white-space: pre;
}

.app-diff__codigo--mas,
.app-diff__fila--mas {
  background: var(--exito-fondo);
}

.app-diff__codigo--menos,
.app-diff__fila--menos {
  background: var(--error-fondo);
}

.app-diff__codigo--vacio {
  background: var(--superficie-2);
}

.app-diff__plegado {
  padding: 0;
  background: var(--superficie-2);
}

.app-diff__plegado button {
  width: 100%;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--acento);
  font-family: var(--fuente);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.app-diff__plegado button:hover {
  background: var(--superficie-3);
}

.app-dialogo {
  width: min(1100px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: 14px;
  background: var(--superficie);
  color: var(--texto);
  box-shadow: var(--sombra);
}

.app-dialogo[open] {
  display: flex;
  flex-direction: column;
}

.app-dialogo::backdrop {
  background: rgba(15, 18, 22, 0.45);
}

.app-dialogo__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--borde);
}

.app-archivo {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  font-family: var(--fuente-codigo);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre;
}

.app-archivo--ajustar {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.app-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--texto-suave);
  font-size: 0.75rem;
}

.app-leyenda > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-cuadrito {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.app-chip {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.app-chip svg {
  width: 14px;
  height: 14px;
}

.app-chip--acento {
  background: var(--acento-fondo);
  color: var(--acento);
}

.app-chip--exito {
  background: var(--exito-fondo);
  color: var(--exito);
}

.app-chip--aviso {
  background: var(--aviso-fondo);
  color: var(--aviso);
}

.app-chip--neutro {
  background: var(--superficie-3);
  color: var(--texto-suave);
}

.app-chip-texto {
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.app-arbol,
.app-arbol__grupo {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-arbol {
  padding: 4px;
}

.app-rama {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border-left: 3px solid var(--borde);
  border-radius: 8px;
}

.app-rama:hover {
  background: var(--superficie-2);
}

.app-rama--clic {
  cursor: pointer;
}

.app-rama--acento {
  border-left-color: var(--acento);
}

.app-rama--exito {
  border-left-color: var(--exito);
}

.app-rama--aviso {
  border-left-color: var(--aviso);
}

.app-rama--fuerte.app-rama--acento {
  background: var(--acento-fondo);
}

.app-rama--fuerte.app-rama--aviso {
  background: var(--aviso-fondo);
}

.app-nivel-1 {
  padding-left: 28px;
}

.app-nivel-2 {
  padding-left: 48px;
}

.app-nivel-3 {
  padding-left: 68px;
}

.app-nivel-4 {
  padding-left: 88px;
}

.app-nivel-5 {
  padding-left: 108px;
}

.app-nivel-6 {
  padding-left: 128px;
}

.app-nivel-7 {
  padding-left: 148px;
}

.app-nivel-8 {
  padding-left: 168px;
}

.app-nivel-9 {
  padding-left: 188px;
}

.app-nivel-10 {
  padding-left: 208px;
}

.app-nivel-11 {
  padding-left: 228px;
}

.app-nivel-12 {
  padding-left: 248px;
}

.app-rama__flecha {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--texto-suave);
  cursor: pointer;
}

.app-rama__flecha svg {
  transition: transform 0.12s;
}

.app-rama__flecha.abierta svg {
  transform: rotate(90deg);
}

.app-rama__flecha[disabled] {
  opacity: 0.3;
  cursor: default;
}

.app-rama__nombre {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-rama__nombre--equipo {
  font-weight: 600;
}

.app-rama__nombre--switch {
  color: var(--aviso);
  font-weight: 500;
}

.app-rama__nombre--puerto {
  font-family: var(--fuente-codigo);
  font-size: 0.8125rem;
}

.app-rama__detalle {
  min-width: 0;
  overflow: hidden;
  color: var(--texto-suave);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-rama .app-boton {
  margin-left: auto;
}

.app-vlan {
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.app-vlan--0 {
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

.app-vlan--1 {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.app-vlan--2 {
  background: rgba(217, 119, 6, 0.16);
  color: #b45309;
}

.app-vlan--3 {
  background: rgba(147, 51, 234, 0.14);
  color: #7e22ce;
}

.app-vlan--4 {
  background: rgba(219, 39, 119, 0.14);
  color: #be185d;
}

.app-vlan--5 {
  background: rgba(8, 145, 178, 0.15);
  color: #0e7490;
}

.app-vlan--6 {
  background: rgba(220, 38, 38, 0.13);
  color: #b91c1c;
}

.app-vlan--7 {
  background: rgba(101, 163, 13, 0.16);
  color: #4d7c0f;
}

.app-hechos {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
}

.app-hechos dt {
  color: var(--texto-suave);
}

.app-hechos dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.app-grilla-mapa {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 1024px) {
  .app-grilla-mapa {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.app-mapa {
  position: relative;
  height: 620px;
  min-height: 420px;
  overflow: hidden;
}

.app-mapa__lienzo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.app-mapa__lienzo:active {
  cursor: grabbing;
}

.app-mapa__controles {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--borde);
  border-radius: 9px;
  background: var(--superficie);
  box-shadow: 0 1px 2px rgba(21, 24, 30, 0.08);
}

.app-mapa__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 620px;
  padding: 16px;
  overflow-y: auto;
}

.app-mapa__enlace {
  fill: none;
  stroke: var(--borde-fuerte);
  stroke-width: 2;
}

.app-mapa__enlace--cierta {
  stroke: var(--exito);
}

.app-mapa__enlace--alta {
  stroke: var(--acento);
}

.app-mapa__enlace--media {
  stroke: var(--aviso);
}

.app-mapa__enlace--baja {
  stroke: var(--texto-tenue);
}

.app-mapa__enlace--rastreo {
  stroke-dasharray: 6 4;
}

.app-mapa__enlace.elegido {
  stroke-width: 4;
}

.app-mapa__zona {
  stroke: transparent;
  stroke-width: 14;
  cursor: pointer;
}

.app-mapa__puerto {
  fill: var(--texto-suave);
  font-family: var(--fuente-codigo);
  font-size: 10px;
  pointer-events: none;
}

.app-mapa__puerto.elegido {
  fill: var(--texto);
  font-weight: 600;
}

.app-mapa--lejos .app-mapa__puerto {
  display: none;
}

.app-mapa__nodo {
  cursor: pointer;
}

.app-mapa__caja {
  fill: var(--superficie);
  stroke: var(--borde-fuerte);
  stroke-width: 1.5;
}

.app-mapa__caja--otro {
  fill: var(--superficie-2);
}

.app-mapa__caja.punteado {
  stroke-dasharray: 5 3;
}

.app-mapa__caja.elegido {
  stroke: var(--acento);
  stroke-width: 2.5;
}

.app-mapa__rol {
  fill: var(--borde-fuerte);
}

.app-mapa__rol--core {
  fill: var(--acento);
}

.app-mapa__rol--distribucion,
.app-mapa__rol--distribution {
  fill: var(--aviso);
}

.app-mapa__rol--router {
  fill: var(--exito);
}

.app-mapa__rol--descubierto,
.app-mapa__rol--switch {
  fill: var(--texto-tenue);
}

.app-mapa__rotulo {
  fill: var(--texto);
  font-size: 13px;
  font-weight: 600;
}

.app-mapa__bajada {
  fill: var(--texto-suave);
  font-size: 11px;
}

.app-mapa__vlans {
  fill: var(--texto-suave);
  font-size: 10px;
}

.app-opciones {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--borde);
  border-radius: 9px;
}

.app-opciones legend {
  padding: 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-leyenda-mapa {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: var(--texto-suave);
  font-size: 0.8125rem;
  list-style: none;
}

.app-leyenda-mapa li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-tabla-chica {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.app-tabla-chica td {
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--borde);
  vertical-align: top;
}

.app-tabla-chica td.app-mono {
  white-space: nowrap;
}

.app-tabla-chica tr:last-child td {
  border-bottom: 0;
}

.app-lista-puntos {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
}

.app-hallazgos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-hallazgos li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--borde);
  border-radius: 9px;
}

.menu__iconos {
  display: flex;
  gap: 2px;
}

.menu button.menu__icono.solo-app,
.menu button.menu__icono.solo-app:hover {
  color: var(--texto-tenue);
  background: transparent;
}

@media (min-width: 960px) {
  .menu__iconos {
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid var(--borde);
  }

  .menu button.menu__icono {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .menu__rotulo-icono {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .app-cabecera .app-menu--derecha {
    right: auto;
    left: 0;
  }
}
