/* ============================================================
   INFOTRÁMITES — REDISEÑO v2 (minimal monocromo)
   Scoped a body.rd (solo la home por ahora).
   ============================================================ */
body.rd {
  --ink: #111114;
  --ink-soft: #2b2b30;
  --muted: #6b7280;
  --line: #e6e6e8;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --radius: 18px;
  --accent: #1f54d6;
  --accent-dark: #1a45b0;
  --accent-navy: #13204e;
  --accent-soft: #eaf0fd;
  background: var(--bg);
  color: var(--ink);
}

/* Header monocromo con acento */
body.rd .header { border-bottom: 1px solid var(--line); box-shadow: none; }
body.rd .header__nav a { color: var(--ink); font-weight: 500; }
body.rd .header__nav a:hover { color: var(--accent); }

body.rd .container--wide { max-width: 1180px; }

/* ---------- HERO ---------- */
.rd-hero { padding: 84px 0 56px; }
.rd-hero__eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 700; color: var(--accent);
}
.rd-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.025em;
  margin: .35em 0 .35em; max-width: 17ch; color: var(--ink);
}
.rd-hero__sub { font-size: 1.18rem; color: var(--muted); max-width: 54ch; line-height: 1.6; }
.rd-hero__search {
  display: flex; max-width: 580px; margin-top: 32px;
  border: 1.5px solid var(--accent); border-radius: 999px; position: relative;
}
.rd-hero__search input {
  flex: 1; border: 0; padding: 17px 24px; font: inherit; outline: none; background: transparent; color: var(--ink);
  border-radius: 999px 0 0 999px;
}
.rd-hero__search button {
  background: var(--accent); color: #fff; border: 0; padding: 0 26px; display: flex;
  align-items: center; cursor: pointer; border-radius: 0 999px 999px 0; margin: -1.5px -1.5px -1.5px 0;
}
.rd-hero__search button:hover { background: var(--accent-dark); }
.rd-hero__search button svg { width: 20px; height: 20px; color: #fff; }

/* ---------- STATS ---------- */
.rd-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rd-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 48px 0; }
.rd-stat__num {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600; letter-spacing: -.02em; line-height: 1;
}
.rd-stat__label { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* ---------- SECCIÓN GENÉRICA ---------- */
.rd-sec { padding: 80px 0; }
.rd-sec--alt { background: var(--bg-alt); }
.rd-sec__head { margin-bottom: 40px; }
.rd-sec__title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em; margin: 0 0 10px; color: var(--ink);
}
.rd-sec__lead { color: var(--muted); max-width: 58ch; margin: 0; font-size: 1.05rem; line-height: 1.6; }

/* ---------- TARJETAS DE CATEGORÍA ---------- */
.rd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd-card {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; color: inherit; transition: transform .2s, border-color .2s;
}
.rd-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 84, 214, .1); }
.rd-card__ico {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.rd-card__ico svg { width: 22px; height: 22px; color: #fff; }
.rd-card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 0; }
.rd-card__desc { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.5; }
.rd-card__more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--accent); }

/* ---------- CÓMO FUNCIONA ---------- */
.rd-how { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: stretch; }
.rd-how__panel {
  background: var(--accent-navy); color: #fff; border-radius: var(--radius); padding: 44px;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
  background-image: radial-gradient(120% 120% at 100% 0%, rgba(31,84,214,.45) 0%, rgba(19,32,78,0) 55%);
}
.rd-how__panel h3 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 12px; color: #fff; line-height: 1.15; }
.rd-how__panel p { color: #c3cbe6; margin: 0 0 24px; line-height: 1.6; }
.rd-steps { list-style: none; margin: 0; padding: 0; }
.rd-step { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.rd-step:first-child { border-top: 1px solid var(--line); }
.rd-step__ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.rd-step__ico { background: var(--accent-soft); }
body.rd .rd-sec--alt .rd-step__ico { background: #fff; }
.rd-step__ico svg { width: 22px; height: 22px; color: var(--accent); }
.rd-step__t { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; }
.rd-step__d { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.5; }

/* ---------- HERRAMIENTAS / LISTA ---------- */
.rd-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rd-tool {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit;
  transition: border-color .2s;
}
.rd-tool:hover { border-color: var(--accent); }
.rd-tool__ico {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.rd .rd-sec--alt .rd-tool__ico { background: #fff; }
.rd-tool__ico svg { width: 20px; height: 20px; color: var(--accent); }
.rd-tool__t { font-family: var(--font-display); font-weight: 600; margin: 0; font-size: 1.02rem; }
.rd-tool__d { color: var(--muted); margin: 2px 0 0; font-size: .88rem; }

/* ---------- BOTÓN PÍLDORA ---------- */
.rd-btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 14px 24px; text-decoration: none; font-weight: 600; font-size: .95rem;
  align-self: flex-start; transition: background .2s;
}
.rd-btn:hover { background: var(--accent-dark); }
.rd-btn svg { width: 16px; height: 16px; color: #fff; }
.rd-btn--light { background: #fff; color: var(--accent); }
.rd-btn--light:hover { background: #fff; opacity: .9; }
.rd-btn--light svg { color: var(--accent); }
.rd-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.rd-center { text-align: center; margin-top: 36px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .rd-cards { grid-template-columns: repeat(2, 1fr); }
  .rd-how { grid-template-columns: 1fr; gap: 36px; }
  .rd-how__panel { min-height: 260px; }
}
@media (max-width: 640px) {
  .rd-hero { padding: 56px 0 40px; }
  .rd-sec { padding: 56px 0; }
  .rd-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .rd-cards { grid-template-columns: 1fr; }
  .rd-tools { grid-template-columns: 1fr; }
}
