/* Componentes propios de IDBN. No agregar estilos del sitio a hojas de plugins. */
.team-category-title {
  margin: 30px 0 8px;
  color: #000042;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-row,
.team-cards-row,
.services-grid {
  display: grid;
  gap: 20px 30px;
}

.team-row,
.team-cards-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 40px 0;
}

.strategic-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 40px 0;
}

/* Bootstrap 3 crea dos pseudo-elementos para limpiar floats. En un grid se
   convertirían en celdas invisibles y desplazarían las tarjetas. */
.team-row::before,
.team-row::after,
.team-cards-row::before,
.team-cards-row::after {
  display: none;
  content: none;
}

.strategic-services-grid::before,
.strategic-services-grid::after {
  display: none;
  content: none;
}

/* Neutraliza los anchos y floats de las columnas Bootstrap dentro de grids. */
.team-row > [class*="col-"],
.team-cards-row > [class*="col-"],
.services-grid > [class*="col-"] {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

.strategic-services-grid > [class*="col-"] {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

.strategic-services-grid .fbox-photo {
  margin: -24px -16px 0;
}

.strategic-services-grid .fbox-photo img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}

.strategic-services-grid .service-content {
  flex: 1;
}

.strategic-services-grid .text-right {
  margin-top: auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 24px 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .04);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
}

.team-card-name {
  margin: 12px 0 4px;
  color: #000042;
  font-size: 16px;
  font-weight: 600;
}

.team-card-role {
  margin-bottom: 8px;
  color: #6f6f7a;
  font-size: 14px;
}

.services-grid .fbox-photo {
  margin: -24px -16px 0;
}

.services-grid .fbox-photo img {
  display: block;
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: 0;
}

.services-grid .service-content {
  flex: 1;
}

.titulo-aire {
  margin: 26px 0 15px !important;
  line-height: 1.25;
}

.site-copyright {
  padding: 20px 0;
  background: #fff;
  border-top: 1px solid #eee;
}

.site-copyright p,
.site-copyright a {
  color: #999;
  font-size: 18px;
}

@media (max-width: 991px) {
  .team-row,
  .team-cards-row,
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .team-row,
  .team-cards-row,
  .services-grid { grid-template-columns: 1fr; }
  .services-grid { padding: 30px 0; }
  .services-grid .fbox-photo img { height: auto; aspect-ratio: 4 / 3; }
  .strategic-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .strategic-services-grid .fbox-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .site-copyright,
  .site-copyright .text-right { text-align: center; }
}
