/* ============================
   NUESTRA GENTE — BMH ABOGADOS
   Archivo: people.css
=============================== */

/* 1) Fondo gris tipo layout principal */
body {
  background: #444444; /* ajústalo si tu gris es otro */
}

/* Sección principal */
.people-section {
  padding: 3rem 0 4rem;
}

/* GRID similar a servicios */
.people-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD con estética de Servicios */
.person-card {
  background: #111118;
  border-radius: 22px;
  padding: 0.9rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  border: 1px solid #1f1f27;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  border-color: #d1a855;
}

.person-card-inner {
  background: radial-gradient(circle at top left, #292933 0, #111118 55%);
  border-radius: 18px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 2) FOTO / PLACEHOLDER */
/* Por ahora todas usan un icono genérico de usuario */
.person-photo {
  width: 100%;
  height: 230px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background-color: #1c1c24;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'>\
<circle cx='32' cy='24' r='14' fill='none' stroke='%23d1a855' stroke-width='3'/>\
<path d='M14 54c2-10 9-16 18-16s16 6 18 16' fill='none' stroke='%23d1a855' stroke-width='3' stroke-linecap='round'/>\
</svg>");
  background-repeat: no-repeat;
  background-size: 40%;
  background-position: center;
}

/* Cuando tengas fotos reales:
   .person-photo--ivan { background-image: url('../img/people/ivan.jpg'); } */

/* Info (nombre / puesto / botón) */
.person-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.person-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9f9f9;
}

.person-info p {
  margin: 0;
  color: #d0d0d5;
  font-size: 0.95rem;
}

/* Botón Ver más con estilo dorado */
.person-more {
  margin-top: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #d1a855;
  background: transparent;
  color: #f5f5f5;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.person-more:hover {
  background: #d1a855;
  color: #121216;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* ============================
   MODAL
=============================== */
/* ============================
   MODAL
=============================== */

body.modal-open {
  overflow: hidden;
}

.person-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.person-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.person-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* Caja del modal */
.person-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: 90%;
  background: #14141a;
  border-radius: 18px;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(209, 168, 85, 0.6);

  /* 🔥 Ajustes para que se adapte a la pantalla */
  max-height: 80vh; /* no pasa del 80% de la altura */
  overflow-y: auto; /* scroll interno cuando el texto es largo */
}

/* Botón cerrar */
.person-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: none;
  background: transparent;
  color: #f1f1f1;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* Texto dentro del modal */
.person-modal h2 {
  margin: 0 0 0.2rem;
  font-size: 1.4rem;
  color: #ffffff;
}

.person-modal h4 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d1a855;
}

.person-modal #modalBio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d7d7dc;
}

.person-modal #modalBio ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

/* Opcional: un ajuste pequeño para móviles */
@media (max-width: 640px) {
  .person-modal-dialog {
    width: 94%;
    padding: 1.4rem 1.2rem;
    max-height: 85vh;
  }
}
