/* ============================================================
   Einblick KI — Ressourcen / Blog  ·  estilos (.rs)
   Requiere einblick-tokens.css cargado antes.
   ============================================================ */

.rs {
  font-family: var(--ek-body); color: var(--ek-ink); background: var(--ek-bg);
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  padding: 0;
}
.rs *, .rs *::before, .rs *::after { box-sizing: border-box; }
.rs-wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Cabecera ---------- */
.rs-head { margin-bottom: 2.25rem; max-width: 720px; }
.rs-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ek-red); margin: 0 0 1.25rem;
}
.rs-tick { width: 22px; height: 2px; background: var(--ek-red); display: inline-block; }
.rs-title {
  font-family: var(--ek-display); font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1rem;
}
.rs-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ek-muted); margin: 0 0 1.75rem; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip {
  font-family: var(--ek-body); font-size: 13.5px; font-weight: 500; color: var(--ek-muted);
  background: var(--ek-surface); border: 1px solid var(--ek-line); border-radius: 99px;
  padding: 7px 15px; cursor: pointer; transition: all .15s ease;
}
.rs-chip:hover { border-color: var(--ek-line-2); color: var(--ek-ink); }
.rs-chip.is-active { background: var(--ek-ink); color: var(--ek-bg); border-color: var(--ek-ink); }

/* ---------- Lead magnet ---------- */
.rs-magnet {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  background: var(--ek-ink); color: var(--ek-bg); border-radius: var(--ek-radius-l);
  padding: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 2.5rem;
}
.rs-magnet__tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--ek-red); padding: 4px 12px; border-radius: 99px; margin-bottom: 1rem;
}
.rs-magnet__text h2 { font-family: var(--ek-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; margin: 0 0 .6rem; color: #fff; }
.rs-magnet__text p { color: rgba(255,255,255,.72); margin: 0 0 1.25rem; font-size: 15.5px; }
.rs-magnet__form { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-magnet__form input {
  flex: 1; min-width: 200px; font-family: var(--ek-body); font-size: 15px; color: var(--ek-ink);
  background: #fff; border: 1px solid transparent; border-radius: 99px; padding: 13px 20px; outline: none;
}
.rs-magnet__form input:focus { box-shadow: 0 0 0 3px rgba(200,16,46,.4); }
.rs-magnet__form button {
  flex-shrink: 0; font-family: var(--ek-body); font-weight: 600; font-size: 15px; color: #fff;
  background: var(--ek-red); border: none; border-radius: 99px; padding: 13px 24px; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.rs-magnet__form button:hover { transform: translateY(-2px); background: var(--ek-red-hover); }
.rs-magnet__hint { font-size: 12.5px !important; color: rgba(255,255,255,.5) !important; margin: .9rem 0 0 !important; }

.rs-magnet__visual { text-align: center; }
.rs-magnet__stat span { display: block; font-family: var(--ek-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff; font-variant-numeric: tabular-nums; }
.rs-magnet__stat small { color: rgba(255,255,255,.55); font-size: 12.5px; }
.rs-magnet__bars { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 70px; margin: 1rem 0 .5rem; }
.rs-magnet__bars i { width: 26px; background: var(--ek-red); border-radius: 4px 4px 0 0; display: block; }
.rs-magnet__bars i:last-child { background: #fff; }
.rs-magnet__fn { color: rgba(255,255,255,.4); font-size: 11px; }

@media (max-width: 680px) {
  .rs-magnet { grid-template-columns: 1fr; }
  .rs-magnet__visual { display: none; }
}

/* ---------- Artículo destacado ---------- */
.rs-feature {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  background: var(--ek-surface); border: 1px solid var(--ek-line); border-left: 3px solid var(--ek-red);
  border-radius: 0 var(--ek-radius) var(--ek-radius) 0; padding: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1.5rem; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.rs-feature:hover { border-color: var(--ek-line-2); transform: translateY(-2px); }
.rs-feature__body { max-width: 680px; }
.rs-feature h2 { font-family: var(--ek-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.12; margin: .5rem 0; letter-spacing: -0.015em; }
.rs-feature p { color: var(--ek-muted); margin: 0 0 .75rem; font-size: 15.5px; }
.rs-feature__cta { flex-shrink: 0; font-weight: 600; color: var(--ek-red); white-space: nowrap; }

/* ---------- Grid de artículos ---------- */
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rs-card {
  display: flex; flex-direction: column; background: var(--ek-surface); border: 1px solid var(--ek-line);
  border-radius: var(--ek-radius); padding: 1.5rem; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.rs-card:hover { border-color: var(--ek-line-2); transform: translateY(-2px); }
.rs-card h3 { font-family: var(--ek-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; margin: .5rem 0 .6rem; letter-spacing: -0.01em; }
.rs-card p { color: var(--ek-muted); font-size: 14.5px; margin: 0 0 1rem; flex: 1; }

.rs-tagline { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ek-red); }
.rs-meta { font-size: 13px; color: var(--ek-faint); }

@media (prefers-reduced-motion: reduce) { .rs * { transition: none !important; } }
