

/* ============================================================
   1. BOLETINES
   ============================================================ */
.boletines-section {
  padding-bottom: 80px;
}

.boletines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}

@media (max-width: 1199px) {
  .boletines-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); }
}
@media (max-width: 991px) {
  .boletines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .boletines-grid { grid-template-columns: 1fr; }
}

.boletin-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(19, 67, 145, 0.1);
  border: 1px solid rgba(19, 67, 145, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.boletin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(19, 67, 145, 0.18);
}

.boletin-card .boletin-tag {
  background: var(--inami-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 10px;
}

.boletin-card:nth-child(2n) .boletin-tag { background: var(--inami-gold); }

/* Espacio vacío para que el usuario coloque su PDF o foto */
.boletin-placeholder {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    #f4f7fb,
    #f4f7fb 10px,
    #eef2f8 10px,
    #eef2f8 20px
  );
  border: 2px dashed rgba(19, 67, 145, 0.25);
  border-left: none;
  border-right: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(19, 67, 145, 0.55);
  padding: 20px;
}

.boletin-placeholder i {
  font-size: 40px;
  margin-bottom: 10px;
  color: rgba(19, 67, 145, 0.4);
}

.boletin-placeholder span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 180px;
}

/* Si más adelante se coloca una imagen real dentro del placeholder,
   basta con agregar la etiqueta <img class="boletin-img" src="..."> */
.boletin-placeholder .boletin-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boletin-info {
  padding: 18px 20px 22px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.boletin-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--inami-blue);
  margin-bottom: 4px;
  min-height: 42px;
}

.boletin-info p {
  font-size: 13px;
  color: #8a93a1;
  margin-bottom: 16px;
}

.boletin-btn {
  margin-top: auto;
  display: inline-block;
  background: var(--inami-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.boletin-btn:hover {
  background: var(--inami-gold);
}

.boletines-help {
  max-width: 780px;
  margin: 0 auto 40px auto;
  text-align: center;
  background: rgba(19, 67, 145, 0.05);
  border: 1px dashed rgba(19, 67, 145, 0.3);
  border-radius: 10px;
  padding: 16px 24px;
  color: var(--inami-blue);
  font-size: 14px;
}

/* ============================================================
   2. MISIÓN Y VISIÓN
   ============================================================ */
.mv-hero {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 55px 60px;

  border-radius: 22px;
  overflow: hidden;

}







.mv-hero .mv-quote-mark {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 90px;
  line-height: 0.4;
  color: rgba(255, 255, 255, 0.25);
  display: block;
  text-align: center;
  margin-bottom: 4px;
}

.mv-hero p.mv-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.8;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 800px;
  margin: 0 auto;
}



/* Imagen para Misión/Visión */
.mv-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .mv-hero {
    padding: 40px 26px;
    border-radius: 16px;
  }
  .mv-hero p.mv-text {
    font-size: 17px;
  }
}

/* ============================================================
   3. OFICINAS REGIONALES (Contáctanos)
   ============================================================ */
.oficinas-section {
  padding: 70px 0 80px 0;
  background: #f7f9fc;
}

.oficinas-section .section-header {
  padding-bottom: 30px;
}

.oficinas-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .oficinas-layout {
    grid-template-columns: 1fr;
  }
}

/* Espacio vacío para colocar el mapa (iframe, imagen o captura) */
.mapa-placeholder {
  min-height: 420px;
  width: 100%;
  border-radius: 14px;
  border: 2px dashed rgba(19, 67, 145, 0.3);
  background: repeating-linear-gradient(
    135deg,
    #eef2f8,
    #eef2f8 10px,
    #e4eaf3 10px,
    #e4eaf3 20px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(19, 67, 145, 0.6);
  padding: 30px;
}

/* Si se inserta un iframe o imagen real, que ocupe todo el espacio */
.mapa-placeholder iframe,
.mapa-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 12px;
  object-fit: cover;
}

.mapa-placeholder i {
  font-size: 48px;
  margin-bottom: 14px;
  color: rgba(19, 67, 145, 0.45);
}

.mapa-placeholder span {
  font-size: 14px;
  font-weight: 600;
  max-width: 320px;
  line-height: 1.5;
}

.oficinas-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oficina-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px dashed rgba(19, 67, 145, 0.3);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 6px 16px rgba(19, 67, 145, 0.06);
}

.oficina-card i {
  font-size: 22px;
  color: var(--inami-gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.oficina-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--inami-blue);
  margin-bottom: 4px;
}

.oficina-card p {
  font-size: 13px;
  color: #8a93a1;
  margin: 0;
}

/* -------------------------------------------------
   Responsive tweaks: Bienvenidos and Preloader
   ------------------------------------------------- */
/* stronger overrides to counter template defaults */
.inami-home-hero .inami-hero-content h2,
.inami-home-hero h2,
.inami-hero-content h2 {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  text-align: center !important;
  font-weight: 700 !important;
  /* fluid sizing between 1.1rem and 2.4rem */
  font-size: clamp(1.1rem, 3.6vw, 2.4rem) !important;
  line-height: 1.15 !important;
}
.inami-home-hero .inami-hero-content h2 span,
.inami-home-hero h2 span,
.inami-hero-content h2 span {
  display: block !important;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem) !important;
  line-height: 1.2 !important;
}
/* Target the home hero content title (Bienvenidos) */
.inami-hero-content h2 {
  color: #134391;
  font-size: 2.2rem;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 8px 0;
}
.inami-hero-content h2 span {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .inami-hero-content {
    padding: 40px 16px;
    text-align: center;
  }
  .inami-hero-content h2 {
    font-size: 1.6rem;
  }
  .inami-hero-content h2 span {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .inami-hero-content h2 {
    font-size: 1.25rem;
    line-height: 1.2;
  }
  .inami-hero-content h2 span {
    font-size: 0.9rem;
  }
}

/* Make preloader image responsive */
#preloader img {
  width: auto !important;
  max-width: clamp(120px, 40vw, 900px) !important;
  height: auto !important;
  display: block;
}

@media (min-width: 1024px) {
  /* keep a reasonable max size on large screens */
  #preloader img { max-width: 900px; }
}

@media (max-width: 480px) {
  #preloader img { max-width: 220px; }
}

/* ==================================================
   Banner / Hero responsive tweaks
   Ensures cover images scale and overlay text adapts
   ================================================== */
.inami-hero-banner img,
.hero-banner-slider .swiper-slide img,
.hero-banner-slider .swiper-slide {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* set a visible hero height depending on viewport */
.inami-hero-banner,
.hero-banner-slider .swiper-slide {
  height: 80vh;
  min-height: 480px;
}

/* make hero smaller on tablets */
@media (max-width: 991px) {
  .inami-hero-banner,
  .hero-banner-slider .swiper-slide {
    height: 56vh;
    min-height: 320px;
  }
  .inami-home-hero h2,
  .inami-hero-content h2 {
    font-size: 1.6rem !important;
    margin-top: 0 !important;
    text-align: center;
  }
  .inami-home-hero h2 span,
  .inami-hero-content h2 span {
    font-size: 1rem !important;
    display: block;
  }
}

/* mobile adjustments */
@media (max-width: 575px) {
  .inami-hero-banner,
  .hero-banner-slider .swiper-slide {
    height: 40vh;
    min-height: 220px;
  }
  .inami-home-hero h2,
  .inami-hero-content h2 {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .inami-home-hero h2 span,
  .inami-hero-content h2 span {
    font-size: 0.85rem !important;
    display: block !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .inami-home-hero p,
  .inami-hero-content p {
    font-size: 13px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    white-space: normal !important;
  }
  .inami-hero-content {
    width: 100% !important;
    padding: 18px 10px !important;
    box-sizing: border-box !important;
  }
  .inami-hero-content h2 {
    width: 100% !important;
  }
}

/* strong mobile override for preloader */
@media (max-width: 575px) {
  #preloader {
    padding: 20px !important;
  }
  #preloader img {
    width: 100% !important;
    max-width: 120px !important;
    height: auto !important;
  }
}

/* ensure overlaying content centers vertically on small screens */
.inami-home-hero,
.inami-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* On small screens put the banner first and the text content below it (no overlap) */
@media (max-width: 767px) {
  .inami-home-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .inami-hero-banner {
    order: 0;
    position: relative !important;
    z-index: 1;
    width: 100%;
  }

  .hero-banner-slider,
  .hero-banner-slider .swiper-wrapper,
  .hero-banner-slider .swiper-slide,
  .inami-hero-banner img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .inami-hero-content {
    order: 1;
    position: relative !important;
    z-index: 2;
    margin-top: 10px !important;
    padding: 14px 12px !important;
    background: transparent !important;
  }

  /* ensure heading doesn't pull upward */
  .inami-home-hero .inami-hero-content h2,
  .inami-hero-content h2 {
    margin-top: 0 !important;
  }
}


