/* =========================================================
   JM-Insumos — Fichas de producto
   (se carga después de style.css)
========================================================= */
:root { --navy: #2a1f4e; --navy-2: #3a2e63; --lav: #f3eefb; --sky: #eef2fc; }

.pd-section { padding: 96px var(--gutter); }
.pd-section--alt { background: var(--color-bg-light); }
.pd-inner { max-width: var(--container); margin: 0 auto; }
.pd-head { max-width: 720px; margin-bottom: 48px; }
.pd-h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pd-lead { font-size: var(--fs-18); color: var(--color-gray-text); line-height: 1.6; }
.pd-source { margin-top: 28px; font-size: 0.8125rem; color: var(--color-gray-text); }

/* Fracciones apiladas (3 sobre 8) */
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  font-size: 0.72em;
  line-height: 1.05;
  margin: 0 0.05em;
}
.frac > span:last-child { border-top: 1px solid currentColor; padding: 0 0.15em; }

/* ---------- Encabezado del producto ---------- */
.pd-hero {
  padding: calc(var(--nav-h) + 56px) var(--gutter) 88px;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-light) 100%);
}
.pd-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pd-crumbs { font-size: var(--fs-14); color: var(--color-gray-text); margin-bottom: 20px; }
.pd-crumbs a { color: var(--color-blue-dark); }
.pd-crumbs a:hover { text-decoration: underline; }
.pd-crumbs span[aria-hidden] { margin: 0 6px; }
.pd-hero__brand { font-weight: 600; color: var(--color-purple); margin-bottom: 10px; }
.pd-hero__title {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.pd-hero__lead { font-size: var(--fs-20); color: var(--color-gray-text); line-height: 1.55; max-width: 560px; }
.pd-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.pd-hero__media { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1; }
.pd-hero__media::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(146,88,200,0.45);
}
.pd-hero__media::after {
  content: "";
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  border: 1px solid rgba(82,127,213,0.35);
}
.pd-hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(42,31,78,0.14);
}
.pd-dot { position: absolute; z-index: 2; border-radius: 50%; }
.pd-dot--a { width: 34px; height: 34px; background: var(--color-purple); top: 6%; right: 2%; }
.pd-dot--b { width: 26px; height: 26px; background: var(--color-blue); bottom: 10%; left: -2%; }

/* ---------- Ventajas ---------- */
.pd-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pd-benefit { padding: 28px; border-radius: var(--radius-16); background: var(--lav); }
.pd-benefit:nth-child(2) { background: var(--sky); }
.pd-benefit h3 { font-size: var(--fs-20); line-height: 1.3; margin: 18px 0 10px; color: var(--navy); }
.pd-benefit p { color: #3b4552; line-height: 1.6; }
.pd-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-purple);
  color: #fff;
}
.pd-icon--blue { background: var(--color-blue); }
.pd-icon svg { width: 24px; height: 24px; }

/* ---------- Cifras ---------- */
.pd-stats { background: var(--navy); color: #fff; padding: 88px var(--gutter); }
.pd-stats .pd-lead { color: rgba(255,255,255,0.72); }
.pd-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-stat { background: var(--navy-2); border-radius: var(--radius-16); padding: 28px 28px 30px; }
.pd-stat__value {
  display: block;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.pd-stat__value small { font-size: 0.55em; font-weight: 600; margin-left: 4px; }
.pd-stat__label { color: rgba(255,255,255,0.72); line-height: 1.5; }
.pd-stats .pd-source { color: rgba(255,255,255,0.5); }

/* ---------- Cómo funciona (secuencia real de 4 pasos) ---------- */
.pd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; list-style: none; }
.pd-step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-16);
  background: var(--lav);
  counter-increment: paso;
}
.pd-step:nth-child(even) { background: var(--sky); }
.pd-step::before {
  content: counter(paso);
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-purple);
}
.pd-step:nth-child(even)::before { color: var(--color-blue); }
.pd-step h3 { font-size: var(--fs-18); color: var(--navy); margin: 18px 0 8px; }
.pd-step p { color: #3b4552; font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Aplicaciones ---------- */
.pd-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pd-app {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 16px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  background: #fff;
}
.pd-app h3 { font-size: var(--fs-18); color: var(--navy); line-height: 1.3; }
.pd-app p { grid-column: 1 / -1; margin-top: 14px; color: var(--color-gray-text); line-height: 1.55; }

/* ---------- Tablas técnicas ---------- */
.pd-specs-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.pd-card { background: var(--lav); border-radius: var(--radius-16); padding: 28px; }
.pd-card__title { display: flex; align-items: center; gap: 14px; font-size: var(--fs-20); color: var(--navy); margin-bottom: 18px; }
.pd-dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; }
.pd-dl dt { color: var(--color-gray-text); }
.pd-dl dd { font-weight: 600; color: var(--navy); }
.pd-table-wrap { overflow-x: auto; border: 1px solid var(--color-border-medium); border-radius: var(--radius-14); background: #fff; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pd-table th, .pd-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.pd-table th:first-child, .pd-table td:first-child { text-align: left; }
.pd-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.pd-table tbody tr:nth-child(even) { background: #f7f8fd; }
.pd-table tbody th { font-weight: 600; color: var(--navy); }
.pd-table tbody tr:last-child > * { border-bottom: 0; }
.pd-table--colim thead th.is-low { background: var(--color-purple); }
.pd-table--colim thead th.is-high { background: var(--color-blue); }
.pd-note { margin-top: 14px; font-size: var(--fs-14); color: var(--color-purple); }
.pd-callout {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-16);
  background: var(--lav);
}
.pd-callout p { line-height: 1.55; }

/* Gráfica Flash 3D */
.pd-chart-grid { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 28px; align-items: stretch; margin-top: 56px; }
.pd-chart { border: 1px solid var(--color-border); border-radius: var(--radius-16); padding: 28px 24px 20px; background: #fff; }
.pd-chart__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-14); margin-bottom: 18px; }
.pd-chart__legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; background: #6b7580; }
.pd-chart__legend span.is-flash::before { background: var(--color-purple); }
.pd-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; height: 240px; align-items: end; border-bottom: 1px solid var(--color-border-medium); }
.pd-bars__group { display: flex; gap: 6px; align-items: flex-end; height: 100%; justify-content: center; }
.pd-bar { position: relative; width: 40%; max-width: 42px; background: #6b7580; border-radius: 4px 4px 0 0; height: calc(var(--v) / 12 * 100%); }
.pd-bar.is-flash { background: var(--color-purple); }
.pd-bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-bars__labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 10px; text-align: center; font-size: 0.8125rem; color: var(--color-gray-text); line-height: 1.3; }
.pd-highlight { background: var(--lav); border-radius: var(--radius-16); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.pd-highlight strong { display: block; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; color: var(--color-purple); margin-bottom: 8px; }
.pd-highlight div:last-child strong { color: var(--color-blue); }
.pd-highlight p { color: #3b4552; line-height: 1.45; }

/* Gantry, camilla, ECG */
.pd-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pd-trio .pd-card:nth-child(2) { background: var(--sky); }
.pd-kv { display: flex; flex-direction: column; gap: 14px; }
.pd-kv div { display: flex; flex-direction: column; }
.pd-kv span { font-size: var(--fs-14); color: var(--color-gray-text); }
.pd-kv strong { color: var(--navy); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

/* ---------- Instalación ---------- */
.pd-install { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pd-plan { border: 1px solid var(--color-border); border-radius: var(--radius-16); padding: 20px; background: #fff; }
.pd-plan figcaption { margin-top: 12px; font-size: var(--fs-14); color: var(--color-gray-text); }
.pd-rows { display: flex; flex-direction: column; gap: 6px; }
.pd-rows div { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; padding: 14px 18px; border-radius: 12px; }
.pd-rows div:nth-child(odd) { background: var(--lav); }
.pd-rows dt { color: var(--color-gray-text); }
.pd-rows dd { font-weight: 600; color: var(--navy); }

/* ---------- Servicio integral ---------- */
.pd-service { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; }
.pd-service .pd-benefit { background: var(--lav); }
.pd-service .pd-benefit:nth-child(2), .pd-service .pd-benefit:nth-child(3) { background: var(--sky); }
.pd-service .pd-benefit:nth-child(4) { background: var(--lav); }
.pd-comodato {
  grid-column: 3;
  grid-row: 1 / span 2;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-16);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pd-comodato .pd-icon { margin-bottom: 26px; }
.pd-comodato__eyebrow { color: #a9c1ff; font-weight: 600; margin-bottom: 10px; }
.pd-comodato h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; margin-bottom: 14px; }
.pd-comodato p { color: rgba(255,255,255,0.76); line-height: 1.55; }
.pd-comodato .featured__formula { margin: 24px 0 0; }
.pd-service .pd-benefit h3 { margin-top: 16px; }

/* ---------- Llamado final ---------- */
.pd-cta { background: var(--navy); color: #fff; padding: 88px var(--gutter); text-align: center; }
.pd-cta h2 { font-size: var(--fs-h2); line-height: 1.15; margin-bottom: 14px; }
.pd-cta p { color: rgba(255,255,255,0.75); font-size: var(--fs-18); max-width: 620px; margin: 0 auto; }
.pd-cta .pd-hero__actions { justify-content: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .pd-hero__inner, .pd-specs-grid, .pd-install, .pd-chart-grid { grid-template-columns: 1fr; }
  .pd-hero__media { width: min(78%, 400px); order: -1; margin-bottom: 12px; }
  .pd-steps { grid-template-columns: repeat(2, 1fr); }
  .pd-apps, .pd-stats__grid, .pd-trio { grid-template-columns: repeat(2, 1fr); }
  .pd-service { grid-template-columns: 1fr 1fr; }
  .pd-comodato { grid-column: 1 / -1; grid-row: auto; }
  .pd-highlight { flex-direction: row; flex-wrap: wrap; }
  .pd-highlight > div { flex: 1 1 220px; }
}
@media (max-width: 768px) {
  .pd-section, .pd-stats, .pd-cta { padding-top: 64px; padding-bottom: 64px; }
  .pd-hero { padding-bottom: 56px; }
  .pd-benefits, .pd-steps, .pd-apps, .pd-stats__grid, .pd-trio, .pd-service { grid-template-columns: 1fr; }
  .pd-hero__actions a { width: 100%; justify-content: center; }
  .pd-bars { height: 200px; gap: 6px; }
  .pd-bars__labels { gap: 6px; font-size: 0.6875rem; }
  .pd-bar span { font-size: 0.6875rem; }
  .pd-rows div { grid-template-columns: 1fr; gap: 2px; }
  .pd-dl { grid-template-columns: 1fr; gap: 2px; }
  .pd-dl dd { margin-bottom: 10px; }
}

/* Evita que las tablas anchas estiren la página en celular */
.pd-specs-grid > *, .pd-chart-grid > *, .pd-install > *, .pd-hero__inner > * { min-width: 0; }

/* Ajustes finos */
.pd-stat__value--wide { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); white-space: nowrap; }
.pd-table thead th, .pd-table th[scope="row"] { white-space: normal; }
.pd-table thead th { min-width: 110px; }
.pd-table th[scope="row"] { min-width: 190px; }
.pd-callout .pd-icon, .pd-card__title .pd-icon, .pd-app .pd-icon { flex-shrink: 0; }
.pd-highlight strong { font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem); white-space: nowrap; }
.pd-highlight__pre { display: block; font-weight: 600; color: var(--color-purple); margin-bottom: 2px; }
.pd-comodato h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.75rem); }
