/* =====================================================
   NODO CARDS — páginas legales
   Conservan el estilo que ya tenían en nodocards.com:
   fondo carbón, texto crema, kicker en ámbar y el título
   grande. La única diferencia es que aquí los apartados
   SÍ se distinguen del cuerpo — en el original todo iba
   a 16px y peso 400, y no había forma de recorrer el
   documento con la vista.
   ===================================================== */
:root {
  --cream:      #f8ecde;
  --amber:      #dfa330;
  --rust:       #c64c29;
  --charcoal:   #211f1d;
  --charcoal-2: #17150f;

  --ff-display: 'Poppins', system-ui, sans-serif;
  --ff-body:    'Fira Sans', system-ui, sans-serif;

  --doc: 955px;                 /* el mismo ancho de columna que tenían */
  --pad: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--ff-body);
  background: var(--charcoal);
  color: rgba(248,236,222,.86);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ barra ============ */
.barra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1240px; margin: 0 auto;
  padding: 1.5rem var(--pad);
}
.barra__logo img { height: 34px; width: auto; }
.barra__btn {
  flex: none;
  display: inline-block; padding: .62rem 1.25rem;
  border-radius: 999px; background: var(--rust); color: var(--cream);
  font-family: var(--ff-display); font-weight: 600; font-size: .92rem;
  text-decoration: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.barra__btn:hover { background: #b3411f; transform: translateY(-1px); }

/* ============ documento ============ */
.doc {
  max-width: var(--doc);
  margin: clamp(2rem, 6vh, 3.5rem) auto clamp(4rem, 10vh, 6rem);
  padding: 0 var(--pad);
}
.doc__kicker {
  font-family: var(--ff-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .7rem;
}
.doc__titulo {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.5rem); line-height: 1.12;
  letter-spacing: -.015em; color: var(--cream);
  margin-bottom: 2.2rem;
}

.doc__texto > * + * { margin-top: 1.05rem; }
.doc__texto p { font-size: 1.02rem; }

/* Los apartados: esto es lo único que no estaba en el original. */
.doc__texto h2 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.18rem; line-height: 1.3; color: var(--cream);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(248,236,222,.13);
}
.doc__texto h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.doc__texto h2 + * { margin-top: .75rem; }

.doc__texto ul { list-style: none; display: grid; gap: .55rem; margin-top: .9rem; }
.doc__texto li { position: relative; padding-left: 1.5rem; font-size: 1.02rem; }
.doc__texto li::before {
  content: ''; position: absolute; left: .2rem; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--rust);
}

/* Los enlaces largos del texto (URLs de políticas) no deben desbordar en móvil. */
.doc__texto a {
  color: var(--amber); text-decoration: underline;
  text-underline-offset: .18em; text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
  transition: color .25s var(--ease);
}
.doc__texto a:hover { color: var(--cream); }

/* ============ pie ============ */
/* El mismo panel del pie de la landing, en versión corta: aquí no hacen falta
   las columnas de producto, solo poder saltar entre los cinco documentos. */
.pie { background: var(--charcoal); padding-top: 1px; }
.pie__panel {
  position: relative;
  margin: 0 clamp(14px, 2vw, 34px);
  padding: clamp(2.4rem, 6vh, 3.2rem) clamp(1.6rem, 3.5vw, 3.4rem) clamp(2rem, 4vh, 2.6rem);
  border-radius: 34px 34px 0 0;
  border-top: 1px solid rgba(198,76,41,.3);
  color: var(--cream);
  /* El mismo negro que el cuerpo (`--charcoal`, el del brand book): aqui el pie
     lo delimitan el borde de arriba y el filo, no un cambio de tono. */
  background:
    radial-gradient(46% 190px at 50% 0%, rgba(198,76,41,.3), transparent 72%),
    radial-gradient(26% 110px at 50% 0%, rgba(223,163,48,.16), transparent 70%),
    var(--charcoal);
}
@media (min-width: 1280px) { .pie__panel { border-radius: 46px 46px 0 0; } }
.pie__filo {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 46%; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg,
    transparent, rgba(198,76,41,.75) 28%, rgba(233,176,74,.95) 50%, rgba(198,76,41,.75) 72%, transparent);
  filter: blur(1.1px);
}
.pie__dentro { max-width: 1600px; margin: 0 auto; }
.pie__legal { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-bottom: 1.4rem; }
.pie__legal a {
  color: rgba(248,236,222,.68); font-size: .94rem; text-decoration: none;
  transition: color .3s var(--ease);
}
.pie__legal a:hover { color: var(--cream); }
.pie__legal a[aria-current="page"] { color: var(--amber); }
.pie__copy { font-size: .88rem; color: rgba(248,236,222,.42); }
.pie__copy a { color: rgba(248,236,222,.6); text-decoration: none; }
.pie__copy a:hover { color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
