/* =========================================================
   CONVENIOS Y BENEFICIOS
   ESTILO SCUOLA INSTITUCIONAL
   ========================================================= */

.conv-page {
  --siv-blue: var(--navy, #003d71);
  --siv-blue-dark: var(--navy-dark, #00305f);
  --siv-gold: var(--gold, #b9985a);
  --siv-red: #b51f2f;
  --siv-text: #173b63;

  color: var(--siv-text);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

.conv-page * {
  box-sizing: border-box;
}

.conv-wide {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

.conv-inner {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.conv-page .row {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.conv-section {
  padding: 70px 0;
}

.conv-section-soft {
  background: #f7f7f7;
}

.conv-section-blue {
  background: var(--siv-blue);
  color: #fff;
}

.conv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--siv-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.conv-eyebrow::before {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--siv-gold);
  display: inline-block;
}

.conv-section-blue .conv-eyebrow {
  color: #fff;
}

.conv-title,
.conv-title-small,
.conv-final h2 {
  font-family: var(--serif);
  color: var(--siv-blue-dark);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
}

.conv-title {
  max-width: 620px;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  margin: 0 0 24px;
}

.conv-title em {
  display: inline-block;
  color: var(--siv-gold);
  font-style: italic;
  font-weight: 400;
}

.conv-title-small {
  max-width: 720px;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.conv-section-blue .conv-title-small,
.conv-section-blue .conv-text,
.conv-section-blue .conv-lead {
  color: #fff;
}

.conv-lead {
  max-width: 780px;
  color: #555;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.conv-text {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.conv-section-blue .conv-text,
.conv-section-blue .conv-lead {
  color: rgba(255,255,255,.88);
}

/* Intro y notas */

.conv-intro-card {
  position: relative;
  max-width: 560px;
  background: #fff;
  padding: 28px 32px !important;
  border: 1px solid #e8e1d6;
  border-left: 4px solid var(--siv-red);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,48,95,.06);
}

.conv-intro-card::after {
  content: "Esame";
  position: absolute;
  right: 14px;
  bottom: -8px;
  color: rgba(0,61,113,.045);
  font-size: 68px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.conv-note {
  width: 100%;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-top: 2px solid var(--siv-gold);
  border-radius: 10px;
  padding: 24px 26px !important;
  color: var(--siv-blue);
  box-shadow: 0 8px 22px rgba(0,48,95,.05);
}

.conv-note span {
  display: block;
  color: var(--siv-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.conv-note p {
  color: var(--siv-blue-dark);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

/* Imágenes administradas por el bloque nativo de imagen de WordPress */

.conv-photo {
  position: relative;
  display: block;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--siv-blue);
}

.conv-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.conv-image-link img {
  cursor: zoom-in;
  transition: transform .35s ease;
}

.conv-image-link:hover img,
.conv-image-link:focus-within img {
  transform: scale(1.02);
}

.conv-photo-blue,
.conv-photo-blue img {
  min-height: 500px;
}

.conv-photo-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.conv-photo-caption span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.86);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
}

/* Beneficios */

.conv-card {
  position: relative;
  height: 100%;
  min-height: 190px;
  background: #fff;
  padding: 28px 26px 26px;
  border: 1px solid #e4e9ef;
  border-bottom: 3px solid var(--siv-gold);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,48,95,.035);
  transition: transform .25s ease, box-shadow .25s ease;
}

.conv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,48,95,.07);
}

.conv-card::before {
  content: attr(data-number);
  position: absolute;
  right: 20px;
  top: 18px;
  color: rgba(0,61,113,.055);
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
}

.conv-card h3 {
  position: relative;
  max-width: 230px;
  color: var(--siv-blue-dark);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 14px;
}

.conv-card p {
  position: relative;
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Panel azul */

.conv-blue-panel {
  background: var(--siv-blue);
}

.conv-blue-content {
  max-width: 610px;
  padding: 54px 52px;
}

.conv-condition {
  position: relative;
  padding-left: 18px;
  margin: 22px 0;
}

.conv-condition::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: calc(100% - 6px);
  background: var(--siv-gold);
}

.conv-condition strong {
  display: block;
  color: var(--siv-gold);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Universidades */

.conv-university {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  color: var(--siv-blue);
  padding: 26px 24px 24px 28px;
  box-shadow: 0 4px 14px rgba(0,48,95,.035);
  transition: transform .25s ease, box-shadow .25s ease;
}

.conv-university:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,48,95,.07);
}

.conv-university::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--siv-gold);
}

.conv-university h3 {
  color: var(--siv-blue-dark);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 12px;
}

.conv-university p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.conv-button {
  display: inline-block;
  border: 1px solid var(--siv-blue);
  color: var(--siv-blue);
  background: transparent;
  padding: 11px 17px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.conv-button:hover,
.conv-button:focus-visible {
  background: var(--siv-blue);
  color: #fff;
}

/* Importante */

.conv-disclaimer {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-left: 4px solid var(--siv-red);
  border-radius: 10px;
  padding: 26px 28px !important;
}

.conv-disclaimer h3 {
  color: var(--siv-blue-dark);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 14px;
}

.conv-disclaimer p {
  color: #555;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Cierre opcional */

.conv-final {
  background: linear-gradient(135deg, rgba(0,61,113,.96), rgba(0,48,95,.96));
  color: #fff;
  padding: 70px 0;
}

.conv-final h2 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.05;
  margin: 0 0 20px;
}

.conv-final p {
  max-width: 760px;
  color: rgba(255,255,255,.9);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

/* Clases de imagen conservadas para compatibilidad */

.conv-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.conv-img-blue {
  width: 100%;
  min-height: 500px;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .conv-section {
    padding: 55px 0;
  }

  .conv-blue-content {
    max-width: none;
    padding: 44px 34px;
  }

  .conv-photo,
  .conv-photo-blue,
  .conv-photo img,
  .conv-photo-blue img,
  .conv-img,
  .conv-img-blue {
    min-height: 300px;
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .conv-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .conv-section {
    padding: 45px 0;
  }

  .conv-intro-card,
  .conv-note,
  .conv-disclaimer {
    padding: 22px !important;
  }

  .conv-blue-content {
    padding: 38px 22px;
  }

  .conv-photo-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 22px;
  }
}
