/* Track-IA — Minisitio de noticias y normativa
   Extiende styles.css (misma paleta, tipografía y componentes). No modifica el sitio principal. */

body { counter-reset: sec; }
.nav.open { right: 0; }

/* Hero compacto */
.news-hero { padding: 148px 0 84px; }
.news-hero .container { position: relative; z-index: 1; }
.news-hero h1 { max-width: 760px; }
.news-hero .hero-subtitle { max-width: 600px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark); transition: color var(--ease);
}
.back-link:hover { color: #fff; }
.header-actions .btn i { font-size: 16px; }

/* Noticia destacada */
.news-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-bottom: 20px;
  background: #fff; border: var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
.video-box { position: relative; min-height: 340px; background: linear-gradient(160deg, var(--navy), var(--deep) 70%, var(--blue-d) 160%); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; color: #fff;
  background-image:
    linear-gradient(rgba(141,184,245,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141,184,245,.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.video-placeholder > i { font-size: 64px; color: var(--sky); }
.video-note { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 14px; }
.video-play i { font-size: 72px; color: var(--sky); transition: transform var(--ease); }
.video-play:hover i { transform: scale(1.06); }
.news-feature-body { padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.news-feature-body h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.news-feature-body p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.news-feature-body p em { color: var(--deep); font-style: normal; font-weight: 500; }
.news-points { display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.news-points li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.news-points i { color: var(--blue); font-size: 18px; flex: none; margin-top: 1px; }
.news-points strong { color: var(--ink); font-weight: 600; }
.news-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-date { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.src {
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-d); background: var(--pale); padding: 6px 10px; border-radius: 6px;
}
.news-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px;
  font-weight: 600; font-size: 14.5px; color: var(--blue-d); transition: gap var(--ease), color var(--ease);
}
.news-link:hover { gap: 10px; color: var(--deep); }
.news-link i { font-size: 16px; }

/* Grilla de noticias */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  position: relative; background: #fff; border: var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.news-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue); }
.news-card:hover, .news-card.reveal.in:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.news-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Normas */
.norm-grid-2 { grid-template-columns: repeat(2, 1fr); }
.norm-list { display: grid; gap: 9px; margin-bottom: 22px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.norm-list li { display: flex; gap: 10px; align-items: flex-start; }
.norm-list i { color: var(--blue); font-size: 17px; flex: none; margin-top: 2px; }
.norm-list strong { color: var(--ink); font-weight: 600; }
.norm-card.hot .norm-list { color: var(--on-dark); }
.norm-card.hot .norm-list i { color: var(--sky); }
.norm-card.hot .norm-list strong { color: #fff; }
.norm-card .news-link { margin-top: 16px; padding-top: 0; }
.norm-card.hot .news-link { color: var(--sky); }
.norm-card.hot .news-link:hover { color: #fff; }

.compare { margin-top: 20px; background: #fff; border: var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-row { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 16px; padding: 14px 24px; font-size: 14.5px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.compare-row:first-child { border-top: 0; }
.compare-row span:first-child { font: 500 11.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); }
.compare-head { background: var(--mist); font-weight: 700; color: var(--ink); font-size: 15px; }
.compare-head span { font: 700 15px/1.4 var(--font) !important; letter-spacing: -.01em !important; text-transform: none !important; color: var(--ink) !important; }

.ins-note { color: var(--on-dark); font-size: 15px; margin-top: 4px; }
.insurance { margin-top: 20px; }

/* Medicamentos */
.med-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.med-intro { display: grid; gap: 18px; color: var(--on-dark); font-size: 17px; line-height: 1.6; }
.med-intro strong { color: #fff; font-weight: 600; }
.status.next-dark {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono);
  padding: 6px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .1em;
  background: rgba(255,255,255,.08); color: var(--sky); border: 1px solid var(--dark-line);
}
.status.next-dark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.med-items { display: grid; gap: 12px; }
.med-items li {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  background: var(--dark-fill); border: 1px solid var(--dark-line); border-radius: var(--r);
}
.med-items li > i { font-size: 28px; color: var(--sky); flex: none; }
.med-items h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.med-items p { color: var(--on-dark); font-size: 14.5px; }

/* Fuentes */
.sources { padding: 88px 0; }
.src-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.src-list a {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: var(--border);
  border-radius: var(--r); font-weight: 500; font-size: 15px; transition: border-color var(--ease), box-shadow var(--ease);
}
.src-list a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.src-list a > i:first-child { color: var(--blue); font-size: 22px; }
.src-list a span { flex: 1; }
.src-list a > i:last-child { color: var(--muted); font-size: 16px; }

/* CTA */
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 1024px) {
  .news-feature { grid-template-columns: 1fr; }
  .video-box { min-height: 0; aspect-ratio: 16 / 9; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .norm-grid-2 { grid-template-columns: 1fr; }
  .med-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .news-hero { padding: 116px 0 56px; }
  .sources { padding: 64px 0; }
}
@media (max-width: 640px) {
  .news-grid, .src-list { grid-template-columns: 1fr; }
  .news-feature-body { padding: 24px 22px; }
  .compare-row { grid-template-columns: 1fr 1fr; padding: 12px 18px; }
  .compare-row span:first-child { grid-column: 1 / -1; }
  .compare-head { display: none; }
  .cta-btns .btn { width: 100%; }
}

/* Medicamentos: énfasis en lo que Track-IA ya hace */
.med-lead { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.med-lead span { color: var(--sky); }
.med-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.med-tags span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--dark-line); background: var(--dark-fill); border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; }
.med-tags i { color: var(--sky); font-size: 17px; }
.video-yt { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 13px; padding: 9px 14px; }
