--------------------------------------------------------------*/

/* ============ Seccion "Decreto de Creacion"  ============ */
.decreto-home-section {
  padding: 50px 0 10px 0;

}

.decreto-home-section .decreto-box {
  margin: 0 auto;
    text-align: center;
  margin-top: -20px;
  line-height: 2.6;
}

/* ============ Boton "Leer Mas+" como enlace  ============ */
.programa-card .btn-leer-mas {
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  margin-top: auto;
  background: var(--inami-gold);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.programa-card .btn-leer-mas:hover {
  background: #a17e2c;
  color: #ffffff;
}

/* ============ Encabezado general de pagina secundaria ============ */
.secondary-page-section {
  padding-top: 150px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f4f7fb 100%);
}

[data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 768px) {
  .secondary-page-section {
    padding-top: 110px;
  }
}

.secondary-page-section .decreto-box {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(19, 67, 145, 0.12);
  box-shadow: 0 12px 30px rgba(19, 67, 145, 0.08);
}

.secondary-page-section .decreto-box h3 {
  color: var(--inami-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

/* ============ Seccion "Objetivos y Atribuciones" ============ */
.objetivos-section {
  background: var(--inami-blue);
  padding: 55px 0 60px 0;
  color: #ffffff;
}

.objetivos-section .objetivos-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 40px auto;
  background: #ffffff;
  color: var(--inami-blue);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding: 10px 26px;
  border-radius: 30px;
}

.objetivos-section .objetivos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .objetivos-section .objetivos-grid {
    grid-template-columns: 1fr;
  }
}

.objetivos-section .objetivo-item {
  text-align: center;
}

.objetivos-section .objetivo-item h4 {
  color: var(--inami-gold);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.objetivos-section .objetivo-item p {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ============ Seccion "Logros" (carrusel) ============ */
.logros-section {
  padding: 60px 0 70px 0;
  background: #f6f8fb;
}

.logros-section .logros-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 40px auto;
  background: #a3812c;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding: 10px 26px;
  border-radius: 30px;
}

.logros-slider.swiper {
  /* Permite que las tarjetas se expandan verticalmente al pasar el mouse
     sin que Swiper recorte el contenido (solo recorta en horizontal) */
  overflow-x: hidden;
  overflow-y: visible;
  padding: 10px 4px 50px 4px;
  touch-action: manipulation;
}

.logros-slider .swiper-wrapper {
  align-items: flex-start;
}

.logros-slider .swiper-slide {
  height: auto;
  display: flex;
}

.logros-slider .swiper-pagination {
  bottom: 0;
}

.logros-slider .swiper-pagination-bullet-active {
  background: var(--inami-blue);
}

/* Tarjeta de logro */
.logro-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(19, 67, 145, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(19, 67, 145, 0.08);
  padding: 30px 22px 26px 22px;
  text-align:center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 230px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.logro-card:hover,
.logro-card.is-active {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(19, 67, 145, 0.2);
  z-index: 2;
}

.logro-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 67, 145, 0.08);
  transition: transform 0.3s ease;
}

.logro-card:hover .logro-logo,
.logro-card.is-active .logro-logo {
  transform: scale(1.08);
}

.logro-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logro-title {
  color: var(--inami-blue);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

/* Contenido que se revela al pasar el mouse (o al tocar en móvil) */
.logro-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.05s, margin-top 0.4s ease;
}

.logro-card:hover .logro-content,
.logro-card.is-active .logro-content {
  max-height: 260px;
  opacity: 1;
  margin-top: 14px;
}

.logro-content p {
  color: #555555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(19, 67, 145, 0.12);
  text-align: justify;
}

/* ============ Seccion "Programas INAMI" ============ */
.programas-section {
  padding: 60px 0 20px 0;
}

.programas-section .programas-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 40px auto;
  background: var(--inami-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding: 10px 26px;
  border-radius: 30px;
}

.programas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.programas-grid .programa-card {
  flex: 0 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

@media (max-width: 992px) {
  .programas-grid .programa-card {
    flex: 0 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .programas-grid .programa-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

.programa-card {
  background: #ffffff;
  border: 1px solid rgba(19, 67, 145, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(19, 67, 145, 0.08);
  padding: 34px 26px 28px 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.programa-card .programa-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 67, 145, 0.08);
}

.programa-card .programa-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.programa-card .programa-icon i {
  font-size: 38px;
  color: var(--inami-blue);
}

.programa-card h4 {
  color: var(--inami-blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.programa-card p.programa-resumen {
  color: #555555;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 18px;
  text-align: justify;
  flex: 1;
}

/* Boton "Leer Mas+"  */
.programa-card details {
  text-align: left;
}

.programa-card summary {
  list-style: none;
  cursor: pointer;
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: var(--inami-gold);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.programa-card summary::-webkit-details-marker,
.programa-card summary::marker {
  display: none;
  content: "";
}

.programa-card summary:hover {
  background: #a17e2c;
}

.programa-card details[open] summary {
  margin-bottom: 16px;
}

.programa-card .programa-detalle {
  color: #444444;
  font-size: 14.5px;
  line-height: 1.75;
  text-align: left;
  border-top: 1px solid rgba(19, 67, 145, 0.12);
  padding-top: 14px;
}

/* ============ Pagina de detalle de un Programa ============ */
.volver-programas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--inami-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 30px;
}


.volver-programas:hover {
  color: var(--inami-gold);
}

.programa-detalle-header {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.programa-detalle-header .programa-img{
  width: 96px;
  height: 96px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 67, 145, 0.08);
}

.programa-detalle-header .programa-img img {
  font-size: 42px;
  color: var(--inami-blue);
}

.programa-detalle-header h2 {
  color: var(--inami-blue);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}

.perfil-hero,
.perfil-banner {
  width: 100%;
  margin: 0 0 30px 0;
}

.hero-image-horizontal {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block !important;
}

.hero-image-horizontal img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 1px;
  object-fit: cover;
  object-position: center top;
}

.contacto-info-section,
.contacto-info-card,
.perfil-hero,
.hero-image-horizontal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Responsivo: en pantallas medianas y móviles la altura fija de 500px
   recortaba demasiado la foto. A partir de aquí dejamos que la altura
   se calcule sola respetando el aspect-ratio original (misma imagen,
   sin recorte extra), sin tocar en absoluto cómo se ve en pantallas
   grandes (arriba de 992px sigue igual, con height: 500px). */
@media (max-width: 992px) {
  .hero-image-horizontal img {
    height: auto;
  }
}

.perfil-intro {
  max-width: 1200px;
  margin: 30px auto 50px auto;
  padding: 0 20px;
  text-align: justify;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--inami-blue);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.perfil-intro h1 {
  color: #0c1d41;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.blog-educacion-hero .lead-text,
.perfil-intro .lead-text {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
  max-width: 1200px;
  margin: 0 auto;
}

.perfil-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
}

.perfil-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(19, 67, 145, 0.12);
  border-top: 5px solid #134391;
  border-radius: 8px;
  padding: 24px 16px;
  box-shadow: 0 10px 25px rgba(19, 67, 145, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  overflow: hidden;
  min-height: 300px;
}

.perfil-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(19, 67, 145, 0.15);
}

.perfil-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 16px;
  font-size: 28px;
  transition: all 0.3s ease;

}

.perfil-card--blue {
  border-top-color: #134391;
}

.perfil-card--blue .perfil-card-icon {
  background: rgba(19, 67, 145, 0.12);
  color: #134391;
}

.perfil-card--blue:hover .perfil-card-icon {
  background: #134391;
  color: #ffffff;
}

.perfil-card--gold {
  border-top-color: #b99135;
}

.perfil-card--gold .perfil-card-icon {
  background: rgba(185, 145, 53, 0.12);
  color: #b99135;
}

.perfil-card--gold:hover .perfil-card-icon {
  background: #b99135;
  color: #ffffff;
}

.perfil-card--green {
  border-top-color: #134391;
}

.perfil-card--green .perfil-card-icon {
  background: rgba(19, 67, 145, 0.12);
  color: #134391;
}

.perfil-card--green:hover .perfil-card-icon {
  background: #134391;
  color: #ffffff;
}

.perfil-card--orange {
  border-top-color: #b99135;
}

.perfil-card--orange .perfil-card-icon {
  background: rgba(185, 145, 53, 0.12);
  color: #b99135;
}

.perfil-card--orange:hover .perfil-card-icon {
  background: #b99135;
  color: #ffffff;
}

.perfil-card--purple {
  border-top-color: #134391;
}

.perfil-card--purple .perfil-card-icon {
  background: rgba(19, 67, 145, 0.12);
  color: #134391;
}

.perfil-card--purple:hover .perfil-card-icon {
  background: #134391;
  color: #ffffff;
}

.perfil-card h2 {
  color: var(--inami-blue);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.perfil-card--blue h2 {
  color: #134391;
}

.perfil-card--gold h2 {
  color: #b99135;
}

.perfil-card--green h2 {
  color: #134391;
}

.perfil-card--orange h2 {
  color: #b99135;
}

.perfil-card--purple h2 {
  color: #134391;
}

.perfil-card p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
  width: 100%;
}

.perfil-card ul {
  margin: 6px 0;
  padding-left: 0;
  list-style: none;
  font-size: 14px;
  text-align: left;
  width: 100%;
}

.perfil-card ul li {
  color: #4b5563;
  margin: 4px 0;
  text-align: left;
}

@media (max-width: 1400px) {
  .perfil-cards {
    gap: 18px;
    padding: 0 10px;
  }

  .perfil-card {
    padding: 22px 14px;
    min-height: 280px;
  }

  .perfil-card-icon {
    width: 55px;
    height: 55px;
    font-size: 26px;
    margin-bottom: 14px;
  }

  .perfil-card h2 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .perfil-card p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 1100px) {
  .perfil-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .perfil-card {
    padding: 20px 12px;
    min-height: 270px;
  }

  .perfil-card-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 12px;
  }

  .perfil-card h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .perfil-card p {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .perfil-cards {
    gap: 12px;
    padding: 0 8px;
  }

  .perfil-card {
    padding: 18px 10px;
    min-height: 250px;
  }

  .perfil-card-icon {
    width: 45px;
    height: 45px;
    font-size: 22px;
    margin-bottom: 10px;
  }

  .perfil-card h2 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .perfil-card p {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  .perfil-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 5px;
  }

  .perfil-card {
    padding: 20px 14px;
    min-height: 0;
  }

  .perfil-card-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    margin-bottom: 10px;
  }

  .perfil-card h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .perfil-card p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 640px) {
  .perfil-cards {
    gap: 12px;
    padding: 0;
  }

  .perfil-card {
    padding: 18px 12px;
  }

  .perfil-card-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .perfil-card h2 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .perfil-card p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .perfil-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 4px;
  }

  .perfil-card {
    padding: 20px 16px;
  }

  .perfil-card p {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 576px) {
  .hero-tag {
    font-size: 12px;
  }

  .perfil-hero h1 {
    font-size: 32px;
  }
}

.programa-detalle-contenido {
  max-width: 1000px;
  margin: 0 auto 25px auto;
  background: transparent;
  padding: 20px 24px;
}

.programa-detalle-contenido h1 {
  color: #333333;
  font-size: 18px;
  line-height: 1.85;
  text-align: justify;
  margin: 0;
  font-weight: 700;
}


.programa-detalle-contenido p {
  color: #333333;
  font-size: 16.5px;
  line-height: 1.85;
  text-align: justify;
  margin: 0;
}

.otros-programas {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.otros-programas h4 {
  color: var(--inami-blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.otros-programas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .otros-programas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .otros-programas-grid {
    grid-template-columns: 1fr;
  }
}

.otros-programas-grid a {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(19, 67, 145, 0.12);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--inami-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(19, 67, 145, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.otros-programas-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(19, 67, 145, 0.14);
  background: var(--inami-blue);
  color: #ffffff;
}

/* ============ Seccion "Documentos Legales"  ============ */
.documentos-legales-section {
  padding: 20px 0 20px 0;
}

.documentos-legales-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.documento-legal-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid rgba(19, 67, 145, 0.12);
  border-radius: 8px;
  padding: 16px 22px;
  box-shadow: 0 8px 20px rgba(19, 67, 145, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.documento-legal-item:hover {
  box-shadow: 0 14px 28px rgba(19, 67, 145, 0.14);
  transform: translateY(-2px);
}

.documento-legal-item .doc-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(185, 145, 53, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.documento-legal-item .doc-icon i {
  font-size: 22px;
  color: var(--inami-gold);
}

.documento-legal-item .doc-info {
  flex: 1 1 auto;
}

.documento-legal-item .doc-info h5 {
  color: var(--inami-blue);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.documento-legal-item .doc-info p {
  color: #666666;
  font-size: 13.5px;
  margin: 0;
}

.documento-legal-item .doc-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--inami-blue);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.documento-legal-item .doc-link:hover {
  color: var(--inami-gold);
}

/* ============================================================
   GALERIA DE TALLERES (pagina talleres.html)
   ============================================================ */
.talleres-intro {
  max-width: 780px;
  margin: 0 auto 44px auto;
  text-align: center;
}

.talleres-intro p {
  color: #555555;
  font-size: 16px;
  line-height: 1.75;
}

.talleres-filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.talleres-filtros button {
  border: 1px solid rgba(19, 67, 145, 0.18);
  background: #ffffff;
  color: var(--inami-blue);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.talleres-filtros button:hover {
  box-shadow: 0 6px 16px rgba(19, 67, 145, 0.12);
}

.talleres-filtros button.active {
  background: var(--inami-blue);
  color: #ffffff;
  border-color: var(--inami-blue);
}

.talleres-galeria {
  columns: 4 260px;
  column-gap: 22px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 992px) {
  .talleres-galeria {
    columns: 2 260px;
  }
}

@media (max-width: 576px) {
  .talleres-galeria {
    columns: 1;
  }
}

.taller-foto {
  display: block;
  position: relative;
  break-inside: avoid;
  margin-bottom: 22px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(19, 67, 145, 0.1);
  text-decoration: none;
}

.taller-foto img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.taller-foto .taller-foto-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px 12px 16px;
  background: linear-gradient(180deg, rgba(19, 67, 145, 0) 0%, rgba(8, 22, 48, 0.82) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.taller-foto:hover img {
  transform: scale(1.06);
}

.taller-foto:hover .taller-foto-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PROGRAMA DE EDUCACION - ESTILO BLOG MINIMALISTA
   ============================================================ */
.blog-educacion-hero {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.blog-educacion-hero p.lead-text {
  color: #555555;
  font-size: 16.5px;
  line-height: 1.8;
  margin-top: 14px;
  text-align: justify;
}

.blog-educacion-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 56px auto;
}

.blog-educacion-nav a {
  border: 1px solid rgba(19, 67, 145, 0.18);
  color: var(--inami-blue);
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.blog-educacion-nav a:hover {
  background: var(--inami-blue);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(19, 67, 145, 0.18);
}

.blog-bloque {
  max-width: 1080px;
  margin: 0 auto 70px auto;
  padding: 0 20px;
}

.blog-bloque-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.blog-bloque-header .blog-bloque-numero {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--inami-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-bloque-header h2 {
  color: var(--inami-blue);
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.blog-bloque-header p {
  color: #666666;
  font-size: 14.5px;
  margin: 4px 0 0 0;
}

.blog-bloque-texto {
  max-width: 820px;
  margin: 0 0 30px 62px;
  color: #4a4a4a;
  font-size: 15.5px;
  line-height: 1.85;
  text-align: justify;
}

@media (max-width: 576px) {
  .blog-bloque-texto {
    margin-left: 0;
  }
}

.blog-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.blog-tarjeta {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(19, 67, 145, 0.08);
  box-shadow: 0 10px 24px rgba(19, 67, 145, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(19, 67, 145, 0.14);
}

.blog-tarjeta .blog-tarjeta-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.blog-tarjeta .blog-tarjeta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-tarjeta:hover .blog-tarjeta-img img {
  transform: scale(1.08);
}

.blog-tarjeta .blog-tarjeta-body {
  padding: 16px 18px 20px 18px;
}

.blog-tarjeta .blog-tarjeta-body h4 {
  color: var(--inami-blue);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.blog-tarjeta .blog-tarjeta-body p {
  color: #666666;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

.blog-nota-vacia {
  grid-column: 1 / -1;
  border: 1.5px dashed rgba(19, 67, 145, 0.25);
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  color: #8a93a3;
  font-size: 14px;
}

.blog-cta-talleres {
  max-width: 1080px;
  margin: 0 auto 10px auto;
  padding: 0 20px;
  text-align: center;
}

.blog-cta-talleres a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--inami-gold);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.blog-cta-talleres a:hover {
  background: #a17e2c;
  box-shadow: 0 14px 28px rgba(163, 129, 44, 0.28);
}

/* ============ Sección de Información de Contacto ============ */
.contacto-info-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid rgba(19, 67, 145, 0.1);
  border-bottom: 1px solid rgba(19, 67, 145, 0.1);
}

.container h2{
  color: var(--inami-blue);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

.contacto-info-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
}

.contacto-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 300px;
  width: 300px;
  padding: 30px;
  background: #f8fbff;
  border-radius: 12px;
  border: 1px solid rgba(19, 67, 145, 0.08);
  transition: all 0.3s ease;
}

.contacto-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(19, 67, 145, 0.12);
  background: #ffffff;
}

.perfil-hero,
.contacto-info-section,
.hero-image-horizontal,
.hero-image-horizontal img {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.hero-image-horizontal img {
  display: block !important;
}

.contacto-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #134391 0%, #b99135 100%);
  color: #ffffff;
  border-radius: 50%;
  font-size: 32px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contacto-info-card:hover .contacto-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(19, 67, 145, 0.25);
}

.contacto-info-card h4 {
  color: #134391;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.contacto-info-card p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 1200px) {
  .contacto-info-grid {
    flex-wrap: nowrap;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .contacto-info-section {
    padding: 40px 0;
  }

  .contacto-info-grid {
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 15px;
  }

  .contacto-info-card {
    padding: 25px;
  }

  .contacto-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .contacto-info-card h4 {
    font-size: 16px;
  }

  .contacto-info-card p {
    font-size: 14px;
  }
}