/* Infomedik — sección IA: hub y artículos en acordeón de 2 columnas */
.ia-page {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}
.ia-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
}
.ia-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ia-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .28) 0%, rgba(15, 23, 42, .62) 55%, rgba(15, 23, 42, .78) 100%);
}
.ia-hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  color: #fff;
}
.ia-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .28rem .9rem;
  border-radius: 8px;
  background: rgba(62, 111, 143, .82);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ia-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 .9rem;
}
.ia-hero p {
  max-width: 740px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
}
.ia-hero-split {
  min-height: min(72vh, 620px);
  align-items: stretch;
}
.ia-hero-split .ia-hero-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .52) 46%, rgba(15, 23, 42, .34) 100%);
}
.ia-hero-split-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.75rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(196px, 280px);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}
.ia-hero-split .ia-hero-content {
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
}
.ia-hero-split .ia-hero p,
.ia-hero-split p {
  margin: 0;
  max-width: 38rem;
}
.ia-hero-video-card {
  position: relative;
  margin: 0;
  width: auto;
  height: min(520px, 68vh);
  max-width: 280px;
  justify-self: end;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #020617 url('https://res.cloudinary.com/dzarjld1v/video/upload/so_0,f_jpg,q_auto,w_720/v1789511196/infomedik/multimedia/portadas/zdujwezqpsbzebnlplyc.jpg') center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18),
    0 22px 48px rgba(2, 6, 23, .42),
    0 0 36px rgba(62, 111, 143, .28);
}
.ia-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ia-wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 4.5rem;
}
.ia-lead {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  margin-bottom: 1.5rem;
}
.ia-lead p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 1.05rem;
}
.ia-note {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: .92rem;
  line-height: 1.55;
}
.ia-note i {
  margin-top: .15rem;
  color: #c2410c;
}
.ia-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.5rem;
}
.ia-toc a {
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  color: #3E6F8F;
  background: #fff;
  border: 1px solid #3E6F8F;
  border-radius: 8px;
  padding: .4rem .8rem;
}
.ia-toc a:hover {
  background: #e8f1f5;
}
.ia-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.ia-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ia-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ia-card:hover {
  transform: translateY(-3px);
  border-color: #a5b4fc;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .1);
}
.ia-card.is-soon {
  opacity: .78;
  pointer-events: none;
}
.ia-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #e0e7ff;
}
.ia-card-body {
  padding: 1.05rem 1.15rem 1.2rem;
}
.ia-card-body strong {
  display: block;
  font-size: 1.12rem;
  color: #1e1b4b;
  margin: .2rem 0 .35rem;
}
.ia-card-body em {
  display: block;
  font-style: normal;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.5;
}
.ia-cover-card img {
  height: 210px;
}
.ia-cover-more {
  display: inline-block;
  margin-top: .85rem;
  font-size: .82rem;
  font-weight: 800;
  color: #3E6F8F;
}
.ia-shelf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1.15rem;
}
.ia-shelf-help {
  margin: 0;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.45;
  max-width: 36rem;
}
.ia-shelf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.ia-shelf-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: transparent;
  color: #475569;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.ia-shelf-btn:hover {
  background: #e8f1f5;
  color: #3E6F8F;
}
.ia-shelf-btn.is-active {
  background: #3E6F8F;
  color: #fff;
  box-shadow: 0 4px 12px rgba(62, 111, 143, .22);
}
.ia-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.15rem;
}
.ia-cover-card .ia-cover-frame {
  background: #e8eef3;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.ia-cover-card .ia-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ia-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ia-detail-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ia-detail-card:hover {
  transform: translateY(-3px);
  border-color: #a5b4fc;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .1);
}
.ia-detail-cover {
  width: 140px;
  height: 196px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef3;
  border: 1px solid #e5e7eb;
}
.ia-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ia-detail-card strong {
  display: block;
  font-size: 1.12rem;
  color: #1e1b4b;
  margin: .25rem 0 .4rem;
}
.ia-detail-card em {
  display: block;
  font-style: normal;
  color: #475569;
  font-size: .9rem;
  line-height: 1.58;
}
.ia-shelf[data-view="detalle"] .ia-cover-grid,
.ia-shelf[data-view="portadas"] .ia-detail-list {
  display: none;
}
.ia-shelf-empty {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
}
.ia-pill {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: .18rem .55rem;
  background: #fff;
  color: #3E6F8F;
  border: 1px solid #3E6F8F;
}
.ia-pill-soon {
  background: #e2e8f0;
  color: #475569;
}
.ia-accordion {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.ia-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}
.ia-item[open] {
  border-color: #c7d2fe;
  box-shadow: 0 10px 28px rgba(67, 56, 202, .08);
}
.ia-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
}
.ia-item summary::-webkit-details-marker {
  display: none;
}
.ia-item summary:hover {
  color: #3730a3;
}
.ia-item summary .ia-q-meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.ia-item summary .ia-num {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4338ca;
  font-size: .78rem;
  font-weight: 800;
}
.ia-item[open] summary .ia-num {
  background: #4338ca;
  color: #fff;
}
.ia-item summary i.ia-chevron {
  color: #6366f1;
  transition: transform .25s;
  flex-shrink: 0;
}
.ia-item[open] summary i.ia-chevron {
  transform: rotate(180deg);
}
.ia-panel {
  padding: 0 1.3rem 1.4rem;
  border-top: 1px solid #eef2ff;
}
.ia-split {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.05rem;
  padding: 1.05rem 1.1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
}
.ia-split-media {
  position: sticky;
  top: 5.5rem;
  margin: 0;
  padding: .4rem;
  background: #eef2ff;
  border: 2px solid #818cf8;
  border-radius: 16px;
  overflow: hidden;
}
.ia-split-media img,
.ia-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #e0e7ff;
}
.ia-split-media img.ia-photo-3x4 {
  aspect-ratio: 3 / 4;
}
.ia-split-media figcaption,
.ia-figure figcaption {
  margin: .5rem .15rem .1rem;
  font-size: .78rem;
  color: #475569;
  line-height: 1.4;
  text-align: left;
}
.ia-prose {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
}
.ia-prose p,
.ia-prose li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.ia-prose h3 {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  color: #1e1b4b;
  margin: 1.35rem 0 .55rem;
}
.ia-prose h3:first-child {
  margin-top: 0;
}
.ia-prose .ia-sub-num {
  flex: 0 0 auto;
  min-width: 2.2rem;
  height: 1.5rem;
  padding: 0 .4rem;
  margin-top: .12rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f1f5;
  color: #3E6F8F;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.ia-prose p {
  margin: 0 0 .9rem;
}
.ia-prose p:last-child {
  margin-bottom: 0;
}
.ia-prose a {
  color: #3730a3;
  font-weight: 600;
}
.ia-prose .ia-ext {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
  margin: .15rem 0 1.2rem;
}
.ia-prose a.ia-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.2;
  color: #fff;
  background: #3E6F8F;
  border: 1px solid #3E6F8F;
  border-radius: 8px;
  padding: .42rem .9rem;
}
.ia-prose a.ia-ext-btn:hover,
.ia-prose a.ia-ext-btn:focus-visible {
  background: #345e79;
  border-color: #345e79;
  color: #fff;
}
.ia-prose a.ia-ext-btn i {
  font-size: .7rem;
}
.ia-prose td .ia-ext {
  margin: .4rem 0 0;
}
.ia-prose td a.ia-ext-btn {
  font-size: .72rem;
  padding: .32rem .7rem;
}
.ia-table-scroll {
  overflow-x: auto;
  margin: .4rem 0 1rem;
}
.ia-table-scroll table {
  margin: 0;
  min-width: 720px;
}
.ia-table-scroll .ia-table-resumen {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.ia-table-resumen th,
.ia-table-resumen td {
  width: 33.333%;
  text-align: center;
  vertical-align: middle;
}
.ia-prose td.ia-url-cell {
  white-space: nowrap;
}
.ia-prose td.ia-url-cell .ia-ext {
  justify-content: flex-start;
  margin: 0;
}
.ia-table-resumen td.ia-url-cell {
  white-space: normal;
}
.ia-table-resumen td.ia-url-cell .ia-ext {
  justify-content: center;
}
.ia-prose ul,
.ia-prose ol {
  margin: 0 0 .9rem 1.25rem;
  padding-left: 1.1rem;
}
.ia-prose ol {
  list-style: decimal;
}
.ia-prose ul {
  list-style: disc;
}
.ia-prose li {
  margin: 0 0 .35rem;
}
.ia-prose .ia-callout {
  display: flex;
  gap: .7rem;
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #312e81;
  font-size: .95rem;
}
.ia-prose .ia-callout i {
  color: #4f46e5;
  margin-top: .15rem;
}
.ia-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: .4rem 0 1rem;
  font-size: .9rem;
  background: #fff;
}
.ia-prose th,
.ia-prose td {
  border: 1px solid #e2e8f0;
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}
.ia-prose th {
  background: #eef2ff;
  color: #312e81;
  font-weight: 700;
}
.ia-prose td ul,
.ia-prose td ol {
  margin: 0 0 0 1rem;
  padding-left: 1rem;
}
.ia-prose td li {
  margin: 0 0 .28rem;
  text-align: left;
  hyphens: none;
}
.ia-prose .ia-inline-img {
  margin: .85rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
}
.ia-prose .ia-inline-img img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.ia-cta {
  margin-top: 2rem;
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #312e81, #1e3a8a);
  color: #fff;
  text-align: center;
}
.ia-cta h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  margin: 0 0 .5rem;
}
.ia-cta p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, .88);
}
.ia-cta a {
  display: inline-block;
  background: #fff;
  color: #312e81;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: .7rem 1.2rem;
}
.ia-cta a:hover {
  transform: translateY(-1px);
}
.ia-kicker-ink {
  background: #fff;
  border: 1px solid #3E6F8F;
  border-radius: 8px;
  color: #3E6F8F;
}
.ia-series-block {
  margin: 0 0 1.75rem;
}
.ia-series-block h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  color: #1e1b4b;
  margin: .35rem 0 .4rem;
}
.ia-series-block p {
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.6;
}
.ia-series-nav {
  display: none;
}
.ia-series-nav:not(:empty) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .45rem;
  margin: 1.5rem 0 0;
}
.ia-series-nav a {
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  color: #3E6F8F;
  background: #fff;
  border: 1px solid #3E6F8F;
  border-radius: 8px;
  padding: .45rem .8rem;
  line-height: 1.3;
  max-width: 100%;
}
.ia-series-nav a:hover {
  background: #e8f1f5;
}
.ia-series-nav a.is-active {
  background: #3E6F8F;
  border-color: #3E6F8F;
  color: #fff;
}
.ia-related {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid #e2e8f0;
}
.ia-related-head {
  margin-bottom: 1.1rem;
}
.ia-related-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.ia-related-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  color: #1e1b4b;
  margin: .4rem 0 0;
}
.ia-related-head p {
  color: #64748b;
  margin: .45rem 0 0;
  line-height: 1.6;
}
.ia-related-head a {
  color: #3730a3;
  font-weight: 700;
}
.ia-related[data-view="detalle"] .ia-related-carousel {
  display: none;
}
.ia-related[data-view="portadas"] .ia-related-details {
  display: none;
}
.ia-detail-card.is-current {
  outline: 2px solid #3E6F8F;
}
.ia-related-carousel {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .35rem;
}
.ia-related-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
  padding: .2rem .05rem .85rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ia-related-track::-webkit-scrollbar {
  display: none;
}
.ia-related-track .ia-card {
  flex: 0 0 calc((100% - 2.3rem) / 3);
  width: calc((100% - 2.3rem) / 3);
  max-width: calc((100% - 2.3rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.ia-related-arrow {
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3E6F8F;
  border-radius: 8px;
  background: #fff;
  color: #3E6F8F;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}
.ia-related-arrow:hover:not(:disabled) {
  background: #e8f1f5;
}
.ia-related-arrow:disabled {
  opacity: .35;
  cursor: default;
}
.ia-card.is-current {
  outline: 2px solid #3E6F8F;
}
.ia-related-all {
  text-align: center;
  margin: 1.1rem 0 0;
}
.ia-related-all a {
  display: inline-block;
  font-weight: 800;
  color: #3E6F8F;
  text-decoration: none;
  border: 1px solid #3E6F8F;
  border-radius: 8px;
  padding: .5rem 1rem;
  background: #fff;
}
.ia-related-all a:hover {
  background: #e8f1f5;
}
.ia-wait {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
}
.ia-wait i {
  color: #4338ca;
}
@media (max-width: 1024px) and (min-width: 861px) {
  .ia-related-track .ia-card {
    flex-basis: calc((100% - 1.15rem) / 2);
    width: calc((100% - 1.15rem) / 2);
    max-width: calc((100% - 1.15rem) / 2);
  }
}
@media (max-width: 860px) {
  .ia-hero-split {
    min-height: 0;
  }
  .ia-hero-split .ia-hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, .32) 0%, rgba(15, 23, 42, .7) 55%, rgba(15, 23, 42, .84) 100%);
  }
  .ia-hero-split-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 3.25rem 0 2.2rem;
    gap: 1.35rem;
  }
  .ia-hero-split .ia-hero-content {
    text-align: center;
  }
  .ia-hero-split .ia-hero p,
  .ia-hero-split p {
    margin: 0 auto;
  }
  .ia-hero-video-card {
    justify-self: center;
    width: min(188px, 52vw);
    height: min(300px, 48vh);
    max-width: 188px;
    border-radius: 18px;
  }
  .ia-grid,
  .ia-grid-3 {
    grid-template-columns: 1fr;
  }
  .ia-related-track .ia-card {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
  .ia-related-title-row .ia-shelf-toggle {
    margin-left: auto;
  }
  .ia-split {
    grid-template-columns: 1fr;
  }
  .ia-split-media {
    position: static;
  }
  .ia-split-media img {
    max-height: 240px;
    aspect-ratio: 16 / 9;
  }
  .ia-split-media img.ia-photo-3x4 {
    max-height: 320px;
    aspect-ratio: 3 / 4;
  }
  .ia-table-scroll .ia-table-resumen {
    min-width: 34rem;
  }
  .ia-item summary {
    font-size: .98rem;
    padding: 1rem 1.05rem;
  }
  .ia-detail-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .85rem;
    padding: .85rem;
  }
  .ia-detail-cover {
    width: 92px;
    height: 128px;
  }
}
