/* ============================= */
/* 1. SECCIÓN PRINCIPAL STAFF    */
/* ============================= */
.staff-title {
  margin-top: 20px;
  font-size: 2rem;
  font-weight: 650;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;

  /* Degradado de texto */
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Animación de entrada */
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInUp 0.8s forwards;
}

/* Animación */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.staff-section {
  padding: 60px 15px;
  background-color: var(--bg-light);
  font-family: var(--font-primary);
  text-align: center;
}

.staff-section h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  position: relative;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.staff-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ============================= */
/* 2. FILTROS                    */
/* ============================= */
.filters {
  background: var(--bg-white);
  padding: 20px 15px;
  margin-bottom: 35px;
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.filters label {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.filters input[type="text"],
.filters select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #f8f8fa;
  font-size: 0.95rem;
  color: var(--text-color);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.filters input[type="text"]:focus,
.filters select:focus {
  border-color: var(--secondary-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(42, 157, 144, 0.15);
}

.filters select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%232E2E2E' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* Botones dentro de filtros */
.filters .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.btn-buscar,
.btn-reservar,
.btn-reset {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 600;
  padding: 12px 30px;
  min-width: 150px;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-buscar,
.btn-reservar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.btn-buscar:hover,
.btn-reservar:hover {
  background: linear-gradient(90deg, var(--btn-hover), var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-reset {
  background: linear-gradient(90deg, #e74c3c, #ff6b6b);
}

.btn-reset:hover {
  background: linear-gradient(90deg, #c0392b, #ff4d4d);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.2);
}

/* ============================= */
/* 3. GRID Y TARJETAS            */
/* ============================= */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  max-width: 1200px;
}

.doctor-card {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.doctor-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 3px solid var(--secondary-color);
}

.doctor-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 8px;
}

.doctor-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  background: #eef6ff;
  color: var(--primary-color);
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #d0e4ff;
}

.badge strong {
  color: var(--secondary-color);
}

.especialidad {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 16px;
}

.doctor-actions {
  margin-top: auto;
}

/* ============================= */
/* 4. PAGINACIÓN                 */
/* ============================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-white);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px var(--shadow);
  font-weight: 600;
}

.pagination a.active {
  background: var(--primary-color);
  color: #fff;
}

.pagination a.disabled {
  color: #aaa;
  pointer-events: none;
}

.pagination a:hover:not(.active):not(.disabled) {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================= */
/* 5. RESPONSIVO                 */
/* ============================= */
@media (max-width: 1024px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .doctor-card {
    padding: 18px;
  }

  .doctor-card img {
    width: 150px;
    height: 150px;
  }

  .doctor-info h3 {
    font-size: 1.05rem;
  }
}