@font-face {
  font-family: "Mona Sans";
  src: url("fuentes/MonaSansVF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --fondo: #0b1220;
  --fondo-2: #080e1a;
  --superficie: #111b2c;
  --superficie-2: #182538;
  --borde: #1f2e45;
  --borde-2: #2d4263;
  --texto: #e8eef8;
  --tenue: #9aaac1;
  --tenue-2: #6a7a94;
  --acento: #2f6feb;
  --acento-claro: #4a86f7;
  --acento-texto: #ffffff;
  --brillo: #6fa6ff;
  --ambar: #f2b544;
  --verde: #46c48c;
  --azul: #67b7f7;
  --rojo: #f05a5f;
  --ancho: 1160px;
  --radio: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Mona Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.sprite { display: none; }

.contenedor { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h1, h2 { font-stretch: 125%; font-weight: 750; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
h3 { font-size: 1.08rem; font-weight: 650; line-height: 1.3; }
p { margin: 0; }

.antetitulo {
  color: var(--brillo);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--acento); color: var(--acento-texto);
  padding: 14px 24px; border-radius: 10px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.boton:hover { background: var(--acento-claro); }
.boton:active { transform: translateY(1px); }
.boton:focus-visible, .enlace:focus-visible, .menu a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brillo); outline-offset: 3px;
}
.boton--chico { padding: 9px 16px; font-size: 0.92rem; border-radius: 9px; gap: 8px; }
.boton--chico .ico { width: 17px; height: 17px; }
.enlace { color: var(--texto); font-weight: 550; text-underline-offset: 5px; text-decoration-color: var(--borde-2); }
.enlace:hover { text-decoration-color: var(--brillo); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
}
.cabecera__fila { display: flex; align-items: center; gap: 28px; height: 68px; }
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; font-stretch: 125%; font-weight: 750; font-size: 1.25rem; }
.marca__logo { width: 34px; height: 36px; }
.marca__escudo { fill: var(--acento); }
.marca__cerradura { fill: #ffffff; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca__texto small { font-stretch: 100%; font-weight: 550; font-size: 0.7rem; color: var(--tenue); letter-spacing: 0.02em; margin-top: 4px; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: var(--tenue); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.menu a:hover { color: var(--texto); }

/* ---------- Portada ---------- */
.portada { padding: 72px 0 90px; overflow: hidden; }
.portada__fila { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.portada__bajada { color: var(--tenue); font-size: 1.12rem; margin-top: 22px; max-width: 34em; }
.portada__acciones { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.portada__meta { color: var(--tenue-2); font-size: 0.9rem; margin-top: 18px; }
.portada__captura { position: relative; }
.portada__captura::before {
  content: ""; position: absolute; inset: -18% -12% -10% -8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 111, 235, 0.24), transparent 70%);
}

.ventana {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--borde-2);
  overflow: hidden;
  background: var(--fondo);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* ---------- Secciones ---------- */
.seccion { padding: 96px 0; }
.seccion--alterna { background: var(--fondo-2); border-block: 1px solid var(--borde); }
.seccion__bajada { color: var(--tenue); font-size: 1.08rem; margin-top: 16px; max-width: 40em; }

.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tarjeta {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 28px;
}
.tarjeta p { color: var(--tenue); font-size: 0.98rem; margin-top: 10px; }
.tarjeta__icono {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 20px;
}
.tarjeta__icono .ico { width: 23px; height: 23px; }
.tono-acento { background: rgba(47, 111, 235, 0.16); color: var(--brillo); }
.tono-azul { background: rgba(98, 168, 227, 0.13); color: var(--azul); }
.tono-verde { background: rgba(70, 196, 140, 0.13); color: var(--verde); }

.rejilla {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px;
}
.rejilla li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--borde); }
.rejilla .ico { color: var(--brillo); width: 24px; height: 24px; margin-top: 1px; }
.rejilla p { color: var(--tenue); font-size: 0.97rem; margin-top: 6px; }

.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.galeria figcaption { padding: 14px 18px; color: var(--tenue); font-size: 0.93rem; border-top: 1px solid var(--borde); background: var(--superficie); }

.dos { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.limites p { color: var(--tenue); padding: 20px 0; border-top: 1px solid var(--borde); }
.limites p:first-child { border-top: 0; padding-top: 0; }
.limites strong { color: var(--texto); font-weight: 650; }

.pasos { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pasos li { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.pasos p { color: var(--tenue); font-size: 0.97rem; margin: 10px 0 0; }
.pasos .boton { margin-top: 22px; }
.pasos em { color: var(--texto); font-style: normal; font-weight: 600; }
.pasos__num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--borde-2); color: var(--brillo); font-weight: 700; font-size: 0.95rem; margin-bottom: 18px;
}

.verificar {
  display: flex; gap: 18px; margin-top: 20px; padding: 26px 28px;
  border: 1px dashed var(--borde-2); border-radius: var(--radio);
}
.verificar > .ico { color: var(--brillo); width: 24px; height: 24px; margin-top: 2px; }
.verificar > div { min-width: 0; }
.verificar p { color: var(--tenue); font-size: 0.97rem; }
.verificar strong { color: var(--texto); font-weight: 650; }
.verificar pre {
  margin: 10px 0 16px; padding: 12px 16px; border-radius: 9px;
  background: var(--fondo-2); border: 1px solid var(--borde);
  font-size: 0.9rem; color: var(--texto); overflow-x: auto;
}
.verificar pre.huella { margin-bottom: 0; white-space: pre-wrap; word-break: break-all; color: var(--brillo); }

.preguntas details { border-top: 1px solid var(--borde); }
.preguntas details:last-child { border-bottom: 1px solid var(--borde); }
.preguntas summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fa6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5 L12 15.5 L18 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.preguntas details[open] summary::after { transform: rotate(180deg); }
.preguntas details p { color: var(--tenue); padding: 0 40px 22px 0; }
.preguntas code { font-size: 0.9em; background: var(--superficie-2); padding: 1px 6px; border-radius: 5px; }
.preguntas a { color: var(--brillo); }

.final { padding: 110px 0; text-align: center; }
.final__fila { display: flex; flex-direction: column; align-items: center; }
.final__icono { width: 54px; height: 54px; fill: none; stroke: var(--verde); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.final p { color: var(--tenue); margin: 14px 0 32px; font-size: 1.08rem; }
.final p.final__nota { color: var(--tenue-2); font-size: 0.9rem; margin: 18px 0 0; }

.pie { border-top: 1px solid var(--borde); padding: 34px 0 44px; }
.pie__fila { display: flex; justify-content: space-between; gap: 30px; color: var(--tenue-2); font-size: 0.86rem; }
.pie__fila p:last-child { max-width: 46em; text-align: right; }

/* ---------- Pantallas medianas y chicas ---------- */
@media (max-width: 980px) {
  .portada { padding: 48px 0 64px; }
  .portada__fila, .dos { grid-template-columns: 1fr; gap: 40px; }
  .tres, .pasos { grid-template-columns: 1fr; }
  .seccion { padding: 72px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .contenedor { width: calc(100% - 32px); }
  .menu { display: none; }
  .cabecera__fila { justify-content: space-between; }
  .rejilla, .galeria { grid-template-columns: 1fr; }
  .rejilla { gap: 0; }
  .tarjeta, .pasos li { padding: 22px; }
  .verificar { padding: 20px; flex-direction: column; gap: 12px; }
  .pie__fila { flex-direction: column; gap: 10px; }
  .pie__fila p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
