/* ======================================================================
   PREVENCIÓN VISUAL + HORARIOS
   1. Composición  2. Pestañas/esquemas  3. Horario  4. Móvil/accesibilidad
   Dibujos SVG editables en index.html; no se descargan imágenes adicionales.
   ====================================================================== */

/* 1 · COMPOSICIÓN. Fondo con profundidad y una pieza visual protagonista. */
.prevention-explorer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 88px;
  background: linear-gradient(120deg, #fbfbfe 15%, #f1f2fa 62%, #fbf2f7);
}
.prevention-ambient {
  position: absolute;
  z-index: -1;
  width: 780px;
  height: 780px;
  top: -180px;
  right: -130px;
  border: 1px solid #d9daee70;
  border-radius: 50%;
  background: radial-gradient(circle, #e4ddf64a 0%, transparent 64%);
  pointer-events: none;
}
.prevention-ambient::before,
.prevention-ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid #d9daee66;
  inset: 65px;
}
.prevention-ambient::after {
  inset: 130px;
}
.prevention-layout {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 76px;
  align-items: center;
}
.prevention-explorer .prevention-intro {
  padding-block: 16px;
}
.prevention-explorer .prevention-intro .eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.clinical-eyebrow-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #c91f520b;
}
.prevention-explorer .prevention-intro .page-title {
  font-size: clamp(40px, 4.3vw, 58px);
  letter-spacing: -2.5px;
  line-height: 1.12;
  max-width: 560px;
  margin-bottom: 26px;
}
.prevention-explorer .page-title > span {
  color: #ac275c;
}
.prevention-explorer .prevention-intro > p:not(.eyebrow):not(.medical-source) {
  max-width: 450px;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.perspective-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 32px;
}
.perspective-note strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.55;
}
.perspective-note div > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3px;
}
.perspective-symbol {
  width: 61px;
  height: 61px;
  position: relative;
  flex-shrink: 0;
}
.perspective-symbol span {
  width: 31px;
  height: 31px;
  border: 1px solid #abb6d1;
  border-radius: 50%;
  position: absolute;
  background: #e7ebf584;
  margin: 0 !important;
  transition: transform 0.5s var(--motion-ease);
}
.perspective-symbol span:nth-child(1) {
  left: 4px;
  top: 8px;
}
.perspective-symbol span:nth-child(2) {
  left: 24px;
  top: 8px;
  background: #efdae688;
  border-color: #cd8daa;
}
.perspective-symbol span:nth-child(3) {
  left: 14px;
  top: 27px;
  background: #d9d9ed88;
}
.perspective-note:hover .perspective-symbol span:nth-child(1) {
  transform: translate(-3px, -2px);
}
.perspective-note:hover .perspective-symbol span:nth-child(2) {
  transform: translate(3px, -2px);
}
.perspective-note:hover .perspective-symbol span:nth-child(3) {
  transform: translateY(3px);
}
.prevention-cta {
  border-radius: 10px;
  background: var(--logo-blue);
  font-size: 12px;
}
.prevention-explorer .prevention-intro > .medical-source {
  margin: 19px 0 0;
  font-size: 10px;
  color: #737a91;
  max-width: none;
}

/* 2 · PESTAÑAS Y ESCENAS. Los paneles conservan altura para evitar saltos.
 * Solo el panel visible anima sus vectores; son pulsos finitos, sin autoplay.
 */
.clinical-showcase {
  --scene-accent: #b52c65;
  background: #ffffffde;
  border: 1px solid #fff;
  border-radius: 25px;
  box-shadow:
    0 23px 65px #34346415,
    0 2px 8px #34346405;
  padding: 23px;
  min-width: 0;
}
.clinical-showcase[data-topic="vph"] {
  --scene-accent: #344e94;
}
.clinical-showcase[data-topic="seguimiento"] {
  --scene-accent: #6d4385;
}
.clinical-showcase-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 3px 19px;
}
.clinical-showcase-top > span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #65708f;
}
.clinical-showcase-top .icon {
  width: 28px;
  height: 28px;
  color: var(--scene-accent);
  transition: color 0.3s;
}
.clinical-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 13px;
  border: 1px solid #e7e8f2;
  background: #f2f3f8;
  margin-bottom: 20px;
}
.clinical-tabs button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #69718b;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition:
    color 0.3s,
    background 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}
.clinical-tabs button > span {
  font-size: 8px;
  color: #939bb0;
}
.clinical-tabs button[aria-selected="true"] {
  color: var(--scene-accent);
  background: #fff;
  border-color: #e3e5ef;
  box-shadow: 0 3px 8px #171d4d0c;
}
.clinical-tabs button[aria-selected="true"] > span {
  color: var(--scene-accent);
}
.clinical-tabs button:hover {
  color: var(--scene-accent);
  background: #ffffffb3;
}
.clinical-tabs button:active {
  transform: scale(0.97);
}
.clinical-panel {
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid #e8e6f1;
  background: white;
}
.clinical-showcase:not([data-enhanced]) .clinical-panel + .clinical-panel {
  margin-top: 24px;
}
.clinical-showcase[data-enhanced] .clinical-panel:not([hidden]) {
  animation: clinical-panel-in 0.5s var(--motion-ease) both;
}
.clinical-visual {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #fefbff, #eeecf8);
  border-bottom: 1px solid #e8e6f1;
}
[data-clinical-panel="vph"] .clinical-visual {
  background: radial-gradient(ellipse at 50% 50%, #fbfdff, #eaf0fb);
}
[data-clinical-panel="seguimiento"] .clinical-visual {
  background: radial-gradient(ellipse at 50% 50%, #fefcff, #eeeaf7);
}
.clinical-scene {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--motion-ease);
}
.clinical-visual:hover .clinical-scene {
  transform: scale(1.04);
}
.scene-kicker {
  position: absolute;
  left: 18px;
  top: 15px;
  z-index: 1;
  color: #5e6685;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.scene-caption {
  position: absolute;
  left: 18px;
  bottom: 13px;
  color: #7c829b;
  font-size: 8px;
}
.scene-index {
  position: absolute;
  right: 14px;
  bottom: 0;
  color: #7883ac12;
  font-size: 78px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -5px;
}
.clinical-panel-copy {
  padding: 27px 25px;
  min-height: 199px;
}
.clinical-panel-copy .eyebrow {
  color: var(--scene-accent);
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.clinical-panel-copy h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 13px;
}
.clinical-panel-copy > p:last-child {
  font-size: 12px;
  line-height: 1.85;
}
.clinical-showcase-footer {
  padding: 20px 3px 0;
  display: flex;
  align-items: center;
  gap: 13px;
}
.clinical-showcase-footer > span:not(.clinical-progress) {
  color: #7b8298;
  font-size: 9px;
  margin-left: auto;
}
.clinical-showcase-footer > .icon {
  color: var(--scene-accent);
  width: 17px;
  height: 17px;
}
.clinical-progress {
  display: flex;
  align-items: center;
  gap: 5px;
}
.clinical-progress i {
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: #cfd3e3;
  transition:
    width 0.35s,
    background 0.35s;
}
.clinical-progress i.is-current {
  width: 23px;
  background: var(--scene-accent);
}
.cell-particle,
.molecular-strand,
.molecule-dot,
.step-node {
  transform-box: fill-box;
  transform-origin: center;
}
.clinical-panel:not([hidden]) .cell-particle {
  animation: cell-arrive 3.8s var(--motion-ease) both;
}
.clinical-panel:not([hidden]) .cell-two {
  animation-delay: 0.12s;
}
.clinical-panel:not([hidden]) .cell-three {
  animation-delay: 0.23s;
}
.clinical-panel:not([hidden]) .scene-scan {
  animation: scan-pass 3.5s ease-out both;
}
.clinical-panel:not([hidden]) .molecular-strand {
  animation: molecule-arrive 3.6s var(--motion-ease) both;
}
.clinical-panel:not([hidden]) .molecule-dot {
  animation: cell-arrive 3.6s var(--motion-ease) both;
}
.clinical-panel:not([hidden]) .step-node {
  animation: node-arrive 0.8s var(--motion-ease) both;
}
.clinical-panel:not([hidden]) .node-two {
  animation-delay: 0.15s;
}
.clinical-panel:not([hidden]) .node-three {
  animation-delay: 0.3s;
}
.clinical-panel:not([hidden]) .connection-flow {
  animation: connection-run 3.8s linear both;
}
@keyframes clinical-panel-in {
  from {
    opacity: 0.2;
    translate: 0 7px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes cell-arrive {
  from {
    transform: translate(-3px, 9px) rotate(-8deg);
  }
  to {
    transform: translate(0, 0) rotate(0deg);
  }
}
@keyframes molecule-arrive {
  from {
    transform: translateY(7px) rotate(-9deg);
    opacity: 0.5;
  }
  to {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}
@keyframes node-arrive {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes connection-run {
  from {
    stroke-dashoffset: 48;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes scan-pass {
  0% {
    transform: translateY(-65px);
    opacity: 0;
  }
  25% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(70px);
    opacity: 0;
  }
}

/* El horario se encuentra en catalog-schedule.css; aquí queda la utilidad accesible. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 4 · MÓVIL Y ACCESIBILIDAD. El teclado usa flechas, Inicio y Fin en pestañas. */
@media (max-width: 1100px) {
  .prevention-layout {
    gap: 38px;
  }
  .prevention-explorer .prevention-intro .page-title {
    font-size: 44px;
  }
  .clinical-showcase {
    padding: 19px;
  }
  .clinical-tabs button {
    gap: 5px;
    padding-inline: 6px;
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .prevention-explorer {
    padding-block: 65px;
  }
  .prevention-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .prevention-explorer .prevention-intro {
    max-width: 630px;
  }
  .prevention-explorer .prevention-intro .page-title {
    font-size: 48px;
  }
  .prevention-explorer
    .prevention-intro
    > p:not(.eyebrow):not(.medical-source) {
    max-width: 570px;
  }
  .clinical-showcase {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }
  .clinical-tabs button {
    font-size: 12px;
  }
  .clinical-visual {
    height: 280px;
  }
  .clinical-panel-copy {
    min-height: 180px;
  }
}
@media (max-width: 600px) {
  .prevention-explorer {
    padding-block: 40px;
  }
  .prevention-explorer .prevention-intro .page-title {
    font-size: 39px;
    letter-spacing: -1.8px;
    max-width: 460px;
  }
  .prevention-explorer .prevention-intro .eyebrow {
    font-size: 8px;
    letter-spacing: 1.25px;
  }
  .prevention-explorer
    .prevention-intro
    > p:not(.eyebrow):not(.medical-source) {
    font-size: 13px;
  }
  .perspective-note {
    margin-block: 23px;
  }
  .prevention-cta {
    gap: 14px;
    padding-inline: 20px;
    font-size: 11px;
  }
  .clinical-showcase {
    padding: 16px;
    border-radius: 21px;
  }
  .clinical-showcase-top > span {
    font-size: 8px;
    letter-spacing: 1.1px;
  }
  .clinical-tabs {
    gap: 3px;
    padding: 4px;
  }
  .clinical-tabs button {
    font-size: 10px;
    padding-inline: 5px;
  }
  .clinical-tabs button > span {
    display: none;
  }
  .clinical-visual {
    height: 230px;
  }
  .clinical-panel-copy {
    padding: 24px 20px;
    min-height: 278px;
  }
  .clinical-panel-copy h2 {
    font-size: 24px;
  }
  .clinical-panel-copy > p:last-child {
    font-size: 12px;
  }
  .scene-kicker {
    font-size: 7px;
    left: 13px;
    top: 12px;
  }
  .scene-caption {
    font-size: 7px;
    left: 13px;
  }
  .clinical-showcase-footer {
    gap: 9px;
  }
  .clinical-showcase-footer > span:not(.clinical-progress) {
    font-size: 8px;
  }
}
@media (max-width: 350px) {
  .prevention-explorer .prevention-intro .page-title {
    font-size: 35px;
  }
  .clinical-showcase {
    padding: 12px;
  }
  .clinical-panel-copy {
    padding-inline: 17px;
  }
  .clinical-showcase-footer > span:not(.clinical-progress) {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .clinical-panel,
  .clinical-scene,
  .cell-particle,
  .molecular-strand,
  .molecule-dot,
  .step-node,
  .perspective-symbol span {
    transform: none !important;
    translate: none !important;
  }
  .scene-scan {
    display: none;
  }
}
@media print {
  .clinical-tabs,
  .clinical-showcase-footer {
    display: none;
  }
  .clinical-panel[hidden] {
    display: block !important;
  }
  .clinical-panel {
    break-inside: avoid;
    margin-bottom: 20px;
  }
}
