/* ============================================================
   COLUMBIA COLLEGE - INFRAESTRUCTURA PAGE STYLES
============================================================ */

/* ==========================================
   GALERÍA DE INSTALACIONES
========================================== */

.wp-block-paragraph{
  margin: 0px!important;
}


#seccion_infraestructura_galeria {
    padding: 45px 0 35px;
    background: #ffffff;
}

/* Título principal */
#seccion_infraestructura_galeria .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    color: #ff4b0b;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;

    margin: 0 auto;
    padding-bottom: 18px;
}

/* Icono junto al título */
#seccion_infraestructura_galeria .section-title i {
    display: inline-block;
    font-size: 30px;
    margin-right: 12px;
}

/* Línea decorativa inferior */
#seccion_infraestructura_galeria .section-title::after {
    content: "";
    display: block;

    width: 80px;
    height: 5px;

    margin-top: 14px;
    border-radius: 10px;

    background: linear-gradient(
        to right,
        #55a6a7,
        #ff4b0b
    );
}

/* Texto descriptivo */
#seccion_infraestructura_galeria .infra_galeria_intro {
    color: #45546a;
    font-size: 20px;
    font-weight: 400;
    text-align: center;

    line-height: 1.6;
    margin: 16px auto 30px;
    padding: 0 15px;
}

/* ==========================================
   RESPONSIVE - CELULARES
========================================== */

@media (max-width: 768px) {

    #seccion_infraestructura_galeria {
        padding: 35px 0 25px;
    }

    #seccion_infraestructura_desc .container > div {
    width: 100%!important;
    }

    #seccion_infraestructura_galeria .section-title {
        font-size: 25px;
        padding: 0 12px 15px;
    }

    #seccion_infraestructura_galeria .section-title i {
        font-size: 24px;
        margin-right: 8px;
    }

    #seccion_infraestructura_galeria .section-title::after {
        width: 65px;
        height: 4px;
        margin-top: 12px;
    }

    #seccion_infraestructura_galeria .infra_galeria_intro {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 15px;
    }
}


#seccion_infraestructura {
  width: 100%;
  padding-bottom: 30px;
}

/* --- BANNER HERO INFORMATIVO (#058b93) --- */
#seccion_infraestructura_desc {
  background-color: var(--teal-deep, #058b93);
  width: 100%;
  padding: 40px 0;
  color: #ffffff;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(5, 139, 147, 0.2);
}

#seccion_infraestructura_desc .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1300px;          /* el hero usa todo el ancho disponible */
}

/*#seccion_infraestructura_desc1 {
  flex: 1 1 300px;            /* el texto nunca baja de su ancho comodo */
}*/

/*#seccion_infraestructura_desc2,
#seccion_infraestructura_desc3 {
  flex: 1.35 1 340px;         /* las fotos acaparan el espacio sobrante */
}*/

#seccion_infraestructura_desc11 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

#seccion_infraestructura_desc1 hr {
  border: 0;
  border-top: 4px solid #ff9500;
  width: 130px;
  margin: 12px 0 18px;
  border-radius: 2px;
}

#seccion_infraestructura_desc12 {
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 380px;
}

#seccion_infraestructura_desc13 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  transition: all 0.25s ease;
}

#seccion_infraestructura_desc13 a:hover {
  background-color: #ffffff;
  color: var(--teal-deep, #058b93);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#seccion_infraestructura_desc2 img,
#seccion_infraestructura_desc3 img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}

#seccion_infraestructura_desc2 img:hover,
#seccion_infraestructura_desc3 img:hover {
  transform: scale(1.03);
}

/* --- BANNER MODERNA INFRAESTRUCTURA --- */
.infraestructura_moderna_banner {
  margin: 0 auto 35px;
  text-align: center;
}

.infraestructura_moderna_banner img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/*===========================================================
  ESPACIOS Y SERVICIOS 
===========================================================*/


#seccion_infraestructura_servicios {
  width: 100%;
  padding: 15px 0 20px;
}


/* Título principal */
#seccion_infraestructura_servicios .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    color: #ff4b0b;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;

    margin: 0 auto;
    padding-bottom: 18px;
}

/* Icono junto al título */
#seccion_infraestructura_servicios .section-title i {
    display: inline-block;
    font-size: 30px;
    margin-right: 12px;
}

/* Línea decorativa inferior */
#seccion_infraestructura_servicios .section-title::after {
    content: "";
    display: block;

    width: 80px;
    height: 5px;

    margin-top: 14px;
    border-radius: 10px;

    background: linear-gradient(
        to right,
        #55a6a7,
        #ff4b0b
    );
}

/* Texto descriptivo */
#seccion_infraestructura_servicios .infra_servicios_intro {
    color: #45546a;
    font-size: 20px;
    font-weight: 400;
    text-align: center;

    line-height: 1.6;
    margin: 16px auto 30px;
    padding: 0 15px;
}

/*.infra_servicios_intro {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.7;
  color: #555;
}*/

.infra_servicios_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.infra_card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #eef1f2;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.infra_card:hover {
  transform: translateY(-6px);
  border-color: rgba(75, 161, 169, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.infra_card_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal, #4ba1a9) 0%, var(--teal-deep, #058b93) 100%);
  box-shadow: 0 6px 16px rgba(5, 139, 147, 0.24);
}

.infra_card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 900;
  color: var(--navy, #092a40);
}

.infra_card p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a5a5a;
}

.infra_cta {
  margin-top: 34px;
  text-align: center;
}

.infra_cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--orange, #ff4600);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(255, 70, 0, 0.3);
  transition: transform 0.22s ease, background 0.22s ease;
}

.infra_cta a:hover {
  background: var(--orange-hover, #e03e00);
  transform: translateY(-3px);
}

/* --- GALERIA DE INSTALACIONES (17 fotos) --- */
#seccion_infraestructura_galeria {
  width: 100%;
  padding: 25px 0 15px;
}

.infra_galeria_intro {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.7;
  color: #555;
}

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

.infra_galeria_item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: #eef1f2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.infra_galeria_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.infra_galeria_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.infra_galeria_item:hover img {
  transform: scale(1.07);
}

.infra_galeria_item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, rgba(9, 42, 64, 0.88) 0%, rgba(9, 42, 64, 0.45) 55%, rgba(9, 42, 64, 0) 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.infra_galeria_item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.infra_zoom_icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-deep, #058b93);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* --- LIGHTBOX DE LA GALERIA --- */
.infra_lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(9, 42, 64, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.infra_lightbox.open {
  opacity: 1;
  visibility: visible;
}

.infra_lb_figure {
  margin: 0;
  max-width: 1050px;
  width: 100%;
  text-align: center;
  animation: infraLbZoom 0.42s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes infraLbZoom {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.infra_lb_figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  border: 3px solid var(--teal, #4ba1a9);
}

.infra_lb_figure figcaption {
  margin-top: 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.infra_lb_close,
.infra_lb_prev,
.infra_lb_next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange, #ff4600);
  color: #fff;
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.22s ease, background 0.22s ease;
}

.infra_lb_close:hover,
.infra_lb_prev:hover,
.infra_lb_next:hover {
  background: var(--orange-hover, #e03e00);
  transform: scale(1.12);
}

.infra_lb_close { top: 22px; right: 22px; font-size: 22px; }
.infra_lb_prev  { left: 24px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.infra_lb_next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 30px; }

.infra_lb_prev:hover  { transform: translateY(-50%) scale(1.12); }
.infra_lb_next:hover  { transform: translateY(-50%) scale(1.12); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 900px) {
  #seccion_infraestructura_desc .container {
    flex-direction: column;
    text-align: center;
  }
  #seccion_infraestructura_desc1 hr {
    margin: 12px auto 18px;
  }
  #seccion_infraestructura_desc12 {
    max-width: 100%;
  }
  #seccion_infraestructura_desc2,
  #seccion_infraestructura_desc3 {
    max-width: 480px;
    width: 100%;
  }
  .infra_galeria_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .infra_servicios_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .infra_galeria_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .infra_servicios_grid {
    grid-template-columns: 1fr;
  }
  .infra_galeria_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .infra_galeria_item figcaption {
    opacity: 1;              /* sin hover en celular: el pie siempre visible */
    transform: none;
    font-size: 12.5px;
  }
  .infra_lb_prev  { left: 10px; }
  .infra_lb_next  { right: 10px; }
}

