* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  background: #f2f2f2;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  display: none;
}

/* NAVIGATION */
nav {
  background: #1bb187;
  padding: 15px 0;
  color: white;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* HEADER SEARCH */
header {
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-search {
  display: flex;
  gap: 10px;
  max-width: 500px;
  width: 100%;
}

.header-search input {
  padding: 8px 12px;
  border-radius: 20px;
  border: 2px solid #83c5be;
  flex: 1;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.header-search input:focus {
  border-color: #1bb187;
}

.header-search button {
  background: #1bb187;
  color: #fff;
  border: 2px solid #1bb187;
  border-radius: 20px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  font-size: 0.9rem;
}

.header-search button:hover {
  background: #83c5be;
  border-color: #1bb187;
}

/* CONTAINER & CARDS */
.container {
  padding: 30px;

  flex: 1;
}

.providers-container,

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row; /* modo normal */
}
@media (max-width: 768px) {
  .cards-container{
    flex-direction: column; /* modo mobile */
  }
}
.card {
  width: calc(33.33% - 20px);
  min-width: 280px;
  max-width: 380px;
  height: auto;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  padding: 20px;
  margin: 10px;
}

/* CARD CONTENT */
.card-header {
  display: flex;
  align-items: center;
  padding: 10px;
}

.profile-pic {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #4caf50; /* Verde estilo Bootstrap */
}


.provider-info {
  margin-left: 15px;
  flex: 1;
  overflow: hidden;
}

.provider-info h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profession {
  margin: 0;
  font-size: 14px;
  color: #4caf50;
}

.descriptionn {
  padding: 15px;
  border-radius: 8px;
  margin: 5px 0;
  font-size: 1rem;
  min-height: 80px;
}

.descriptionn h6 {
  margin: 0 0 2px 0;
  font-size: 12px;
  color: #1bb187;
  font-weight: 600;
}

.descriptionn p {
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
}

/* RATING */
.rating {
  padding: 10px 15px;
  border-top: 1px solid #eee;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stars {
  display: flex;
  align-items: center;
}

.star {
  color: #555;
  font-size: 1.5rem;
}

.star.filled {
  color: #FFD700;
}

.classification {
  margin-left: 10px;
  font-size: 14px;
  color: #666;
}

.card-footer {
  margin-top: 10px;
  text-align: right;
}

.details-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.details-btn:hover {
  background-color: #45a049;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 10px;
  background: #1bb187;
  color: white;
  margin-top: auto;
}

.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .card {
    flex: 0 0 calc(50% - 20px);
     
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
    padding: 10px;
  }

  .menu {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-search {
    flex-direction: column;
    width: 100%;
  }

  .header-search input,
  .header-search button {
    width: 100%;
  }

  .container {
    padding: 15px;
  }

  .card {
    width: 100%;
    min-width: auto;
    height: auto;
    padding: 15px;
    margin: 10px 0;
  }

  .card-header {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 5px;
  }

  .profile-pic {
    margin-right: 15px;
    margin-bottom: 0;
    width: 50px;
    height: 50px;
  }

  .provider-info {
    flex: 1;
  }

  .descriptionn {
    padding: 10px 5px;
    font-size: 0.9rem;
  }

  .rating {
    padding: 8px 5px;
  }
}

@media (max-width: 480px) {
  .logo h2 {
    font-size: 1.2rem;
  }

  .menu {
    flex-direction: column;
    width: 100%;
  }

  .menu li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  .menu a {
    display: block;
    padding: 8px 0;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-pic {
    margin-right: 0;
    margin-bottom: 10px;
    width: 70px;
    height: 70px;
  }

  .provider-info h3 {
    font-size: 1.2rem;
  }

  .profession {
    font-size: 1rem !important;
  }

  .descriptionn {
    padding: 10px;
    min-height: 60px;
  }

  .star {
    font-size: 1.2rem;
  }

  .details-btn {
    padding: 5px 15px;
    font-size: 0.9rem;
    width: 100%;
  }
}

/* MENU MOBILE HAMBURGER */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
    padding: 15px;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1bb187;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    
  }

  .menu.active {
    display: block;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 22px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    transition: .3s;
  }

  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 10px; }
  .menu-toggle span:nth-child(3) { top: 20px; }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
  html, body {
    overflow-x: hidden;
  }
  

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
