/* ===== PROFESSIONALS MODERN DESIGN ===== */
/* Variables de color OKLCH modernas */
:root {
  --lime-vibrant: oklch(84.1% 0.238 128.85);
  --purple-vibrant: oklch(54.6% 0.245 262.881);
  --purple-deep: oklch(51.1% 0.262 276.966);
  --orange-vibrant: oklch(58.6% 0.253 17.585);
  --text-color: #1a1a1a;
  --text-grey: #6b7280;
  --background-light: #f8fafc;
}

/* CONTENT GENERAL */
.content {
  padding-top: 100px !important; /* Espacio para el menú fijo */
}

/* HERO SECTION MODERNIZADA */
.hero {
  padding: 40px 20px 60px;
  margin-top: 20px; /* Margen top para separar del menú */
}

.hero .banner {
  /* Use the original hero background image with a subtle dark overlay for legibility */
  background: linear-gradient(rgba(8,30,52,0.48), rgba(8,30,52,0.28)), url("../../assets/img/main-bg.png") no-repeat center/cover;
  background-size: cover;
  border-radius: 32px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(8,30,52,0.12);
}

.hero .banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='pattern' x='0' y='0' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23ffffff' opacity='0.06'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23pattern)'/%3E%3C/svg%3E");
  transform: rotate(-45deg);
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
}

.hero .banner .content {
  position: relative;
  width: 70%;
  z-index: 2;
}

.hero .banner .content .heading {
  margin-bottom: 40px;
}

.hero .banner .content .heading h1 {
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero .banner .content .heading p {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/* BOTONES DE MEDIA MODERNOS */
.hero .banner .content .media {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero .banner .content .media button {
  padding: 16px 24px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.hero .banner .content .media button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero .banner .content .media button.active {
  background: white;
  color: var(--purple-vibrant);
  border-color: white;
}

.hero .banner .content .media button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.hero .banner .content .media button.active img {
  filter: none;
}

/* BÚSQUEDA MODERNIZADA */
.hero .banner .content .search {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .banner .content .search .search-item {
  background: white;
  border-radius: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 250px;
}

.hero .banner .content .search .search-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero .banner .content .search .search-item .search-select {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .banner .content .search .search-item select {
  appearance: none;
  border: none;
  background: transparent;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  width: 100%;
  cursor: pointer;
  outline: none;
}

.hero .banner .content .search .search-item .search-select img {
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.hero .banner .content .search .search-item > span {
  background: var(--purple-vibrant);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero .banner .content .search .search-item > span:hover {
  background: var(--purple-deep);
  transform: scale(1.05);
}

.hero .banner .content .search .search-item > span img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* DOCTORS SECTION MODERNIZADA */
.doctors {
  padding: 60px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.doctors .header {
  text-align: center;
  margin-bottom: 50px;
}

.doctors .header h2 {
  margin-bottom: 16px;
}

.doctors .header h2 span:first-child {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.doctors .header h2 span:last-child {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-deep));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.doctors .header p {
  font-size: 18px;
  color: var(--text-grey);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* TABS MODERNOS */
.doctors .cards-menu {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.doctors .cards-menu ul {
  display: flex;
  background: var(--background-light);
  border-radius: 20px;
  padding: 8px;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}

.doctors .cards-menu ul li {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-grey);
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.doctors .cards-menu ul li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-deep));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 14px;
}

.doctors .cards-menu ul li:hover {
  color: var(--purple-vibrant);
  transform: translateY(-2px);
}

.doctors .cards-menu ul li.active {
  color: white;
  transform: translateY(-2px);
}

.doctors .cards-menu ul li.active::before {
  opacity: 1;
}

.doctors .cards-menu ul li span {
  position: relative;
  z-index: 2;
}

/* GRID DE TARJETAS MODERNO */
.doctors .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* TARJETAS DE PROFESIONALES MODERNIZADAS */
.doctors .cards .card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.doctors .cards .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-deep));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.doctors .cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.doctors .cards .card:hover::before {
  opacity: 0.03;
}

.doctors .cards .card .card-image {
  padding: 100px 0 !important;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 20px 20px 0 0 !important;
  position: relative;
  overflow: hidden;
}

.doctors .cards .card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.doctors .cards .card .card-content {
  padding: 24px 20px !important;
  position: relative;
  z-index: 2;
}

/* RATING MODERNO */
.doctors .cards .card .card-content .img {
  margin-bottom: 16px !important;
}

.doctors .cards .card .card-content .img svg {
  width: 18px !important;
  height: 18px !important;
  margin-right: 4px !important;
}

/* INFORMACIÓN DEL PROFESIONAL */
.doctors .cards .card .card-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
  line-height: 1.3;
}

.doctors .cards .card .card-content .specialty {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-vibrant);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctors .cards .card .card-content .description {
  font-size: 13px;
  color: var(--text-grey);
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BOTÓN DE ACCIÓN */
.doctors .cards .card .card-content .action-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-deep));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.doctors .cards .card .card-content .action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.doctors .cards .card .card-content .action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.doctors .cards .card .card-content .action-btn:hover::before {
  left: 100%;
}

/* RESPONSIVE DESIGN */
@media (min-width: 1400px) {
  .doctors .cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

@media (max-width: 1399px) and (min-width: 1200px) {
  .doctors .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .doctors .cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }
  
  .doctors .cards .card .card-image {
    height: 180px;
    padding-top: 90px;
  }
  
  .doctors .cards .card .card-content {
    padding: 20px 16px;
  }
  
  .doctors .cards .card .card-content h3 {
    font-size: 16px;
  }
  
  .doctors .cards .card .card-content .action-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 30px 15px 40px;
  }
  
  .hero .banner {
    padding: 40px 30px;
  }
  
  .hero .banner .content {
    width: 100%;
  }
  
  .hero .banner .content .heading h1 {
    font-size: 32px;
  }
  
  .hero .banner .content .heading p {
    font-size: 18px;
  }
  
  .doctors .header h2 span {
    font-size: 36px !important;
  }
}

@media (max-width: 768px) {
  .content {
    padding-top: 80px !important;
  }
  
  .hero .banner .content .search {
    flex-direction: column;
  }
  
  .hero .banner .content .search .search-item {
    min-width: 100%;
  }
  
  .doctors .cards-menu ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    width: 90%;
    margin: 0 auto;
  }
  
  .doctors .cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .doctors .header h2 span {
    font-size: 28px !important;
  }
}

@media (max-width: 480px) {
  .hero .banner {
    padding: 30px 20px;
  }
  
  .hero .banner .content .heading h1 {
    font-size: 28px;
  }
  
  .doctors .cards-menu ul {
    grid-template-columns: 1fr;
    width: 100%;
  }
  
  .doctors .header h2 span {
    font-size: 24px !important;
  }
}