/* =============================================================
   Argus Salud — Paneles informativos de programa
   Hereda tokens y base de ../estilo-pagina/styles.css
   Comparten estructura: portada, objetivo, qué incluye, beneficios
   ============================================================= */

.prog-body {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Cabecera ===== */
.prog-header {
  background: rgba(246, 249, 253, .9);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.prog-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}
.prog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .25s ease, transform .25s var(--ease);
}
.prog-back svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.prog-back:hover { color: var(--color-primary); transform: translateX(-3px); }

/* ===== Portada ===== */
.prog-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 76px 0 68px;
}
.prog-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.prog-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Difuminado neutro: oscurece el lado del texto para que se lea,
   y deja el resto de la foto con sus colores originales. */
.prog-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(6, 12, 24, .92) 10%,
      rgba(6, 12, 24, .74) 40%,
      rgba(6, 12, 24, .34) 68%,
      rgba(6, 12, 24, .06) 100%);
}
.prog-hero-inner { max-width: 760px; }
.prog-hero .tag {
  background: rgba(255, 255, 255, .13);
  color: #cfe4fb;
  border-color: rgba(255, 255, 255, .26);
}
.prog-hero h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.16;
  margin-bottom: 16px;
}
.prog-hero-lead {
  color: rgba(224, 236, 250, .9);
  font-size: 1.05rem;
  margin: 0;
  max-width: 640px;
}

/* ===== Cuerpo ===== */
.prog-main { flex: 1; padding: 66px 0 0; }
.prog-wrap { max-width: 940px; margin: 0 auto; }

.prog-seccion { margin-bottom: 56px; }
.prog-seccion-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.prog-seccion-head .icono {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(22, 87, 204, .3);
}
.prog-seccion-head .icono svg {
  width: 22px; height: 22px;
  stroke: #fff; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.prog-seccion-head h2 {
  font-size: 1.42rem;
  margin: 0;
  color: var(--color-primary-dark);
}

/* --- Objetivo --- */
.prog-objetivo {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.prog-objetivo p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text);
}
.prog-objetivo p + p { margin-top: 14px; }

/* --- Qué incluye ---
   Por defecto una columna. Los programas con muchos pasos de una sola
   línea usan .incluye-2col, que los reparte en dos columnas y deja a
   ancho completo solo los que traen subpuntos. */
.incluye {
  list-style: none;
  counter-reset: paso;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.incluye-2col { grid-template-columns: 1fr 1fr; }
.incluye-2col > li:has(.inc-sub) { grid-column: 1 / -1; }

.incluye > li {
  counter-increment: paso;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.incluye > li:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 155, 240, .38);
  box-shadow: var(--shadow-md);
}
.incluye > li::before {
  content: counter(paso, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid rgba(47, 155, 240, .22);
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.inc-cuerpo { flex: 1; min-width: 0; }
.inc-cuerpo > h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-primary-dark);
  line-height: 1.45;
}
.inc-cuerpo > h3 + .inc-sub { margin-top: 13px; }

/* Subpuntos dentro de una etapa */
.inc-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.inc-sub li {
  position: relative;
  padding-left: 20px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
/* Etiqueta del beneficio emparejado con cada servicio */
.inc-sub li strong {
  color: var(--color-primary);
  font-weight: 600;
}
.inc-sub li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

/* --- Beneficios --- */
.beneficios {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.beneficios li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: .94rem;
  line-height: 1.6;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.beneficios li:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 155, 240, .38);
  box-shadow: var(--shadow-md);
}
.beneficios li svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  stroke: #fff; fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Nota al pie del contenido ===== */
.prog-nota {
  background: var(--color-surface-alt);
  border: 1px dashed rgba(47, 155, 240, .34);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: .92rem;
  color: var(--color-text-muted);
  margin-bottom: 56px;
}
.prog-nota strong { color: var(--color-primary-dark); font-weight: 600; }

/* ===== Otros programas ===== */
.prog-otros { margin-bottom: 76px; }
.prog-otros h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}
.otros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.otro {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-size: .93rem;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s var(--ease), color .3s ease;
}
.otro:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 155, 240, .42);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}
.otro svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  stroke: var(--color-primary); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Pie ===== */
.prog-footer {
  background: var(--ink-900);
  color: rgba(163, 187, 214, .6);
  padding: 24px 0;
  text-align: center;
  font-size: .84rem;
}
.prog-footer p { margin: 0; color: inherit; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 820px) {
  .beneficios { grid-template-columns: 1fr; }
  .otros-grid { grid-template-columns: 1fr; }
  .incluye-2col { grid-template-columns: 1fr; }
  .prog-hero { padding: 54px 0 48px; }
  .prog-main { padding-top: 48px; }
  .prog-seccion { margin-bottom: 44px; }
  .prog-objetivo { padding: 24px 22px; }
}

@media (max-width: 520px) {
  .prog-header-inner { height: 68px; }
  .incluye > li { padding: 18px; gap: 13px; }
  .incluye > li::before { width: 34px; height: 34px; font-size: .85rem; }
  .prog-seccion-head h2 { font-size: 1.22rem; }
}
