/* =============================================
   INSTALACIONES PAGE – extra styles
   (shared base styles live in style.css)
   ============================================= */

/* active nav state */
.nav-link--active {
  color: #01579e !important;
  border-bottom: 2px solid #01579e;
  padding-bottom: 2px;
}

/* mt helper not in base */
.mt-16 { margin-top: 16px; }

/* =============================================
   HERO
   ============================================= */
.inst-hero {
  position: relative;
  min-height: clamp(280px, 45vw, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inst-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inst-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: #3a5a7a;
  mix-blend-mode: multiply;
  opacity: .65;
}

.inst-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(40px, 6vw, 120px) clamp(20px, 8vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  width: 100%;
}

.inst-hero__label {
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  color: #f0eade;
  font-size: clamp(12px, 1.4vw, 22px);
  letter-spacing: .08em;
  margin: 0;
}

.inst-hero__title {
  font-family: var(--h-1-font-family, "DM Serif Display", Helvetica);
  font-weight: var(--h-1-font-weight, 400);
  font-size: clamp(24px, 4.5vw, 64px);
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.inst-hero__subtitle {
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(14px, 1.8vw, 26px);
  color: #fff;
  margin: 0;
  max-width: 700px;
}

/* =============================================
   INTRO (text + image)
   ============================================= */
.inst-intro__inner {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
}

.inst-intro__text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inst-intro__label {
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  color: #01579e;
  font-size: clamp(11px, 1.1vw, 18px);
  letter-spacing: .1em;
  margin: 0;
}

.inst-intro__image {
  flex: 0 0 clamp(240px, 38%, 580px);
}

.inst-intro__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* =============================================
   FEATURES GRID
   ============================================= */
.inst-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 32px;
}

.inst-feature-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  padding: clamp(14px, 1.8vw, 22px) 0;
  border-bottom: 1px solid #ccc;
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(13px, 1.3vw, 22px);
  line-height: 1.35;
  color: #000;
}

.inst-feature-icon {
  width: clamp(36px, 4.5vw, 72px);
  height: clamp(36px, 4.5vw, 72px);
  flex-shrink: 0;
}

/* =============================================
   FACTS section title
   ============================================= */
.inst-facts__title {
  text-align: left;
}

/* =============================================
   GALLERY SECTIONS
   ============================================= */
.inst-gallery-section__heading {
  font-family: "DM Serif Display", Helvetica;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 40px);
  color: #1e1e1e;
  margin: 0;
  line-height: 1.2;
}

.inst-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: 32px;
}

.inst-gallery-grid .gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* =============================================
   ESPACIOS ESPECIALES GRID
   ============================================= */
.inst-especiales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: 32px;
}

.inst-especial-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.5vw, 32px);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  transition: box-shadow .2s;
}

.inst-especial-item:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.inst-especial-icon {
  width: clamp(44px, 5vw, 72px);
  height: clamp(44px, 5vw, 72px);
  flex-shrink: 0;
}

.inst-especial-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inst-especial-title {
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.3;
  color: #1e1e1e;
  margin: 0;
}

/* =============================================
   TABLET  (641–1024px)
   ============================================= */
@media (max-width: 1024px) {
  .inst-intro__inner {
    flex-direction: column;
  }

  .inst-intro__image {
    flex: none;
    width: 100%;
    max-width: 600px;
  }

  .inst-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inst-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inst-gallery-grid .gallery-item:last-child {
    grid-column: 1 / -1;
  }

  .inst-especiales-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   MOBILE  (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  .inst-hero__content {
    padding-inline: clamp(16px, 5vw, 32px);
    gap: 12px;
  }

  .inst-intro__inner {
    gap: 24px;
  }

  .inst-intro__image {
    max-width: 100%;
  }

  .inst-features-grid {
    grid-template-columns: 1fr;
  }

  .inst-feature-item {
    padding: 12px 0;
  }

  .inst-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inst-gallery-grid .gallery-item:last-child {
    grid-column: auto;
  }

  .inst-especiales-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inst-gallery-section__heading {
    font-size: clamp(20px, 6vw, 32px);
  }

  .inst-facts__title {
    font-size: clamp(22px, 6vw, 36px);
  }
}
