/* =========================================================
   INTERCAMBIOS - ESTILO SCUOLA INSTITUCIONAL
   ========================================================= */

.inter-page {
  --siv-blue: var(--navy, #003d71);
  --siv-blue-dark: var(--navy-dark, #00305f);
  --siv-gold: var(--gold, #b9985a);
  --siv-red: #b51f2f;
  --siv-cream: #f7f7f4;
  --siv-border: #dfe5ec;
  --siv-text: #173b63;
  --siv-muted: #52677e;

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

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

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

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

.inter-section {
  padding: 78px 0;
}

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

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

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

/* Tipografía */

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

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

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

.inter-title {
  max-width: 580px;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: .95;
  margin: 0 0 28px;
}

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

.inter-title-small {
  max-width: 680px;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.02;
  margin: 0 0 22px;
}

.inter-lead {
  max-width: 760px;
  color: #25496c;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 22px;
}

.inter-text {
  color: #25496c;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

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

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

/* Intro */

.inter-intro-card {
  position: relative;
  max-width: 540px;
  background: #fff;
  padding: 34px 38px;
  border-left: 3px solid var(--siv-red);
  box-shadow: 0 8px 24px rgba(0,48,95,.08);
}

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

/* Fotos placeholder */

.inter-photo {
  width: 100%;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(0,61,113,.045), rgba(185,152,90,.06)),
    repeating-linear-gradient(
      45deg,
      #f5f1ea 0,
      #f5f1ea 9px,
      #eae2d5 9px,
      #eae2d5 18px
    );
  border: 1px solid #e0d8ca;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--siv-blue);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 24px;
}

.inter-photo span {
  max-width: 250px;
  margin-top: 7px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.inter-photo-blue {
  min-height: 500px;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.075) 0,
      rgba(255,255,255,.075) 9px,
      rgba(255,255,255,.025) 9px,
      rgba(255,255,255,.025) 18px
    );
  border: 0;
  color: #fff;
}

.inter-photo-blue span {
  color: rgba(255,255,255,.76);
}

/* Cards */

.inter-card {
  position: relative;
  height: 100%;
  min-height: 190px;
  background: #fff;
  padding: 28px 26px;
  border: 1px solid #e4e9ef;
  border-bottom: 3px solid var(--siv-gold);
  box-shadow: 0 4px 14px rgba(0,48,95,.04);
}

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

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

.inter-card p {
  position: relative;
  color: #25496c;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* Panel azul */

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

.inter-blue-content {
  max-width: 610px;
  padding: 72px 64px;
}

.inter-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.inter-badge {
  display: inline-block;
  background: #fff;
  color: var(--siv-blue);
  padding: 8px 12px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

/* Nota lateral */

.inter-note {
  border: 1px solid #e4e9ef;
  border-top: 2px solid var(--siv-gold);
  border-radius: 8px;
  padding: 22px 24px 24px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,48,95,.045);
  color: var(--siv-blue);
}

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

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

/* Image links open the original upload and provide a clear enlargement affordance. */
.inter-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  height: auto;
}

.inter-image-link--blue {
  height: 100%;
}

.inter-image-link img {
  transition: transform .35s ease;
}

.inter-image-link:hover img,
.inter-image-link:focus-visible img {
  transform: scale(1.025);
}

.inter-image-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(0,48,95,.86);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.inter-image-link:hover .inter-image-zoom,
.inter-image-link:focus-visible .inter-image-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonio */

.inter-quote {
  background: #fff;
  border: 1px solid #e4e9ef;
  padding: 38px 40px;
  position: relative;
}

.inter-quote::before {
  content: "“";
  position: absolute;
  right: 28px;
  top: 6px;
  color: rgba(185,152,90,.18);
  font-family: var(--serif);
  font-size: 100px;
  line-height: 1;
}

.inter-quote blockquote {
  position: relative;
  color: #25496c;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.inter-quote cite {
  display: block;
  color: var(--siv-blue-dark);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 800;
}

.inter-quote span {
  display: block;
  color: var(--siv-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Experiencias */

.inter-experience {
  position: relative;
  padding: 26px 0 26px 76px;
  border-bottom: 1px solid #dfe5ec;
}

.inter-experience:first-child {
  padding-top: 0;
}

.inter-experience:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.inter-experience-number {
  position: absolute;
  left: 0;
  top: 26px;
  width: 46px;
  height: 46px;
  background: var(--siv-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.inter-experience:first-child .inter-experience-number {
  top: 0;
}

.inter-experience h3 {
  color: var(--siv-blue-dark);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 8px;
}

.inter-experience p {
  color: #25496c;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* Galería */

.inter-gallery-item {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(0,61,113,.045), rgba(185,152,90,.06)),
    repeating-linear-gradient(
      45deg,
      #f5f1ea 0,
      #f5f1ea 9px,
      #eae2d5 9px,
      #eae2d5 18px
    );
  border: 1px solid #e0d8ca;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--siv-blue);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  padding: 18px;
}

/* Cierre */

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

.inter-final h2 {
  max-width: 760px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.02;
  margin: 0 0 22px;
}

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

/* Imágenes reales */

.inter-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid #e0d8ca;
}

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

.inter-gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Responsive */

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

  .inter-title {
    font-size: 44px;
  }

  .inter-title-small {
    font-size: 34px;
  }

  .inter-intro-card {
    max-width: none;
  }

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

  .inter-image-link--blue {
    height: 300px;
  }

  .inter-blue-content {
    max-width: none;
    padding: 52px 34px;
  }

  .inter-card {
    min-height: auto;
  }
}

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

  .inter-section {
    padding: 52px 0;
  }

  .inter-title {
    font-size: 38px;
  }

  .inter-title-small {
    font-size: 30px;
  }

  .inter-lead {
    font-size: 15px;
  }

  .inter-text {
    font-size: 13.5px;
  }

  .inter-intro-card {
    padding: 28px 24px;
  }

  .inter-intro-card::after {
    font-size: 52px;
  }

  .inter-quote {
    padding: 30px 26px;
  }

  .inter-experience {
    padding: 28px 0;
  }

  .inter-experience-number {
    position: static;
    width: auto;
    height: auto;
    display: inline-block;
    background: transparent;
    color: var(--siv-gold);
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .inter-experience:first-child .inter-experience-number {
    top: auto;
  }

  .inter-final {
    padding: 58px 0;
  }
}

/* Galería de experiencias: miniaturas uniformes y sin bordes de foco persistentes. */
.inter-gallery-grid > [class*="col-"] {
  display: flex;
}

.inter-gallery-grid .inter-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: 0;
  border: 1px solid #e0d8ca;
  background: #e9eef3;
  cursor: zoom-in;
}

.inter-gallery-grid .inter-gallery-link > br {
  display: none;
}

.inter-gallery-grid .inter-gallery-img {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center center;
}

.inter-gallery-grid .inter-gallery-link:focus {
  outline: none;
}

.inter-gallery-grid .inter-gallery-link:focus-visible {
  outline: 2px solid var(--siv-blue);
  outline-offset: 3px;
}

/* Lightbox liviano para la galería de intercambios. */
.inter-lightbox[hidden] {
  display: none;
}

.inter-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 20, 36, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.inter-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.inter-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.inter-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.inter-lightbox-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 88vh;
  margin: 0;
}

.inter-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  pointer-events: auto;
}

.inter-lightbox-control {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  background: rgba(0, 48, 95, .82);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: background .18s ease, border-color .18s ease;
}

.inter-lightbox-control:hover {
  background: var(--siv-gold);
  border-color: var(--siv-gold);
}

.inter-lightbox-control:focus {
  outline: none;
}

.inter-lightbox-control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.inter-lightbox-close {
  top: 18px;
  right: 18px;
}

.inter-lightbox-prev,
.inter-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.inter-lightbox-prev {
  left: 18px;
}

.inter-lightbox-next {
  right: 18px;
}

.inter-lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

body.inter-lightbox-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .inter-lightbox {
    padding: 16px;
  }

  .inter-lightbox-image {
    max-width: 94vw;
    max-height: 82vh;
  }

  .inter-lightbox-control {
    width: 38px;
    height: 38px;
  }

  .inter-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .inter-lightbox-prev {
    left: 10px;
  }

  .inter-lightbox-next {
    right: 10px;
  }
}
