/* =============================================
   NOSOTROS — Equipo
   Grid circular + modal Bootstrap 5
   ============================================= */

/* ─── Grid ─── */
.nosotros-grid-wrap {
  width: 100%;
  padding: 60px 0;
}
.nosotros-grid {
  display: grid;
  gap: 40px 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}
.nosotros-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.nosotros-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.nosotros-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.nosotros-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.nosotros-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ─── Card ─── */
.nosotros-card {
  text-align: center;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Foto circular ─── */
.nosotros-card__photo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  min-width: 180px;
  min-height: 180px;
  max-width: 180px;
  max-height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}
.nosotros-card__photo-wrap:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 35px rgba(166, 135, 89, 0.25);
}
.nosotros-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}
.nosotros-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ece4;
  font-size: 60px;
  color: #A68759;
}

/* ─── Overlay hover ─── */
.nosotros-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(166, 135, 89, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nosotros-card__overlay i {
  color: #fff;
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.nosotros-card__photo-wrap:hover .nosotros-card__overlay {
  opacity: 1;
}

/* ─── Nombre + Cargo ─── */
.nosotros-card__name {
  font-family: "Montserrat", sans-serif;
  font-size: 26.7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b5923a;
  margin: 0 0 4px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.nosotros-card__name:hover {
  color: #8a6f2e;
}
.nosotros-card__cargo {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin: 0;
}

/* ─── Modal — Estilo premium ─── */
.nosotros-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.nosotros-modal .modal-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: none;
  padding: 20px 28px;
}
.nosotros-modal__title {
  color: #d8bc7d;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  margin: 0;
}
.nosotros-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.nosotros-modal .btn-close:hover {
  opacity: 1;
}
.nosotros-modal .modal-body {
  padding: 0;
}
.nosotros-modal__body {
  display: flex;
  gap: 0;
  min-height: 300px;
}

/* ─── Photo column ─── */
.nosotros-modal__photo-col {
  flex: 0 0 280px;
  position: relative;
  overflow: hidden;
}
.nosotros-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nosotros-modal__cargo-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #BCA273 0%, #D7BC8A 100%);
  color: #000000;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ─── Info column ─── */
.nosotros-modal__info-col {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nosotros-modal__position {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b5923a;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0ece4;
}
.nosotros-modal__bio {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 24px;
}
.nosotros-modal__bio p {
  margin-bottom: 10px;
}

/* ─── Links ─── */
.nosotros-modal__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nosotros-modal__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a2e;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #e5e1d8;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.nosotros-modal__link:hover {
  background: #A68759;
  color: #fff;
  border-color: #A68759;
}
.nosotros-modal__link i {
  font-size: 15px;
}

/* ─── Responsive ─── */
@media (max-width: 1199px) {
  .nosotros-grid--cols-5,
  .nosotros-grid--cols-6 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 991px) {
  .nosotros-grid--cols-3,
  .nosotros-grid--cols-4,
  .nosotros-grid--cols-5,
  .nosotros-grid--cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .nosotros-card__photo-wrap {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    max-width: 150px;
    max-height: 150px;
  }
}
@media (max-width: 767px) {
  .nosotros-grid {
    gap: 30px 20px;
  }
  .nosotros-grid--cols-2,
  .nosotros-grid--cols-3,
  .nosotros-grid--cols-4,
  .nosotros-grid--cols-5,
  .nosotros-grid--cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nosotros-card__photo-wrap {
    width: 130px;
    height: 130px;
    min-width: 130px;
    min-height: 130px;
    max-width: 130px;
    max-height: 130px;
  }
  .nosotros-card__name {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .nosotros-card__cargo {
    font-size: 11px;
  }
  /* Modal responsive */
  .nosotros-modal__body {
    flex-direction: column;
  }
  .nosotros-modal__photo-col {
    flex: 0 0 auto;
    max-height: 250px;
  }
  .nosotros-modal__info-col {
    padding: 24px 20px;
  }
}
@media (max-width: 479px) {
  .nosotros-grid--cols-2,
  .nosotros-grid--cols-3,
  .nosotros-grid--cols-4,
  .nosotros-grid--cols-5,
  .nosotros-grid--cols-6 {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }
  .nosotros-card__photo-wrap {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    max-width: 160px;
    max-height: 160px;
  }
}

/* ─── Animación de entrada ─── */
@keyframes nosotrosFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.nosotros-card {
  animation: nosotrosFadeIn 0.6s ease forwards;
}
.nosotros-card:nth-child(1) { animation-delay: 0.05s; }
.nosotros-card:nth-child(2) { animation-delay: 0.15s; }
.nosotros-card:nth-child(3) { animation-delay: 0.25s; }
.nosotros-card:nth-child(4) { animation-delay: 0.35s; }
.nosotros-card:nth-child(5) { animation-delay: 0.45s; }
.nosotros-card:nth-child(6) { animation-delay: 0.55s; }
