/* Product chapters share Cirene's public identity; aliases support existing illustrations. */
.cirene-product {
  --bg-page: var(--soft);
  --bg-surface: var(--white);
  --bg-hover: var(--soft);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-tertiary: var(--muted);
  --border: var(--line);
  --radius-md: var(--radius);
  --accent: var(--blue);
  --accent-text: var(--blue-dark);
  --accent-subtle: color-mix(in srgb, var(--blue) 10%, var(--white));
}
.product-navigation {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.product-navigation .shell {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px 20px;
  padding-block: 12px;
}
.product-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.product-navigation a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--blue);
  font-weight: 600;
}
.product-context {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.product-context a,
.pv-hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.product-actions .inline-link {
  color: var(--muted);
}
.pv-h1,
.pv-chap__title,
.pv-cta h2 {
  font-weight: 550;
  letter-spacing: -0.04em;
}
.pv-shot,
.pv-media__visual {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}
.pv-shot {
  aspect-ratio: 1180/760;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pv-media__visual {
  aspect-ratio: 1180/760;
  border-right: 1px solid var(--line);
}
.pv-shot iframe,
.pv-media__visual iframe {
  display: block;
  width: 1180px;
  height: 760px;
  border: 0;
  transform: scale(calc(100cqw / 1180px));
  transform-origin: top left;
  pointer-events: none;
}
.pv-hint {
  margin: 12px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.pv-route-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.pv-route-card h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 550;
}
.pv-route-card ol {
  padding-left: 24px;
  line-height: 1.7;
  color: var(--muted);
}
.pv-route-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-scope {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.product-scope a {
  text-decoration: underline;
}
.pv-media__visual .pv-route-card {
  height: 100%;
  border: 0;
  border-radius: 0;
}
@media (min-width: 1025px) {
  .pv-shot--live iframe {
    pointer-events: auto;
  }
}
@media (max-width: 1024px) {
  .pv-shot,
  .pv-media__visual {
    aspect-ratio: auto;
    min-height: 620px;
  }
  .pv-shot iframe,
  .pv-media__visual iframe {
    width: 100%;
    height: 620px;
    transform: none;
  }
  .pv-media__visual:has(.pv-route-card) {
    min-height: auto;
  }
}
@media (max-width: 600px) {
  .product-navigation .shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
  }
  .product-navigation a {
    font-size: 12px;
  }
  .cirene-product .pv-hero {
    padding-top: 48px;
  }
  .pv-route-card {
    padding: 22px;
  }
}
/* hero */
.pv-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 104px 5vw 40px;
}
.pv-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 16px;
}
.pv-eyebrow b {
  font-weight: 500;
  color: var(--text-tertiary);
}
.pv-h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.06;
  color: var(--text-primary);
  margin: 0 0 20px;
  max-width: 840px;
  white-space: normal;
}
.pv-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0;
}
/* capítulos */
.pv-chap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 5vw 8px;
}
.pv-chap__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}
@media (max-width: 900px) {
  .pv-chap__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.pv-chap__num {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin: 0 0 10px;
}
.pv-chap__title {
  font-size: clamp(1.6rem, 3.1vw, 2.3rem);
  line-height: 1.12;
  color: var(--text-primary);
  margin: 0;
}
.pv-chap__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
  justify-self: end;
}
@media (max-width: 900px) {
  .pv-chap__desc {
    justify-self: start;
  }
}
/* filas media+texto (feature con visual de producto) — alternan dirección */
.pv-media {
  display: grid;
  grid-template-columns: 7fr 5fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  margin-top: 20px;
}

.pv-media--flip {
  grid-template-columns: 5fr 7fr;
}
.pv-media--flip .pv-media__visual {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--border);
}

.pv-media__body {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pv-media__body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.pv-media__body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 900px) {
  .pv-media,
  .pv-media--flip {
    grid-template-columns: 1fr;
  }
  .pv-media__visual,
  .pv-media--flip .pv-media__visual {
    order: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
}
/* grilla de cards de texto (3-col cuando son exactamente 3) */
.pv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.pv-cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .pv-cards,
  .pv-cards--3 {
    grid-template-columns: 1fr;
  }
}
.pv-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.pv-card__body {
  padding: 22px 24px;
}
.pv-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 7px;
}
.pv-card p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
}
/* arte iso (cuando NO hay pantalla viva — cero shots muertos) */
.pv-art {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 38px;
  display: flex;
  justify-content: center;
}
.pv-art svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}
.iso-line {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.iso-face {
  fill: var(--bg-surface);
  stroke: var(--text-tertiary);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.iso-face--acc {
  fill: var(--accent-subtle);
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.iso-dot {
  fill: var(--accent);
}
.iso-ghost {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-opacity: 0.55;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.iso-faint {
  fill: none;
  stroke: var(--text-tertiary);
  stroke-opacity: 0.5;
  stroke-width: 1;
  stroke-linecap: round;
}
.iso-faint--acc {
  stroke: var(--accent);
  stroke-opacity: 0.6;
}
.iso-acc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.iso-face--accside {
  fill: var(--bg-surface);
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.iso-face--top {
  fill: var(--bg-page);
}
/* cross-links numerados (capítulos hermanos) */
.pv-cross {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 5vw 56px;
}
.pv-cross h2 {
  font-size: 12px;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}
.pv-cross__row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 6px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background 150ms ease-out;
}
.pv-cross__row:last-child {
  border-bottom: 1px solid var(--border);
}
.pv-cross__row:hover {
  background: var(--bg-hover);
}
.pv-cross__num {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent-text);
  flex: none;
  width: 42px;
}
.pv-cross__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pv-cross__label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.pv-cross__tag {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.pv-cross__go {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-text);
  flex: none;
  transition: transform 150ms ease-out;
}
.pv-cross__row:hover .pv-cross__go {
  transform: translateX(4px);
}
/* cta */
.pv-cta {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 5vw 104px;
  text-align: center;
}
.pv-cta h2 {
  font-size: 1.7rem;
  margin: 0 0 10px;
}
.pv-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 22px;
}
