.profesionales {
    padding: 0px 20px;
    background-color: #fff;
  }
  
  .profesionales h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
    font-weight: 700;
  }
  
  .filter-buttons {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .filter-btn {
    background-color: #800020;
    color: #fff;
    border: none;
    margin: 0 8px 10px;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    background-color: #24252d;
  }
  
  .profesional-card {
    margin-bottom: 30px;
  }
  
  .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease-in-out;
  }
  
  .card:hover {
    transform: scale(1.02);
  }
  
  .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    width: 100%;
    height: 250px;
    object-fit: contain;
  }
  
  .card-body {
    padding: 20px;
    background-color: #fafafa;
  }
  
  .card-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
  }
  
  .card-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
  }
  
  .card-text a {
    color: #800020;
    text-decoration: none;
  }
  
  .card-text a:hover {
    text-decoration: underline;
  }
  
  /* Responsivo */
  @media (max-width: 768px) {
    .profesionales h2 {
      font-size: 26px;
    }
  
    .filter-btn {
      margin: 5px 5px;
      padding: 8px 14px;
      font-size: 14px;
    }
  
    .card-body {
      padding: 16px;
    }
  
    .card-title {
      font-size: 18px;
    }
  
    .card-text {
      font-size: 14px;
    }
  }

  .card-body .extra-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .card-body.expanded .extra-info {
    max-height: 400px; /* suficiente para mostrar todo */
  }
  .card-title, .calificacion {
    text-align: center;
  }

  
  .card-title {
    display: block !important;
    color: #000 !important;
    font-weight: bold;
  }
  
  