:root {
  --navy: #1b4c7d;
  --blue: #2d77aa;
  --sky: #83b9d7;
  --gray: #617082;
  --white: #fff;
  --bg: #f9fbfd;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

#carouselMultiple img {
  cursor: zoom-in;
}

body {
  margin: 0;
  color: #263c53;
  font-family: "Poppins", sans-serif;
  background: white;
  line-height: 1.6;
}

a {
  color: inherit;
}

.img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding-left: 30px;
  padding-right: 30px;
}
.header {
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 14px #142a4419;
}
.header .wrap {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #122e52;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  white-space: nowrap;
}
.logo img {
  width: 62px;
  height: 65px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 17px;
}
.nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #526780;
  transition: color 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
}
.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}
.eyebrow {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.section {
  padding: 72px 0;
}
.section.sm {
  padding: 42px 0;
}
.section h1,
.section h2 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
}
.section h1 {
  font-size: clamp(32px, 4vw, 52px);
}
.section h2 {
  font-size: clamp(27px, 3.3vw, 42px);
}
.section h3 {
  color: var(--navy);
}
.lead {
  font-size: clamp(2px, 1.7vw, 15px);
  color: #69798b;
}
.center {
  text-align: center;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  align-items: center;
}

.mb-0 {
  color: var(--navy);
  font-weight: 400;
  font-size: 19px;
}

.photo {
  width: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.featurephoto {
  aspect-ratio: 1.15;
  object-fit: cover;
  height: 300px;
}
.belief {
  min-width: 0;
}
.belief img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  margin-bottom: 15px;
}
.belief h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #454e5d;
}
.belief p {
  font-size: 14px;
  line-height: 1.6;
  color: #647080;
}
.button {
  display: inline-block;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.button:hover {
  background: #26699a;
}
.button.light {
  background: #85b8d5;
  color: #183957;
}
.hero {
  min-height: 565px;
  position: relative;
  background: #1c3446 url("assets/hero.webp") center center/cover no-repeat;
}
.hero .wrap {
  position: relative;
  min-height: 565px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  max-width: 510px;
  margin: 0 0 15px;
  font-size: clamp(6px, 5vw, 75px);
  color: white;
  line-height: 1.14;
}
.hero p {
  max-width: 490px;
  margin: 0 0 24px;
  color: white;
  font-size: 17px;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #091a29aa 0%,
    #091a2944 50%,
    transparent 82%
  );
}
.hero .wrap {
  z-index: 1;
}
.hero-photo-suppressed {
  display: none;
}
.page-banner {
  min-height: 380px;
  background:
    linear-gradient(90deg, #17517cb7, #1b4c7d47),
    url("assets/ministries_hero.webp") center/cover;
  display: flex;
  align-items: center;
  color: white;
}
.page-banner .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  transform: translateY(20px);
}

.page-banner .wrap > * {
  margin: 0;
}

.page-banner h1 {
  color: white;
  font-size: clamp(32px, 4vw, 52px);
}
.page-banner p {
  max-width: 980px;
  color: white;
  font-size: 19px;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 24px;
  border: 1px solid #e6ecf1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 15px #1b4c7d0a;
}
.card h3 {
  margin-top: 0;
}
.value img {
  aspect-ratio: 0.95;
  object-fit: cover;
  width: 100%;
}
.value h3 {
  text-align: center;
  font-size: 23px;
  margin: 16px 0 7px;
}
.value p {
  text-align: center;
  color: #687584;
}
.accordion {
  border-top: 1px solid #dbe3eb;
}
.accordion-item {
  border-bottom: 1px solid #dbe3eb;
}
.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: #164b80;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  padding: 19px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-trigger:hover {
  color: #3786ad;
}
.accordion-trigger:after {
  content: "⌄";
  font-weight: 400;
  font-size: 21px;
  transition: transform 0.2s;
}
.accordion-trigger[aria-expanded="true"] :after {
  transform: rotate(180deg);
}
.accordion-panel {
  display: none;
  color: #596878;
  font-size: 15px;
  padding: 0 20px 22px 5px;
  line-height: 1.8;
}
.accordion-panel.open {
  display: block;
}
.section-title {
  background: #f5f9fd;
  padding: 35px 0;
}
.section-title h2 {
  margin: 0;
}
.meetings-hero {
  background:
    linear-gradient(#164b80aa, #164b80aa),
    url("assets/meetings_bg.webp") center/cover;
  color: #fff;
}
.meetings-hero h1 {
  color: #fff;
}
.schedule {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.schedule-card {
  background: #e9f3f9;
  color: var(--navy);
  padding: 28px;
  border-radius: 14px;
  min-height: 230px;
}
.schedule-card:nth-child(odd) {
  background: var(--navy);
  color: white;
}
.schedule-card h3 {
  color: inherit;
  font-size: 17px;
  text-transform: uppercase;
  margin-top: 0;
}
.schedule-card strong {
  font-size: 30px;
  display: block;
  margin: 19px 0 2px;
}
.schedule-card span {
  display: block;
  font-size: 15px;
}
.footer {
  background: #1b4c7d;
  color: #fff;
  padding: 30px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.3fr 1fr;
  gap: 22px;
  align-items: center;
}
.footer h3 {
  font-size: 17px;
  font-weight: 500;
  color: white;
  margin: 0 0 6px;
}
.footer a {
  font-size: 12px;
  text-decoration: none;
  color: white;
  overflow-wrap: anywhere;
}
.footer a:hover {
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.footer-brand img {
  width: 70px;
  height: 75px;
  object-fit: contain;
}
.footer blockquote {
  font-style: italic;
  font-size: 14px;
  margin: 0;
}
.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}
.bank {
  text-align: center;
  padding: 28px 15px;
}
.bank h2 {
  display: inline-block;
  background: #83bde7;
  border-radius: 40px;
  padding: 15px 30px;
  font-size: 24px;
}
.bank p {
  font-size: 19px;
  line-height: 1.6;
}
.map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 9px;
  background: #e6eef5;
}
.muted {
  color: #6b7c8b;
}
.intro {
  max-width: 740px;
  margin: 0 auto 35px;
}
.spacer {
  height: 24px;
}
.split-media {
  min-height: 340px;
}
.split-media img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}
.actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.notice {
  padding: 12px 16px;
  border-left: 3px solid var(--sky);
  background: #f4f9fc;
  font-size: 13px;
  color: #566b7d;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #50acda;
  outline-offset: 3px;
}
@media (max-width: 960px) {
  .nav {
    gap: 10px;
  }
  .nav a {
    font-size: 10px;
  }
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Ministerios ajustes del telefono */
@media (max-width: 720px) {
  .header {
    height: 74px;
  }
  .logo {
    font-size: 12px;
  }
  .logo img {
    height: 54px;
    width: 52px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 22px 24px;
    box-shadow: 0 10px 20px #123b6022;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    font-size: 15px;
    padding: 11px;
    border-bottom: 1px solid #e7edf2;
  }
  body:has(#formacion) .grid2:has(.accordion) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body:has(#formacion) .grid2:has(.accordion) > img.featurephoto {
    order: -1;
    width: 100%;
    height: auto;
  }
  .section {
    padding: 44px 0;
  }
  .hero,
  .hero .wrap {
    min-height: 480px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .page-banner {
    height: auto;
    min-height: 320px;
    padding: 25px 0;
  }

  .page-banner .wrap {
    transform: none;
  }

  .page-banner p {
    font-size: 15px;
  }
  .belief img {
    height: 230px;
  }
  .featurephoto {
    aspect-ratio: 1.3;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .schedule-card {
    min-height: auto;
  }
  .bank p {
    font-size: 16px;
  }
}

/* Reproducción de las diapositivas originales de Bibliografía y Reuniones */
.bio-page {
  padding: 78px 0 0;
  background: #fff;
}
.bio-layout {
  max-width: 1180px;
}
.bio-heading {
  margin-bottom: 12px;
  padding-left: 10px;
}
.bio-heading .eyebrow {
  font-size: 20px;
}
.bio-heading h1 {
  font-size: clamp(20px, 4vw, 100px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: #1b4c7d;
  margin: 0;
  font-weight: 700;
}
.bio-content {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-left: 0;
  padding-bottom: 16px;
}
.bio-portrait {
  width: 90%;
  height: min(10vw, 200px);
  min-height: 200px;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  margin-top: 30px;
}
.bio-info {
  padding-top: 15px;
  min-width: 0;
  margin-bottom: 0px;
}
.bio-info h2 {
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: #164b80;
}
.bio-info p {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.4;
  color: #65717c;
  margin: 0 0 14px;
}
.bio-actions {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.bio-actions .button {
  border-radius: 5px;
  min-width: 200px;
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
}
.meeting-page {
  background: #fff;
  padding: 80px 0 0;
}
.meeting-stage {
  background:
    linear-gradient(90deg, rgba(25, 75, 117, 0.48), rgba(23, 71, 113, 0.48)),
    url("assets/meetings_bg.webp") center/cover no-repeat;
  min-height: 530px;
  padding: 55px 0 35px;
  color: white;
}
.meeting-heading {
  margin-bottom: 45px;
}
.meeting-heading > span {
  font-size: 17px;
  font-weight: 500;
}
.meeting-heading h1 {
  margin: 4px 0 0;
  line-height: 1.17;
  font-size: clamp(35px, 4.2vw, 55px);
  font-weight: 700;
  color: white;
}
.meeting-cards {
  display: grid;
  gap: clamp(20px, 4vw, 60px);
  justify-content: center;
  align-items: stretch;
}
.meeting-three {
  grid-template-columns: repeat(3, minmax(0, 245px));
}
.meeting-two {
  grid-template-columns: repeat(2, minmax(0, 245px));
  gap: 80px;
}
.meeting-card {
  border-radius: 22px;
  padding: 21px 18px 24px;
  min-height: 350px;
}
.meeting-card.dark {
  background: #1b4c7d;
  color: white;
}
.meeting-card.pale {
  background: #eef5fa;
  color: #1b4c7d;
}
.meeting-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 43px;
}
.meeting-pill {
  display: inline-block;
  border-radius: 40px;
  background: #85c5ee;
  color: #1b4c7d;
  padding: 3px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.meeting-icon {
  font-size: 34px;
  line-height: 1;
  color: #83c7ef;
}
.meeting-entry {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.meeting-entry strong {
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.meeting-entry span {
  font-size: 15px;
  margin-top: 5px;
}
.meeting-card.dark .meeting-entry span {
  color: #91bfdd;
}
.meeting-card.pale .meeting-entry span {
  color: #2576b0;
}
.meeting-entry.middle {
  margin-top: 75px;
}
.meeting-second .meeting-stage {
  padding: 75px 0 50px;
  min-height: 510px;
}
.meeting-second {
  padding-top: 65px;
}
@media (min-width: 960px) {
  .bio-page {
    min-height: 625px;
  }
  .bio-info {
    padding-top: 18px;
  }
  .meeting-three {
    grid-template-columns: repeat(3, minmax(0, 245px));
  }
  .meeting-stage {
    min-height: 535px;
  }
}
@media (max-width: 720px) {
  .bio-page {
    padding: 40px 0 0;
  }
  .bio-heading {
    padding-left: 0;
    margin-bottom: 25px;
  }
  .bio-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 25px;
  }
  .bio-portrait {
    width: 100%;
    max-width: 350px;
    height: 425px;
    min-height: 0;
  }
  .bio-info {
    padding-top: 0;
  }
  .bio-actions {
    justify-content: flex-start;
    gap: 12px;
  }
  .bio-actions .button {
    min-width: 0;
    flex: 1 1 170px;
  }
  .meeting-page {
    padding-top: 40px;
  }
  .meeting-stage {
    padding: 35px 0;
  }
  .meeting-heading {
    margin-bottom: 25px;
  }
  .meeting-three,
  .meeting-two {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 410px;
    margin: 0 auto;
  }
  .meeting-card {
    min-height: auto;
    padding: 20px 24px 25px;
  }
  .meeting-entry.middle {
    margin-top: 32px;
  }
  .meeting-second {
    padding-top: 30px;
  }
  .meeting-second .meeting-stage {
    padding: 35px 0;
    min-height: 0;
  }
}

/* Bibliografía: correspondencia con la diapositiva de Canva de referencia */
@media (min-width: 721px) {
  .bio-page {
    padding: 84px 0 86px;
    min-height: 0;
  }
  .bio-layout {
    max-width: 1110px;
    padding-left: clamp(30px, 5vw, 65px);
    padding-right: clamp(30px, 5vw, 65px);
  }
  .bio-heading {
    padding-left: 0;
    margin-bottom: 24px;
  }
  .bio-heading .eyebrow {
    font-size: clamp(10px, 1.05vw, 13px);
    line-height: 1.25;
    display: block;
    margin-bottom: 4px;
  }
  .bio-heading h1 {
    font-size: clamp(24px, 2.85vw, 35px);
    line-height: 1.18;
    letter-spacing: -0.025em;
  }
  .bio-content {
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 34px);
    padding: 0;
    align-items: start;
  }
  .bio-portrait {
    height: auto;
    aspect-ratio: 225 / 245;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    border-radius: 13px;
  }
  .bio-info {
    padding-top: 0;
  }
  .bio-info h2 {
    font-size: clamp(24px, 2.65vw, 34px);
    margin: 0 0 12px;
    line-height: 1.25;
  }
  .bio-info p {
    font-size: clamp(11px, 1.3vw, 14px);
    line-height: 1.27;
    margin: 0 0 24px;
    color: #566a81;
  }
  .bio-actions {
    justify-content: center;
    gap: clamp(20px, 4vw, 38px);
    flex-wrap: nowrap;
  }
  .bio-actions .button {
    font-size: clamp(10px, 1.05vw, 13px);
    min-width: 0;
    width: clamp(150px, 24vw, 200px);
    padding: 12px 8px;
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  .bio-page {
    padding: 38px 0 48px;
  }
  .bio-heading h1 {
    font-size: clamp(24px, 6vw, 32px);
  }
  .bio-heading .eyebrow {
    display: block;
    font-size: 12px;
  }
  .bio-portrait {
    height: auto;
    aspect-ratio: 225 / 245;
    max-width: 350px;
    object-fit: cover;
  }
  .bio-info p {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* Reuniones ajustadas para parecerse a la presentación de Canva */
.meeting-main {
  background: #ffffff;
  padding: 18px 0 0;
}
.meeting-page {
  padding: 0;
  margin: 0 0 18px;
}
.meeting-shell {
  max-width: 905px;
  margin: 0 auto;
  padding: 0 14px;
}
.meeting-stage {
  background:
    linear-gradient(90deg, rgba(24, 76, 125, 0.55), rgba(24, 76, 125, 0.55)),
    url("assets/meetings_bg.webp") center/cover no-repeat;
  min-height: 450px;
  padding: 42px 46px 36px;
  color: #fff;
  position: relative;
}
.meeting-heading {
  margin: 0 0 35px;
}
.meeting-heading > span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}
.meeting-heading h1 {
  margin: 6px 0 0;
  color: #fff;
  line-height: 1.08;
  font-size: clamp(34px, 4vw, 57px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.meeting-cards {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 72px;
}
.meeting-three {
  padding-left: 31px;
}
.meeting-two {
  justify-content: center;
  gap: 72px;
  padding-top: 40px;
}
.meeting-card {
  border-radius: 18px;
  padding: 20px 18px 24px;
  min-height: 234px;
  width: 186px;
  box-shadow: none;
}
.meeting-card.dark {
  background: #1b4c7d;
  color: #fff;
}
.meeting-card.pale {
  background: #eef4f9;
  color: #1b4c7d;
}
.meeting-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 34px;
  margin-bottom: 26px;
}
.meeting-pill {
  display: inline-block;
  border-radius: 999px;
  background: #85c5ee;
  color: #1b4c7d;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}
.meeting-icon {
  font-size: 34px;
  line-height: 1;
  color: #83c7ef;
}
.meeting-entry {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.meeting-entry strong {
  font-size: clamp(34px, 3.5vw, 38px);
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.meeting-entry span {
  font-size: 14px;
  margin-top: 6px;
}
.meeting-card.dark .meeting-entry span {
  color: #c2d8ea;
}
.meeting-card.pale .meeting-entry span {
  color: #23699e;
}
.meeting-entry.middle {
  margin-top: 56px;
}
.meeting-second .meeting-stage {
  min-height: 400px;
  padding-top: 46px;
  padding-bottom: 42px;
}
.meeting-second .meeting-card {
  min-height: 252px;
  width: 186px;
}
.meeting-second .meeting-card.dark {
  width: 194px;
}
.meeting-second .meeting-entry strong {
  font-size: 34px;
}
.meeting-second .meeting-entry span {
  font-size: 14px;
}
.footer {
  margin-top: 0;
}
@media (min-width: 721px) {
  .meeting-page + .meeting-page {
    margin-top: 10px;
  }
}
@media (max-width: 720px) {
  .meeting-main {
    padding-top: 8px;
  }
  .meeting-shell {
    padding: 0 10px;
  }
  .meeting-stage {
    padding: 24px 18px 24px;
    min-height: 0;
  }
  .meeting-heading {
    margin-bottom: 24px;
  }
  .meeting-heading h1 {
    font-size: 42px;
  }
  .meeting-cards,
  .meeting-three,
  .meeting-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 0;
    padding-top: 0;
    justify-content: stretch;
  }
  .meeting-card,
  .meeting-second .meeting-card,
  .meeting-second .meeting-card.dark {
    width: auto;
    min-height: auto;
  }
  .meeting-entry.middle {
    margin-top: 26px;
  }
}

/* --------------------------------------------------
      REUNIONES: réplicas proporcionales de las dos láminas
      de Canva.  Coordenadas de diseño: 858x475 y 855x479.
      -------------------------------------------------- */
.meet-precise {
  background: #fff;
  padding: 16px 0 0;
}
.meet-page {
  width: min(100%, 858px);
  margin: 0 auto 17px;
  background: white;
}
.meet-slide {
  container-type: inline-size;
  background-image: url("assets/meetings_bg.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  color: white;
  overflow: hidden;
}
.meet-slide-one {
  aspect-ratio: 858 / 475;
}
.meet-slide-two {
  aspect-ratio: 855 / 411;
}
.meet-heading {
  position: absolute;
  left: 10.25%;
  top: 17.9%;
  z-index: 1;
}
.meet-heading > span {
  font-size: 1.75cqw;
  font-weight: 500;
  line-height: 1.1;
  display: block;
}
.meet-heading h1 {
  margin: 0.65cqw 0 0;
  font-size: 3.75cqw;
  line-height: 1.11;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: white;
}
.meet-card {
  position: absolute;
  width: 21.7%;
  height: 49.9%;
  border-radius: 1.85cqw;
  padding: 1.45cqw 1.5cqw 1.3cqw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
}
.meet-dark {
  background: #1b4c7d;
  color: white;
}
.meet-light {
  background: #eef5fa;
  color: #1b4c7d;
}
.meet-day {
  border-radius: 99px;
  background: #87c6ef;
  color: #1b4c7d;
  font-weight: 600;
  font-size: 1.45cqw;
  padding: 0.5cqw 1.8cqw;
  line-height: 1.1;
  min-width: 11.5cqw;
  text-align: center;
}
.meet-time {
  display: block;
  margin-top: 2.75cqw;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.055em;
  font-size: 3.6cqw;
  line-height: 1.12;
}
.meet-time-second {
  margin-top: 2.65cqw;
}
.meet-description {
  display: block;
  margin-top: 0.35cqw;
  white-space: nowrap;
  font-size: 1.62cqw;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.meet-dark .meet-description {
  color: #a4c7df;
}
.meet-light .meet-description {
  color: #236fa6;
}
.meet-sunday {
  left: 9.33%;
  top: 37.05%;
}
.meet-tuesday {
  left: 39.4%;
  top: 37.05%;
}
.meet-wednesday {
  left: 65.5%;
  top: 37.05%;
}
.meet-entry-centered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.5cqw;
}
.meet-entry-centered .meet-time {
  margin-top: 3.45cqw;
}
.meet-wednesday .meet-entry-centered {
  margin-top: 2cqw;
}
.meet-page-two {
  margin-bottom: 0;
}
.meet-thursday {
  left: 27.5%;
  top: 22.38%;
  width: 22.7%;
  height: 58.4%;
}
.meet-saturday {
  left: 56.8%;
  top: 20%;
  width: 22.6%;
  height: 60%;
}
.meet-thursday .meet-entry-centered {
  margin-top: 0;
}
.meet-thursday .meet-entry-centered .meet-time {
  margin-top: 3.85cqw;
}
.meet-saturday .meet-time {
  margin-top: 2.7cqw;
}
.meet-saturday .meet-time-second {
  margin-top: 2.45cqw;
}
.meet-footer {
  container-type: inline-size;
  background: #1b4c7d;
  height: auto;
  aspect-ratio: 855 / 68;
  display: grid;
  grid-template-columns: 30% 21% 25% 24%;
  align-items: center;
  padding: 0 4.4%;
  gap: 0;
  color: white;
}
.meet-footer-brand {
  display: flex;
  align-items: center;
  gap: 1cqw;
  min-width: 0;
}
.meet-footer-brand img {
  width: 5.6cqw;
  height: 5.6cqw;
  object-fit: contain;
}
.meet-footer-brand span {
  font-size: 1.27cqw;
  line-height: 1.22;
  font-weight: 500;
}
.meet-footer-address,
.meet-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.meet-footer strong {
  font-size: 1.35cqw;
  font-weight: 500;
  line-height: 1.1;
}
.meet-footer a {
  font-size: 1.02cqw;
  line-height: 1.15;
  text-decoration: none;
  color: white;
  overflow-wrap: anywhere;
}
.meet-footer p {
  text-align: center;
  font-style: italic;
  font-size: 1.22cqw;
  line-height: 1.2;
  margin: 0;
}
@media (max-width: 600px) {
  .meet-precise {
    padding-top: 0;
  }
  .meet-page {
    width: 100%;
    margin-bottom: 14px;
  }
  .meet-slide {
    aspect-ratio: auto;
    min-height: 0;
    padding: 28px 18px 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .meet-heading,
  .meet-card {
    position: static;
  }
  .meet-heading {
    margin-bottom: 3px;
  }
  .meet-heading > span {
    font-size: 14px;
  }
  .meet-heading h1 {
    font-size: clamp(28px, 7vw, 38px);
    margin-top: 7px;
  }
  .meet-card,
  .meet-thursday,
  .meet-saturday {
    width: min(100%, 330px);
    height: auto;
    min-height: 225px;
    border-radius: 16px;
    padding: 19px 20px;
    justify-self: center;
  }
  .meet-day {
    font-size: 13px;
    min-width: 98px;
    padding: 5px 12px;
  }
  .meet-time,
  .meet-saturday .meet-time {
    font-size: 34px;
    margin-top: 23px;
  }
  .meet-time-second,
  .meet-saturday .meet-time-second {
    margin-top: 19px;
  }
  .meet-description {
    font-size: 14px;
    white-space: normal;
    margin-top: 4px;
  }
  .meet-entry-centered,
  .meet-wednesday .meet-entry-centered {
    margin-top: 0;
  }
  .meet-entry-centered .meet-time,
  .meet-thursday .meet-entry-centered .meet-time {
    margin-top: 38px;
  }
  .meet-footer {
    aspect-ratio: auto;
    min-height: 160px;
    padding: 18px 22px;
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
    column-gap: 12px;
  }
  .meet-footer-brand img {
    width: 40px;
    height: 40px;
  }
  .meet-footer-brand span {
    font-size: 11px;
  }
  .meet-footer strong {
    font-size: 13px;
  }
  .meet-footer a {
    font-size: 10px;
  }
  .meet-footer p {
    font-size: 12px;
  }
}

/* Reuniones: ocupar el ancho completo del navegador sin los márgenes
      laterales del lienzo original de 858 px. Los tamaños, textos y posiciones
      escalan juntos gracias a las unidades cqw del diseño existente. */
.meet-precise {
  width: 100%;
  padding-top: 0;
}
.meet-page {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.meet-slide {
  width: 100%;
}
.meet-footer {
  width: 100%;
}
@media (max-width: 600px) {
  .meet-page {
    width: 100%;
  }
}

/* REUNIONES — nueva diapositiva única con cinco tarjetas escalonadas */
.meet-v2-main {
  background: #fff;
}
.meet-v2-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: min(70vw, 680px);
  background: url("assets/meetings_bg.webp") center/cover no-repeat;
  overflow: hidden;
  color: #fff;
}
.meet-v2-heading {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 5.4vw, 72px) clamp(22px, 3.3vw, 54px) 0;
}
.meet-v2-heading > span {
  font-size: clamp(8px, 1.65vw, 18px);
  font-weight: 400;
}
.meet-v2-heading h1 {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.meet-v2-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(5px, 0.7vw, 12px);
  width: 100%;
  padding: 0 clamp(10px, 1.65vw, 28px);
  align-items: start;
  margin-top: clamp(28px, 4.2vw, 64px);
}
.meet-v2-card {
  min-width: 0;
  height: clamp(200px, 37vw, 300px);
  border-radius: clamp(8px, 1.55vw, 13px);
  padding: clamp(12px, 1.4vw, 20px) clamp(10px, 1.35vw, 20px);
  overflow: hidden;
}
.meet-v2-card.dark {
  background: #1b4c7d;
  color: #fff;
}
.meet-v2-card.light {
  background: #eef5fa;
  color: #1b4c7d;
}
.meet-v2-card.meet-v2-tue,
.meet-v2-card.meet-v2-thu {
  margin-top: clamp(65px, 10vw, 100px);
}
.meet-v2-label {
  display: inline-flex;
  min-width: 50%;
  justify-content: center;
  padding: clamp(3px, 0.5vw, 10px) 12px;
  border-radius: 10px;
  background: #89c6ed;
  color: #1b4c7d;
  font-weight: 600;
  font-size: clamp(10px, 1.3vw, 18px);
  line-height: 1.2;
  white-space: nowrap;
}
.meet-v2-slot {
  margin-top: clamp(9px, 4.7vw, 20px);
  line-height: 1.15;
}
.meet-v2-slot + .meet-v2-slot {
  margin-top: clamp(10px, 4vw, 30px);
}
.meet-v2-slot strong {
  display: block;
  font-size: clamp(20px, 3.15vw, 40px);
  font-weight: 600;
  line-height: 1.11;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.meet-v2-slot span {
  display: block;
  color: #2879ad;
  margin-top: 4px;
  font-size: clamp(11px, 1.22vw, 19px);
  line-height: 1.2;
}
.meet-v2-card.dark .meet-v2-slot span {
  color: #a8c9df;
}
.meet-v2-wed .meet-v2-slot,
.meet-v2-thu .meet-v2-slot {
  margin-top: clamp(55px, 7.8vw, 112px);
}
.meet-v2-main + .footer {
  padding: 16px 0;
}
.meet-v2-main + .footer .footer-brand img {
  width: 55px;
  height: 55px;
}
.meet-v2-main + .footer .footer-grid {
  min-height: 55px;
}
.meet-v2-main + .footer h3 {
  font-size: 14px;
}
.meet-v2-main + .footer a,
.meet-v2-main + .footer .footer-brand {
  font-size: 11px;
}
.meet-v2-main + .footer blockquote {
  font-size: 12px;
}
.visit-v2 {
  min-height: 550px;
}
.visit-v2 h1 {
  color: var(--navy);
}
.visit-v2 .grid2 {
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 1150px) {
  .meet-v2-hero {
    min-height: 550px;
    padding-bottom: 50px;
  }
  .meet-v2-cards {
    margin-top: 25px;
  }
  .meet-v2-card {
    height: 300px;
  }
  .meet-v2-card.meet-v2-tue,
  .meet-v2-card.meet-v2-thu {
    margin-top: 80px;
  }
  .meet-v2-wed .meet-v2-slot,
  .meet-v2-thu .meet-v2-slot {
    margin-top: 50px;
  }
}
@media (max-width: 720px) {
  .meet-v2-hero {
    min-height: auto;
    padding-bottom: 35px;
    background-position: center top;
  }
  .meet-v2-heading {
    padding: 34px 20px 0;
  }
  .meet-v2-heading h1 {
    font-size: clamp(30px, 7vw, 43px);
  }
  .meet-v2-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    padding: 0 14px;
  }
  .meet-v2-card {
    height: auto;
    min-height: 255px;
    border-radius: 14px;
    padding: 16px 12px;
  }
  .meet-v2-card.meet-v2-tue,
  .meet-v2-card.meet-v2-thu {
    margin-top: 0;
  }
  .meet-v2-slot,
  .meet-v2-slot + .meet-v2-slot,
  .meet-v2-wed .meet-v2-slot,
  .meet-v2-thu .meet-v2-slot {
    margin-top: 24px;
  }
  .meet-v2-slot strong {
    font-size: clamp(23px, 4.6vw, 34px);
  }
  .meet-v2-slot span {
    font-size: 13px;
  }
  .meet-v2-label {
    font-size: 12px;
    padding: 6px 10px;
  }
  .visit-v2 .grid2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 410px) {
  .meet-v2-cards {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .meet-v2-card {
    min-height: 210px;
  }
  .meet-v2-hero {
    background-size: cover;
  }
  .meet-v2-slot strong {
    font-size: 34px;
  }
}

/* ================================================
      Ajustes IBG, referencia exacta de las capturas
      (sin afectar navegación y enlaces existentes)
      ================================================ */
/* Mantiene la imagen a la misma altura mientras crece el acordeón. */
body:has(#formacion) .grid2:has(.accordion) {
  align-items: start;
}
body:has(#formacion) .grid2:has(.accordion) > img.featurephoto {
  align-self: start;
  width: 100%;
  height: auto;
  aspect-ratio: 1.05;
  object-fit: cover;
  object-position: center top;
  display: block;
}
body:has(#formacion) .accordion {
  overflow-anchor: none;
}
body:has(#formacion) .accordion-panel {
  overflow-anchor: none;
}
body:has(#formacion) .accordion-trigger {
  scroll-margin-top: 110px;
}
/* Bibliografía: reproduce el espaciado de la diapositiva de referencia */
.bio-reference {
  padding: 80px 0 13px !important;
  min-height: 0 !important;
}
.bio-reference .bio-layout {
  max-width: 1024px;
  padding-left: clamp(30px, 5.6vw, 65px);
  padding-right: clamp(30px, 5.6vw, 65px);
}
.bio-reference .bio-heading {
  padding: 0;
  margin: 0 0 20px;
}
.bio-reference .bio-heading .eyebrow {
  display: block;
  font-size: 11px;
  margin-bottom: 1px;
  line-height: 1.3;
}
.bio-reference .bio-heading h1 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
  margin: 0;
}
.bio-reference .bio-content {
  display: grid;
  grid-template-columns: minmax(0, 31%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(25px, 4vw, 42px);
  padding: 0;
}
.bio-reference .bio-portrait {
  width: 100%;
  aspect-ratio: 222/287;
  height: auto;
  min-height: 0;
  border-radius: 13px;
  object-fit: cover;
  object-position: center;
}
.bio-reference .bio-info {
  padding-top: 21px;
}
.bio-reference .bio-info h2 {
  font-size: clamp(25px, 3vw, 37px);
  margin: 0 0 17px;
  line-height: 1.15;
}
.bio-reference .bio-info p {
  font-size: clamp(12px, 1.35vw, 16px);
  line-height: 1.22;
  color: #566b81;
  margin: 0 0 30px;
}
.bio-reference .bio-actions {
  display: flex;
  justify-content: space-between;
  gap: clamp(16px, 3.5vw, 46px);
  flex-wrap: nowrap;
}
.bio-reference .bio-actions .button {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: 220px;
  text-align: center;
  padding: 13px 7px;
  font-size: 12px;
  background: #79abc8;
  color: #153a57;
  border-radius: 4px;
}
/* Donaciones: tarjetas blancas elevadas con pastilla azul centrada */
.donate-reference {
  padding: 200px 0 50px;
}
.donate-reference > .wrap {
  max-width: 1050px;
  padding: 0 clamp(30px, 5.6vw, 70px);
  margin-bottom: 110px;
}
.donate-reference h1 {
  font-size: clamp(32px, 4vw, 52px);
}
.donate-reference .lead {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.2;
  margin: 8px 0 15px;
}
.donate-reference .bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 58px);
  max-width: 790px;
  margin: 0 auto;
  align-items: stretch;
}
.donate-reference .bank {
  background: #fff;
  border-radius: 19px;
  box-shadow: 4px 8px 9px rgba(0, 0, 0, 0.24);
  padding: 17px 32px 26px;
  min-height: 218px;
  text-align: left;
  margin-top: 50px;
}
.donate-reference .bank h2 {
  display: block;
  width: max-content;
  min-width: 170px;
  max-width: 100%;
  margin: 0 auto 16px;
  background: #8ec6eb;
  color: #1b4c7d;
  border-radius: 50px;
  padding: 7px 20px;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 700;
  text-align: center;
}
.donate-reference .bank p {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.22;
  margin: 0;
  color: #1b4c7d;
}
.donate-reference .bank p b {
  font-size: 19px;
}
/* Visítanos: mapa a la izquierda, información a la derecha */
.visit-reference {
  padding: 43px 0 25px;
  min-height: 0;
}
.visit-reference > .wrap {
  max-width: 1024px;
  padding: 0 clamp(30px, 5.5vw, 65px);
  margin-bottom: 110px;
}
.visit-reference h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-top: 50px;
}
.visit-reference .grid2 {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: 30px;
}
.visit-reference .map {
  width: 100%;
  height: 270px;
  border: 0;
  border-radius: 0;
  display: block;
}
.visit-reference .grid2 > div:nth-child(2) {
  padding-left: 0;
}
.visit-reference h2 {
  font-size: clamp(26px, 3.3vw, 38px);
  margin: 0 0 12px;
}
.visit-reference .lead {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.25;
  margin: 0 0 19px;
  color: #6c7d8e;
}
.visit-reference .button {
  padding: 10px 27px;
  min-width: 130px;
  text-align: center;
}
.visit-reference .map-note {
  font-size: 13px;
  color: #647485;
  margin: 10px 0 0;
}
@media (max-width: 720px) {
  .bio-reference {
    padding: 38px 0 30px !important;
  }
  .bio-reference .bio-content {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .bio-reference .bio-portrait {
    max-width: 350px;
  }
  .bio-reference .bio-info {
    padding-top: 0;
  }
  .bio-reference .bio-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .bio-reference .bio-actions .button {
    flex: 1 1 160px;
    max-width: none;
  }
  .donate-reference {
    padding: 38px 0;
  }
  .donate-reference .bank-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 440px;
  }
  .visit-reference .grid2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .visit-reference .map {
    height: 285px;
  }
}

/* Footer compacto según la maqueta IBG de Donar y Visítanos. */
body.ibg-footer-compact {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body.ibg-footer-compact > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
body.ibg-footer-compact > main > .section {
  flex: 1 0 auto;
}
body.ibg-footer-compact > .footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 9px 0;
  min-height: 76px;
}
body.ibg-footer-compact > .footer .footer-grid {
  max-width: 1100px;
  padding-left: clamp(20px, 4vw, 55px);
  padding-right: clamp(20px, 4vw, 55px);
  display: grid;
  grid-template-columns: 1.2fr 1.05fr 1.12fr 1fr;
  align-items: center;
  column-gap: clamp(12px, 2.2vw, 30px);
}
body.ibg-footer-compact > .footer .footer-brand {
  gap: 8px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 600;
}
body.ibg-footer-compact > .footer .footer-brand img {
  width: 49px;
  height: 53px;
  flex: 0 0 auto;
}
body.ibg-footer-compact > .footer h3 {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 4px;
}
body.ibg-footer-compact > .footer a {
  display: block;
  font-size: 10px;
  line-height: 1.28;
}
body.ibg-footer-compact > .footer blockquote {
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
  font-style: italic;
}
body.ibg-footer-compact > .footer blockquote small {
  display: block;
  font-size: 9px;
  margin-top: 2px;
}
@media (max-width: 720px) {
  body.ibg-footer-compact > .footer {
    padding: 18px 0;
  }
  body.ibg-footer-compact > .footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 14px;
  }
  body.ibg-footer-compact > .footer .footer-brand {
    font-size: 10px;
  }
  body.ibg-footer-compact > .footer h3 {
    font-size: 13px;
  }
  body.ibg-footer-compact > .footer a {
    font-size: 11px;
  }
  body.ibg-footer-compact > .footer blockquote {
    font-size: 12px;
  }
}
@media (max-width: 390px) {
  body.ibg-footer-compact > .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Donar y Visítanos: contenido centrado verticalmente entre navbar y footer.
      Conserva las tarjetas, mapa, tipografía y enlaces existentes. */
@media (min-width: 721px) {
  body.ibg-footer-compact > main {
    flex: 1 1 auto;
    min-height: 0;
  }
  body.ibg-footer-compact > main > .donate-reference,
  body.ibg-footer-compact > main > .visit-reference {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  body.ibg-footer-compact > main > .donate-reference > .wrap,
  body.ibg-footer-compact > main > .visit-reference > .wrap {
    width: 100%;
  }
}

/* Ajustes de estabilidad visual - revisión 24/11/2026 */
@media (min-width: 721px) {
  body:has(#formacion) .grid2:has(.accordion) {
    align-items: start;
  }
  body:has(#formacion) .grid2:has(.accordion) > img.featurephoto {
    align-self: start;
    position: relative;
    top: auto;
    object-fit: cover;
  }
  body:has(#formacion)
    .grid2:has(.accordion)
    > img.featurephoto[src*="service"] {
    position: relative;
  }
}
body:has(#formacion) .accordion-panel {
  overflow-anchor: none;
}
/* Header and footer are shared across the eight pages; source presentation's spacing is respected. */

@media (min-width: 721px) {
  .hero {
    min-height: 0;
    aspect-ratio: 16/9;
    background-position: center 43%;
    background-size: cover;
  }
  .hero .wrap {
    min-height: 0;
    height: 100%;
  }
  .hero h1 {
    font-size: clamp(34px, 4vw, 55px);
  }
}
/* Seminario: fotografía vertical completa, tan alta como la columna de texto */
@media (min-width: 721px) {
  .seminar-rebalanced {
    padding: 45px 0 50px;
  }
  .seminar-rebalanced .eyebrow {
    font-size: 15px;
    margin-bottom: 5px;
    display: block;
  }

  .seminar-rebalanced h1 {
    font-size: clamp(32px, 4vw, 52px);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.15;
  }
  .seminar-rebalanced .grid2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: stretch;
  }
  .seminar-rebalanced .grid2 > div:first-child {
    min-width: 0;
    padding-top: 50px;
  }
  .seminar-rebalanced .featurephoto {
    width: 100%;
    height: 540px;
    min-height: 0px;
    max-height: 600px;
    aspect-ratio: auto;
    object-position: center top;
    align-self: start;
    justify-self: center;
    margin-top: 30px;
  }
}
/* Bibliografía: ancho centrado y acciones juntas, sin dispersión */
@media (min-width: 721px) {
  .bio-reference .bio-layout {
    width: min(100%, 1050px);
    max-width: 1050px;
    margin-inline: auto;
    padding-inline: clamp(24px, 3vw, 42px);
  }
  .bio-reference .bio-content {
    grid-template-columns: minmax(210px, 255px) minmax(0, 1fr);
    gap: clamp(28px, 3.6vw, 48px);
    justify-content: center;
  }
  .bio-reference .bio-info {
    padding-top: 14px;
  }
  .bio-reference .bio-actions {
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
  }
  .bio-reference .bio-actions .button {
    flex: 0 1 200px;
    min-width: 170px;
    max-width: 200px;
  }
}
@media (max-width: 720px) {
  .seminar-rebalanced .featurephoto {
    aspect-ratio: auto;
    width: 100%;
    max-height: 540px;
    object-fit: contain;
  }
  .bio-reference .bio-actions {
    gap: 12px;
  }
}

/* Bibliografía: expandir la composición al ancho útil de la ventana,
      sin cambiar botones, imagen, links ni el resto de páginas. */
@media (min-width: 721px) {
  .bio-reference {
    padding-top: clamp(32px, 4.3vw, 62px) !important;
    padding-bottom: clamp(18px, 3vw, 38px) !important;
  }
  .bio-reference .bio-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    padding-left: clamp(28px, 5vw, 68px);
    padding-right: clamp(28px, 5vw, 68px);
    margin-left: auto;
    margin-right: auto;
  }
  .bio-reference .bio-heading {
    margin-bottom: 26px;
  }
  .bio-reference .bio-content {
    grid-template-columns: minmax(255px, 320px) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 58px);
    justify-content: stretch;
    align-items: center;
  }
  .bio-reference .bio-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 222 / 287;
    object-fit: contain;
  }
  .bio-reference .bio-info {
    padding-top: 0;
  }
  .bio-reference .bio-info p {
    font-size: clamp(14px, 1.22vw, 17px);
    line-height: 1.46;
    max-width: 800px;
  }
  .bio-reference .bio-actions {
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
  }
  .bio-reference .bio-actions .button {
    flex: 0 0 auto;
    width: clamp(175px, 17vw, 205px);
    min-width: 0;
    max-width: none;
  }
}
@media (min-width: 721px) and (max-width: 900px) {
  .bio-reference .bio-content {
    grid-template-columns: minmax(205px, 260px) minmax(0, 1fr);
    gap: 24px;
  }
  .bio-reference .bio-layout {
    padding-inline: 24px;
  }
  .bio-reference .bio-actions .button {
    width: auto;
    flex: 1 1 165px;
  }
}

/* Bibliografía: ampliar únicamente el retrato; mantener el ancho de página y los enlaces. */
@media (min-width: 901px) {
  .bio-reference .bio-content {
    grid-template-columns: minmax(330px, 355px) minmax(0, 1fr);
    gap: clamp(25px, 3vw, 44px);
    align-items: center;
  }
  .bio-reference .bio-portrait {
    width: 100%;
    height: 480px;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
  }
}
@media (min-width: 721px) and (max-width: 900px) {
  .bio-reference .bio-portrait {
    width: 100%;
    height: 425px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center bottom;
  }
}
@media (max-width: 720px) {
  .bio-reference .bio-portrait {
    width: 100%;
    max-width: 310px;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* Bibliografía — composición ajustada a la referencia del 25/11.
      El retrato se presenta completo, grande y próximo al encabezado;
      el texto y los enlaces permanecen al lado derecho. */
@media (min-width: 901px) {
  .bio-reference.bio-page {
    min-height: 0 !important;
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }
  .bio-reference .bio-layout {
    max-width: 1320px;
    padding-inline: clamp(30px, 4.5vw, 65px);
  }
  .bio-reference .bio-heading {
    margin-bottom: 6px !important;
    padding-left: 0;
  }
  .bio-reference .bio-content {
    display: grid;
    grid-template-columns: minmax(335px, 365px) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(25px, 3.3vw, 48px);
    padding: 0;
  }
  .bio-reference .bio-portrait {
    width: 100% !important;
    height: 548px !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    border-radius: 0 !important;
    display: block;
  }
  .bio-reference .bio-info {
    padding: 0 0 12px;
  }
  .bio-reference .bio-info h2 {
    margin-bottom: 20px;
  }
  .bio-reference .bio-actions {
    justify-content: flex-start;
    gap: 20px;
  }
}
@media (min-width: 721px) and (max-width: 900px) {
  .bio-reference.bio-page {
    min-height: 0 !important;
    padding-top: 27px !important;
    padding-bottom: 0 !important;
  }
  .bio-reference .bio-heading {
    margin-bottom: 6px !important;
  }
  .bio-reference .bio-content {
    align-items: center;
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 0;
  }
  .bio-reference .bio-portrait {
    width: 100%;
    height: 440px;
    min-height: 0;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 0;
  }
}
@media (max-width: 720px) {
  .bio-reference.bio-page {
    padding-top: 28px !important;
    padding-bottom: 0 !important;
  }
  .bio-reference .bio-heading {
    margin-bottom: 8px !important;
  }
  .bio-reference .bio-content {
    padding-bottom: 0;
  }
  .bio-reference .bio-portrait {
    max-width: 310px;
    width: 85%;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
  }
}
