/* ==========================================================================
   WaysGood — hoja de estilos principal

   Idea rectora: «panel de auditoría». La página se lee como el tablero de
   una fintech: superficies de grafito apiladas con un filo de luz arriba,
   esquinas blandas, sombras que separan capas y un único color de acción,
   el ámbar. El jade aparece solo cuando un dato está verificado y el coral
   solo cuando hay que advertir algo. Todo número medido va en monoespaciada.

   Orden del archivo
     1  Variables de diseño
     2  Base y utilidades
     3  Botones
     4  Franja de edad
     5  Cabecera y navegación
     6  Portada
     7  Aviso de afiliación
     8  Tabla de plataformas
     9  Páginas de texto
    10  Formulario
    11  Error 404
    12  Pie de página
    13  Barra de cookies
    14  Puerta de edad
    15  Movimiento
    16  Puntos de quiebre
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables de diseño
   -------------------------------------------------------------------------- */
:root {
  /* Superficies: grafito neutro con una pizca de azul frío */
  --bg: #0e1015;
  --bg-sunk: #090b0f;
  --panel: #161a22;
  --panel-top: #1e2330;
  --panel-hi: #232939;
  --panel-flat: #12151c;

  /* Filos */
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-hi: rgba(255, 255, 255, 0.15);
  --stroke-amber: rgba(250, 180, 56, 0.34);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Tinta */
  --text: #eef1f6;
  --muted: #a8b0bf;
  --dim: #767f91;

  /* Acción */
  --amber: #fab438;
  --amber-hi: #ffd277;
  --amber-low: rgba(250, 180, 56, 0.12);
  --amber-ink: #1b1305;

  /* Dato verificado */
  --jade: #43d39e;
  --jade-low: rgba(67, 211, 158, 0.12);

  /* Advertencia y edad */
  --coral: #ff7a66;
  --coral-low: rgba(255, 122, 102, 0.12);

  /* Curvatura */
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --r-pill: 999px;

  /* Profundidad */
  --lift-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --lift-2: 0 2px 8px rgba(0, 0, 0, 0.38), 0 20px 44px -24px rgba(0, 0, 0, 0.9);
  --lift-3: 0 34px 90px -34px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.5);
  --lift-amber: 0 10px 28px -12px rgba(250, 180, 56, 0.6);

  /* Retícula */
  --shell: 1140px;
  --shell-text: 810px;
  --head-h: 72px;

  /* Tipografía */
  --face-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --face-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --face-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Ritmo de transición */
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
}

/* --------------------------------------------------------------------------
   2. Base y utilidades
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--face-body);
  font-size: 16px;
  line-height: 1.55;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--muted);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

::selection {
  background: rgba(250, 180, 56, 0.28);
  color: var(--text);
}

/* Rótulo monoespaciado: lo usamos para fechas, cifras y epígrafes cortos. */
.tag {
  font-family: var(--face-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 22px;
}

/* Un panel: fondo degradado, filo de luz arriba y sombra que lo despega. */
.panel {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel) 58%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  box-shadow: var(--lift-2), var(--edge-light);
}

/* --------------------------------------------------------------------------
   3. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--face-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
    color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.16s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 100%);
  color: var(--amber-ink);
  box-shadow: var(--lift-amber);
}

.btn--solid:hover {
  background: var(--amber-hi);
  box-shadow: 0 14px 34px -12px rgba(250, 180, 56, 0.75);
  transform: translateY(-1px);
}

.btn--line {
  border-color: var(--stroke-hi);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--line:hover {
  border-color: var(--amber);
  background: var(--amber-low);
  color: var(--amber-hi);
}

.btn__arrow {
  transition: transform 0.22s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   4. Franja de edad
   -------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 22px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--stroke);
  text-align: center;
}

.topbar__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid rgba(255, 122, 102, 0.45);
  border-radius: var(--r-pill);
  background: var(--coral-low);
  color: var(--coral);
  font-family: var(--face-mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.topbar__text {
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. Cabecera y navegación
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(14, 16, 21, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.site-head.is-stuck {
  background: rgba(11, 13, 17, 0.94);
  border-bottom-color: var(--stroke);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.95);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: var(--shell);
  height: var(--head-h);
  margin: 0 auto;
  padding: 0 22px;
}

.site-head__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--r-sm);
}

/* El logotipo trae aire propio arriba y abajo —el bucle de la marca y las
   colas de la «y» y la «g»—, así que necesita algo más de alto que un
   lockup ajustado para que la palabra pese lo mismo que la navegación. */
.site-head__logo {
  width: auto;
  height: 42px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav__item {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav__item[aria-current="page"] {
  background: var(--amber-low);
  color: var(--amber-hi);
}

.head-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 13px;
  border: 1px solid rgba(255, 122, 102, 0.4);
  border-radius: var(--r-pill);
  background: var(--coral-low);
  color: var(--coral);
  font-family: var(--face-mono);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.head-age:hover {
  border-color: var(--coral);
  background: rgba(255, 122, 102, 0.2);
  color: #ffb3a6;
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.burger:hover {
  border-color: var(--stroke-hi);
  background: rgba(255, 255, 255, 0.07);
}

.burger span {
  display: block;
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

.drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 22px;
  left: 22px;
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-3);
}

.drawer.is-open {
  display: flex;
  animation: wg-drop 0.24s var(--ease) both;
}

.drawer__item {
  padding: 13px 14px;
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.drawer__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.drawer__item[aria-current="page"] {
  background: var(--amber-low);
  color: var(--amber-hi);
}

/* --------------------------------------------------------------------------
   6. Portada
   -------------------------------------------------------------------------- */
.main {
  flex: 1;
}

/* Luz ambiente: un foco ámbar arriba a la derecha, otro jade abajo a la
   izquierda y una trama de puntos casi imperceptible sobre el grafito. */
.glow {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image:
    radial-gradient(920px 440px at 82% -12%, rgba(250, 180, 56, 0.14), transparent 64%),
    radial-gradient(780px 480px at 4% 112%, rgba(67, 211, 158, 0.09), transparent 62%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

.lede {
  padding: 54px 0 46px;
}

.lede__panel {
  padding: 40px 44px 38px;
  animation: wg-rise 0.6s var(--ease) both;
}

.lede__stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--stroke-amber);
  border-radius: var(--r-pill);
  background: var(--amber-low);
  color: var(--amber-hi);
}

.lede__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(250, 180, 56, 0.18);
}

.lede__title {
  max-width: 15ch;
  margin: 26px 0 0;
  color: var(--text);
  font-family: var(--face-display);
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.033em;
  line-height: 1.04;
}

.lede__accent {
  color: var(--amber);
}

.lede__sub {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.09rem);
  line-height: 1.68;
}

/* Cuatro placas con las cifras que resumen la auditoría. */
.meters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.meter {
  padding: 16px 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.meter:hover {
  border-color: var(--stroke-amber);
  background: rgba(250, 180, 56, 0.06);
  transform: translateY(-2px);
}

.meter__value {
  color: var(--text);
  font-family: var(--face-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.meter__value em {
  color: var(--dim);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
}

.meter__cap {
  margin-top: 6px;
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.4;
}

.lede__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--stroke);
}

.lede__foot-cap {
  margin-right: 6px;
  color: var(--dim);
}

.chip {
  padding: 6px 13px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.chip:hover {
  border-color: rgba(67, 211, 158, 0.4);
  background: var(--jade-low);
  color: var(--jade);
}

/* --------------------------------------------------------------------------
   7. Aviso de afiliación
   -------------------------------------------------------------------------- */
.affil {
  padding: 13px 22px;
  background: var(--bg-sunk);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  text-align: center;
}

.affil__text {
  color: var(--dim);
  font-size: 0.79rem;
  line-height: 1.6;
}

.affil__link {
  border-bottom: 1px solid rgba(250, 180, 56, 0.35);
  color: var(--amber);
  font-weight: 600;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.affil__link:hover {
  border-bottom-color: var(--amber-hi);
  color: var(--amber-hi);
}

/* --------------------------------------------------------------------------
   8. Tabla de plataformas
   -------------------------------------------------------------------------- */
.board {
  padding: 46px 0 62px;
}

.board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.board__title {
  color: var(--text);
  font-family: var(--face-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.board__meta {
  color: var(--dim);
}

.board__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.deal {
  animation: wg-rise 0.55s var(--ease) 0.08s both;
}

/* Distintivo de estado: vive dentro de la tarjeta, como el chip de estado de
   una fila en un tablero. Así no pelea con las esquinas redondeadas. */
.deal__ribbon {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 10px;
  border: 1px solid var(--stroke-amber);
  border-radius: var(--r-pill);
  background: var(--amber-low);
  color: var(--amber-hi);
  font-family: var(--face-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal__ribbon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(250, 180, 56, 0.18);
}

.deal__card {
  position: relative;
  display: grid;
  grid-template-columns: 116px 222px 1fr 236px;
  grid-template-areas: "stat brand main act";
  align-items: stretch;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.deal__card:hover {
  border-color: var(--stroke-hi);
  box-shadow: var(--lift-3), var(--edge-light);
  transform: translateY(-3px);
}

.deal__card--top {
  border-color: var(--stroke-amber);
}

.deal__card--top:hover {
  border-color: rgba(250, 180, 56, 0.55);
}

/* Placa de puesto y puntaje. */
.deal__stat {
  grid-area: stat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 10px;
  border-right: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
}

.deal__rank {
  color: var(--dim);
  font-family: var(--face-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.deal__card--top .deal__rank {
  color: var(--amber);
}

.deal__score {
  color: var(--text);
  font-family: var(--face-mono);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.deal__card--top .deal__score {
  color: var(--amber);
}

.deal__score-cap {
  color: var(--dim);
  font-size: 0.7rem;
}

.deal__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border-right: 1px solid var(--stroke);
}

.deal__logo {
  width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.deal__main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 26px 30px;
}

.deal__name {
  color: var(--text);
  font-family: var(--face-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.22;
}

.deal__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Ficha de datos: etiqueta arriba, valor medido abajo. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.fact__key {
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.3;
}

.fact__val {
  margin-top: 3px;
  color: var(--jade);
  font-family: var(--face-mono);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.deal__act {
  grid-area: act;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  padding: 26px 24px;
  border-left: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.16);
}

.deal__act .btn {
  width: 100%;
}

.deal__fine {
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.board__note {
  max-width: 70ch;
  margin: 30px auto 0;
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   9. Páginas de texto
   -------------------------------------------------------------------------- */
.doc-head {
  padding: 52px 0 44px;
}

.doc-head__inner {
  max-width: var(--shell-text);
  margin: 0 auto;
  padding: 0 22px;
}

.doc-head__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--stroke-amber);
  border-radius: var(--r-pill);
  background: var(--amber-low);
  color: var(--amber-hi);
}

.doc-head__title {
  max-width: 18ch;
  margin: 22px 0 0;
  color: var(--text);
  font-family: var(--face-display);
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.doc-head__text {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.doc {
  max-width: var(--shell-text);
  margin: 0 auto;
  padding: 44px 22px 66px;
}

.doc__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--dim);
}

.doc__stamp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-low);
}

.doc__section {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--stroke);
}

.doc__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.doc__section h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-family: var(--face-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.doc__section h3 {
  margin: 26px 0 9px;
  color: var(--amber-hi);
  font-family: var(--face-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.doc__section p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
}

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

.doc__section a {
  border-bottom: 1px solid rgba(250, 180, 56, 0.35);
  color: var(--amber);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.doc__section a:hover {
  border-bottom-color: var(--amber-hi);
  color: var(--amber-hi);
}

.doc__section strong {
  color: var(--text);
  font-weight: 700;
}

.doc__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.doc__list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.doc__list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* Variante con tilde: la usamos donde enumeramos algo que ya verificamos. */
.doc__list--done li::before {
  top: 0.48em;
  left: 3px;
  width: 10px;
  height: 5px;
  border: 1.7px solid var(--jade);
  border-top: 0;
  border-right: 0;
  border-radius: 1px;
  background: none;
  transform: rotate(-45deg);
}

.note {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  margin-top: 24px;
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--coral);
  border-radius: var(--r-md);
  background: rgba(255, 122, 102, 0.05);
}

.note__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral-low);
  color: var(--coral);
  font-family: var(--face-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  font-style: normal;
  overflow: hidden;
}

.contact-card__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 20px;
  padding: 16px 22px;
}

.contact-card__row + .contact-card__row {
  border-top: 1px solid var(--stroke);
}

.contact-card__label {
  color: var(--dim);
  font-family: var(--face-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-top: 2px;
}

.contact-card__value {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card__link {
  width: fit-content;
  border-bottom: 1px solid var(--stroke-amber);
  color: var(--amber);
  transition: color 0.2s var(--ease);
}

.contact-card__link:hover {
  color: var(--amber-hi);
}

.doc__fine {
  margin-top: 18px;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. Formulario
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.field__input,
.field__area,
.field__select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: var(--panel-flat);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field__input::placeholder,
.field__area::placeholder {
  color: var(--dim);
}

.field__input:focus,
.field__area:focus,
.field__select:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--panel-hi);
  box-shadow: 0 0 0 3px rgba(250, 180, 56, 0.15);
}

.field__area {
  min-height: 152px;
  resize: vertical;
}

.field__select {
  cursor: pointer;
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 1px), calc(100% - 16px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field__select option {
  background: var(--panel);
  color: var(--text);
}

.field__hint {
  display: none;
  color: var(--coral);
  font-size: 0.8rem;
}

.field.is-wrong .field__hint {
  display: block;
}

.field.is-wrong .field__input,
.field.is-wrong .field__area {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 122, 102, 0.14);
}

.form__send {
  align-self: flex-start;
}

.form__done {
  display: none;
  padding: 16px 18px;
  border: 1px solid rgba(67, 211, 158, 0.3);
  border-radius: var(--r-md);
  background: var(--jade-low);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form__done.is-on {
  display: block;
}

/* --------------------------------------------------------------------------
   11. Error 404
   -------------------------------------------------------------------------- */
/* La sección ocupa todo el ancho para que la luz ambiente llegue a los
   bordes; el contenido se centra en el envoltorio interno. Un margen «auto»
   sobre el propio elemento flexible le sacaría el estirado y dejaría el
   degradado encerrado en una franja del ancho del texto. */
.oops {
  display: flex;
  flex: 1;
  align-items: center;
}

.oops__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px 22px;
}

.oops__code {
  color: transparent;
  font-family: var(--face-display);
  font-size: clamp(5rem, 17vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  background: linear-gradient(160deg, var(--amber-hi) 0%, rgba(250, 180, 56, 0.12) 78%);
  -webkit-background-clip: text;
  background-clip: text;
}

.oops__title {
  color: var(--text);
  font-family: var(--face-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}

.oops__text {
  max-width: 48ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

.oops__act {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   12. Pie de página
   -------------------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--stroke);
  background: var(--bg-sunk);
}

.site-foot__inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 46px 22px 34px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}

.foot-nav__item {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.foot-nav__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.care {
  padding: 26px 28px;
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--coral);
  border-radius: var(--r-lg);
  background: var(--panel-flat);
}

.care__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.care__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 13px;
  border: 1px solid rgba(255, 122, 102, 0.4);
  border-radius: var(--r-pill);
  background: var(--coral-low);
  color: var(--coral);
  font-family: var(--face-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.care__title {
  margin-bottom: 9px;
  color: var(--text);
  font-family: var(--face-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.care__text {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.72;
}

.care__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
}

.care__org {
  display: inline-flex;
  align-items: center;
  opacity: 0.55;
  filter: grayscale(0.25);
  transition: opacity 0.22s var(--ease), filter 0.22s var(--ease);
}

.care__org:hover {
  opacity: 1;
  filter: none;
}

.care__org img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.care__mail {
  margin-left: auto;
  border-bottom: 1px solid rgba(250, 180, 56, 0.35);
  color: var(--amber);
  font-family: var(--face-mono);
  font-size: 0.82rem;
  transition: color 0.2s var(--ease);
}

.care__mail:hover {
  color: var(--amber-hi);
}

.legal__title {
  margin-bottom: 24px;
  color: var(--text);
  font-family: var(--face-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.legal__block {
  padding: 22px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
}

.legal__sub {
  margin-bottom: 10px;
  color: var(--amber-hi);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.legal__text {
  color: var(--dim);
  font-size: 0.83rem;
  line-height: 1.78;
}

.legal__text a {
  border-bottom: 1px solid rgba(250, 180, 56, 0.3);
  color: var(--amber);
  transition: color 0.2s var(--ease);
}

.legal__text a:hover {
  color: var(--amber-hi);
}

.legal__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.legal__links a {
  border-bottom: 1px solid rgba(67, 211, 158, 0.3);
  color: var(--jade);
  font-family: var(--face-mono);
  font-size: 0.78rem;
  transition: color 0.2s var(--ease);
}

.legal__links a:hover {
  color: #7ce9c0;
}

.site-foot__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  font-style: normal;
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-foot__resp {
  color: var(--muted);
  font-weight: 600;
}

.site-foot__addr {
  color: var(--dim);
}

.site-foot__tel {
  border-bottom: 1px solid rgba(250, 180, 56, 0.35);
  color: var(--amber);
  font-family: var(--face-mono);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-foot__tel:hover {
  color: var(--amber-hi);
}

.site-foot__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. Barra de cookies
   -------------------------------------------------------------------------- */
.cookies {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 26px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 26px;
  border: 1px solid var(--stroke-hi);
  border-radius: var(--r-lg);
  background: rgba(22, 26, 34, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--lift-3);
}

.cookies.is-on {
  display: flex;
  animation: wg-rise 0.4s var(--ease) both;
}

.cookies__title {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--face-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.cookies__text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.cookies__text a {
  border-bottom: 1px solid rgba(250, 180, 56, 0.35);
  color: var(--amber);
}

.cookies__acts {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   14. Puerta de edad
   -------------------------------------------------------------------------- */
body.is-frozen {
  overflow: hidden;
}

.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background-color: rgba(9, 11, 15, 0.92);
  background-image:
    radial-gradient(820px 420px at 80% -8%, rgba(250, 180, 56, 0.16), transparent 62%),
    radial-gradient(700px 440px at 6% 108%, rgba(67, 211, 158, 0.1), transparent 60%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gate--ask {
  z-index: 100;
}

.gate--stop {
  z-index: 110;
}

.gate[hidden] {
  display: none;
}

.gate__card {
  width: 100%;
  max-width: 480px;
  padding: 30px 32px 28px;
  border: 1px solid var(--stroke-hi);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel) 62%);
  box-shadow: var(--lift-3), var(--edge-light);
  animation: wg-pop 0.42s var(--ease) both;
}

.gate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--stroke);
}

.gate__eyebrow {
  color: var(--amber-hi);
}

.gate--stop .gate__eyebrow {
  color: var(--coral);
}

.gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 122, 102, 0.42);
  border-radius: var(--r-pill);
  background: var(--coral-low);
  color: var(--coral);
  font-family: var(--face-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.gate__title {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--face-display);
  font-size: clamp(1.3rem, 4vw, 1.62rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.gate__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.gate__acts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 26px;
}

.gate__acts .btn {
  width: 100%;
}

.gate__fine {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  color: var(--dim);
  font-size: 0.79rem;
  line-height: 1.65;
}

.gate__fine a {
  border-bottom: 1px solid rgba(250, 180, 56, 0.3);
  color: var(--amber);
  transition: color 0.2s var(--ease);
}

.gate__fine a:hover {
  color: var(--amber-hi);
}

/* --------------------------------------------------------------------------
   15. Movimiento — una entrada breve, nada que se repita en bucle
   -------------------------------------------------------------------------- */
.rise {
  animation: wg-rise 0.55s var(--ease) both;
}

@keyframes wg-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wg-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wg-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   16. Puntos de quiebre
   -------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .deal__card {
    grid-template-columns: 104px 186px 1fr;
    grid-template-areas:
      "stat brand main"
      "act  act   act";
  }

  .deal__act {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 24px;
    border-top: 1px solid var(--stroke);
    border-left: 0;
  }

  .deal__act .btn {
    order: 2;
    width: auto;
    min-width: 230px;
  }

  .deal__fine {
    order: 1;
    text-align: left;
  }

  .legal__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
    order: 3;
  }

  .head-age {
    order: 1;
    margin-left: auto;
  }

  .site-head__brand {
    order: 0;
  }

  .site-head__inner {
    gap: 14px;
  }

  .lede__panel {
    padding: 30px 24px 28px;
  }

  .meters {
    grid-template-columns: repeat(2, 1fr);
  }

  .deal__card {
    grid-template-columns: 96px 1fr;
    grid-template-areas:
      "stat brand"
      "main main"
      "act  act";
  }

  .deal__brand {
    justify-content: flex-start;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
  }

  .deal__logo {
    max-width: 200px;
    max-height: 60px;
  }

  .deal__stat {
    border-bottom: 1px solid var(--stroke);
  }

  .deal__main {
    padding: 24px;
  }

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

  .care__mail {
    width: 100%;
    margin-left: 0;
  }

  .cookies {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .cookies__acts {
    margin-left: 0;
  }

  .cookies__acts .btn {
    flex: 1;
  }
}

@media (max-width: 580px) {
  :root {
    --head-h: 64px;
  }

  .contact-card__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }

  .topbar {
    gap: 9px;
    padding: 8px 16px;
  }

  .topbar__text {
    font-size: 0.72rem;
  }

  .lede {
    padding: 34px 0 32px;
  }

  .lede__title {
    max-width: none;
  }

  .meters {
    grid-template-columns: 1fr;
  }

  .board__head {
    flex-direction: column;
    gap: 6px;
  }

  .deal__act {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .deal__act .btn {
    order: 1;
    min-width: 0;
  }

  .deal__fine {
    order: 2;
    text-align: center;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .care {
    padding: 22px 20px;
  }

  .care__head {
    flex-direction: column;
    gap: 14px;
  }

  .care__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gate__card {
    padding: 26px 22px 24px;
  }

  .gate__acts {
    grid-template-columns: 1fr;
  }

  .cookies {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .rise,
  .deal,
  .lede__panel,
  .gate__card,
  .cookies,
  .drawer {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
