/* Páginas legales y de soporte de NetFi (privacidad, soporte, eliminar cuenta). */
:root {
  --tinta: #0A2C3A;
  --papel: #FFFFFF;
  --hueso: #F4F5F3;
  --nar: #E67D16;
  --gris: #546B75;
  --gris2: #788B93;
  --linea: #E2E6E7;
  --carta: #1B3B48;
  --ancho: 1120px
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px
}

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased
}

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

a {
  color: inherit
}

em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--nar)
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase
}

.marco {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left))
}

/* cabecera */
.cab {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--linea);
  padding-top: env(safe-area-inset-top)
}

.cab-in {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px
}

.marca img {
  height: 32px;
  width: auto
}

.menu {
  display: flex;
  gap: 26px;
  margin-left: auto
}

.menu a {
  text-decoration: none;
  color: var(--gris);
  font-size: 11.5px
}

.menu a:hover,
.menu a[aria-current] {
  color: var(--tinta)
}

.menu a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--nar);
  padding-bottom: 4px
}

/* portada */
.heroe {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--linea);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(230, 125, 22, .07), transparent 60%),
    var(--papel)
}

.rot {
  color: var(--nar)
}

.rot::before {
  content: '// '
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin-top: 14px
}

.lead {
  max-width: 680px;
  margin-top: 20px;
  color: var(--gris);
  font-size: 19px
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  color: var(--gris2)
}

.meta strong {
  color: var(--tinta);
  font-weight: 500
}

/* contenido con índice */
.cuerpo {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 64px;
  padding: 56px 0 96px
}

.indice {
  position: sticky;
  top: 100px;
  align-self: start;
  border-left: 1px solid var(--linea);
  padding-left: 18px
}

.indice p {
  color: var(--gris2);
  margin-bottom: 12px
}

.indice ol {
  list-style: none;
  counter-reset: i
}

.indice li {
  counter-increment: i;
  margin: 0 0 8px
}

.indice a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--gris);
  font-size: 14.5px;
  line-height: 1.35
}

.indice a::before {
  content: counter(i, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--gris2);
  padding-top: 2px
}

.indice a:hover {
  color: var(--tinta)
}

article {
  min-width: 0;
  max-width: 760px
}

article section {
  padding: 0 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--linea)
}

article section:last-child {
  border-bottom: 0;
  margin-bottom: 0
}

article h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  display: flex;
  gap: 14px;
  align-items: baseline
}

article h2 .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--nar);
  letter-spacing: .08em
}

article h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px
}

article p+p {
  margin-top: 12px
}

article ul,
article ol.pasos {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none
}

article ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 8px
}

article ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nar)
}

ol.pasos {
  counter-reset: p
}

ol.pasos li {
  counter-increment: p;
  position: relative;
  padding: 0 0 0 52px;
  margin-top: 16px;
  min-height: 36px
}

ol.pasos li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--papel);
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px
}

.dato {
  color: var(--gris)
}

.caja {
  background: var(--hueso);
  border: 1px solid var(--linea);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 18px
}

.caja.oscura {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--papel)
}

.caja.oscura .dato {
  color: #B6C0C4
}

.caja .mono {
  display: block;
  color: var(--gris2);
  margin-bottom: 8px
}

.caja.oscura .mono {
  color: var(--nar)
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15.5px
}

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

.tabla th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris2)
}

.tabla td:first-child {
  font-weight: 600;
  width: 34%
}

/* botones */
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s
}

.boton svg {
  width: 18px;
  height: 18px;
  flex: none
}

.boton-tinta {
  background: var(--tinta);
  color: var(--papel);
  border: 1px solid var(--tinta)
}

.boton-tinta:hover {
  background: var(--carta)
}

.boton-nar {
  background: var(--nar);
  color: #fff;
  border: 1px solid var(--nar)
}

.boton-nar:hover {
  background: #cf6c0e
}

.boton-linea {
  border: 1px solid var(--linea);
  color: var(--tinta);
  background: var(--papel)
}

.boton-linea:hover {
  border-color: var(--tinta)
}

.caja.oscura .boton-linea {
  background: transparent;
  color: var(--papel);
  border-color: rgba(255, 255, 255, .28)
}

a:focus-visible,
.boton:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--nar);
  outline-offset: 3px
}

/* tarjetas (soporte) */
.rejilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px
}

.tarjeta {
  border: 1px solid var(--linea);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s, transform .2s
}

.tarjeta:hover {
  border-color: var(--tinta);
  transform: translateY(-2px)
}

.tarjeta strong {
  font-size: 18px
}

.tarjeta span:not(.mono) {
  color: var(--gris);
  font-size: 15px
}

.tarjeta .mono {
  color: var(--nar)
}

details {
  border-bottom: 1px solid var(--linea)
}

details:first-of-type {
  border-top: 1px solid var(--linea)
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 17.5px;
  position: relative
}

summary::-webkit-details-marker {
  display: none
}

summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 26px;
  font-weight: 300;
  color: var(--gris2);
  transition: transform .2s
}

details[open] summary::after {
  transform: rotate(45deg)
}

details>div {
  padding: 0 0 20px;
  color: var(--gris)
}

details>div p+p {
  margin-top: 10px
}

/* pie */
.pie {
  border-top: 1px solid var(--linea);
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom))
}

.pie .marco {
  display: flex;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
  color: var(--gris2);
  font-size: 14px
}

.pie img {
  height: 26px;
  width: auto
}

.pie nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.pie a {
  text-decoration: none;
  color: var(--tinta);
  font-weight: 600
}

.pie a:hover {
  color: var(--nar)
}

.pie .der {
  margin-left: auto
}

@media (max-width: 900px) {
  .cuerpo {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px
  }

  .indice {
    position: static;
    border-left: 0;
    padding: 18px 20px;
    background: var(--hueso);
    border-radius: 16px
  }

  .rejilla {
    grid-template-columns: 1fr
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px
  }

  .marco {
    padding: 0 16px
  }

  .cab-in {
    gap: 14px
  }

  .menu {
    gap: 14px
  }

  .menu a {
    font-size: 10.5px;
    letter-spacing: .06em
  }

  .menu .solo-ancho {
    display: none
  }

  .menu a {
    white-space: nowrap
  }

  .heroe {
    padding: 44px 0 30px
  }

  .lead {
    font-size: 17px
  }

  .tabla td:first-child {
    width: 40%
  }

  .pie .der {
    margin-left: 0
  }
}

/* en teléfonos chicos junto el menú para que quepan las cuatro ligas */
@media (max-width: 400px) {
  .menu {
    gap: 9px
  }

  .menu a {
    font-size: 10px;
    letter-spacing: .02em
  }
}

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

  * {
    transition: none !important
  }
}
