/* Navbar siempre sólido en esta página */
#navbar {
  background: rgba(10,22,40,0.95) !important;
  border-bottom-color: var(--border) !important;
  backdrop-filter: blur(14px) !important;
}

/* ── PAGE HERO ─────────────────────────────────────────── */
.ch-hero {
  padding: 9rem 5% 5rem;
  background: var(--bg-lt);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.ch-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 90% at 90% 50%, rgba(0,123,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.ch-hero-inner {
  max-width: 860px; margin: 0 auto;
  position: relative; z-index: 1;
}
.ch-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1; margin-bottom: .8rem;
}
.ch-hero h1 em { color: var(--teal); font-style: normal; }
.ch-hero-sub {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.75; max-width: 540px;
  margin-bottom: 1.8rem;
}

/* ── STEP PILLS ────────────────────────────────────────── */
.step-pills {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-bottom: 2rem;
}
.step-pill {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(0,123,255,.08);
  border: 1px solid rgba(0,123,255,.2);
  border-radius: 20px;
  padding: .4rem 1rem .4rem .5rem;
  font-size: .8rem; color: var(--text-muted);
}
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── DISCLAIMER ────────────────────────────────────────── */
.disclaimer {
  display: flex; gap: .9rem; align-items: flex-start;
  background: rgba(0,123,255,.05);
  border: 1px solid rgba(0,123,255,.18);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: .8rem; color: var(--text-muted); line-height: 1.6;
  max-width: 680px;
}
.disclaimer-icon { font-size: 1.1rem; margin-top: .05rem; flex-shrink: 0; }
.disclaimer strong { color: var(--text); }

/* ── TOOLS SECTION ─────────────────────────────────────── */
.ch-section {
  padding: 5rem 5% 2rem;
  max-width: 1060px; margin: 0 auto;
}

.ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

/* ── TOOL CARD ─────────────────────────────────────────── */
.ch-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; gap: .55rem;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .3s, box-shadow .3s;
}
.ch-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), rgba(0,123,255,.3));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.ch-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.ch-card:hover::before { transform: scaleX(1); }

.ch-card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(0,123,255,.1);
  border: 1px solid rgba(0,123,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: .3rem;
}
.ch-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem; font-weight: 700;
}
.ch-card-badge {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 3px;
  align-self: flex-start;
}
.badge-remote {
  background: rgba(0,123,255,.1); color: var(--teal);
  border: 1px solid rgba(0,123,255,.2);
}
.badge-diag {
  background: rgba(240,192,64,.1); color: #b88c00;
  border: 1px solid rgba(240,192,64,.3);
}
body.light-mode .badge-diag { color: #8a6800; }

.ch-card-desc {
  font-size: .85rem; color: var(--text-muted);
  line-height: 1.6; flex: 1;
}
.ch-card-when {
  font-size: .78rem; color: var(--teal);
  border-top: 1px solid var(--border);
  padding-top: .7rem; margin-top: .3rem;
  line-height: 1.5;
}
.ch-card-when strong {
  display: block; margin-bottom: .15rem;
  font-size: .75rem; letter-spacing: .05em;
  text-transform: uppercase; opacity: .7;
}
.ch-card-action {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600;
  color: var(--text-muted); margin-top: .5rem;
  transition: color .2s;
}
.ch-card:hover .ch-card-action { color: var(--teal); }
.ch-card-action svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── CONTACT STRIP ─────────────────────────────────────── */
.ch-contact {
  max-width: 1060px; margin: 3rem auto 0;
  padding: 0 5% 5rem;
}
.ch-contact-box {
  background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.ch-contact-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: #fff; margin-bottom: .3rem;
}
.ch-contact-box p {
  font-size: .88rem; color: rgba(255,255,255,.7);
  line-height: 1.55; max-width: 380px;
}

/* ── LEGAL ─────────────────────────────────────────────── */
.ch-legal {
  max-width: 1060px; margin: 0 auto;
  padding: 2rem 5% 4rem;
  font-size: .78rem; color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.ch-legal h4 {
  font-family: 'Syne', sans-serif;
  font-size: .82rem; font-weight: 700;
  color: var(--text); margin-bottom: .5rem;
}

/* ── BACK LINK ─────────────────────────────────────────── */
.back-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--text-muted); font-size: .83rem;
  text-decoration: none; margin-bottom: 1.4rem;
  transition: color .2s;
}
.back-btn:hover { color: var(--teal); }
.back-btn svg { width: 15px; height: 15px; }

/* ── NAV ACTIVE STATE (esta página) ───────────────────── */
.nav-tools-active {
  color: var(--teal) !important;
  border-color: var(--teal) !important;
  background: rgba(0,123,255,.08) !important;
}

/* ── MOBILE ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-hero { padding: 8rem 5% 3.5rem; }
  .ch-contact-box { flex-direction: column; align-items: flex-start; }
  .step-pills { flex-direction: column; align-items: flex-start; }
}