/* ============================================================================
 * DESTACADOS HOME - TABS STYLES
 * ============================================================================ */

.relaxmo-destacados-placeholder {
    padding: 30px;
    text-align: center;
    font-size: 1.5em;
    color: #888;
    border: 2px dashed #aaa;
    border-radius: 12px;
    background: #f9f9f9;
    margin: 30px auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}


.destacados-home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 24px;
}

.destacados-home-header {
  text-align: center;
  margin-bottom: 40px;
}

.destacados-home-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.destacados-home-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================================
 * TABS NAVIGATION
 * ============================================================================ */

.destacados-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.destacados-tab-btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* 👈 HOVER MÁS SUTIL */
.destacados-tab-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.destacados-tab-btn.active {
  background: #4a5baa;
  border-color: #4a5baa;
  color: white;
  box-shadow: 0 4px 12px rgba(74, 91, 170, 0.3);
}

/* ============================================================================
 * TABS CONTENT
 * ============================================================================ */

.destacados-tabs-content {
  min-height: 400px;
  position: relative;
}

.destacados-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #4a5baa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.destacados-grid {
  display: grid;
  grid-template-columns: repeat(3, 280px); /* 👈 EXACTAMENTE 3 COLUMNAS FIJAS */
  gap: 24px;
  margin-bottom: 40px;
  justify-content: center; /* 👈 CENTRAR EL GRID COMPLETO */
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
 * CARDS PREMIUM
 * ============================================================================ */

.card-masajista-premium {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.card-masajista-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: transparent; /* Eliminar cualquier fondo */
  display: block; /* Cambiar de flex a block */
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
  background: transparent; /* Asegurar que la imagen no tenga fondo */
  transition: transform 0.3s ease;
}

.card-masajista-premium:hover .card-image-container img {
  transform: scale(1.05);
}

.card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
  display: none;
}

.card-content-premium {
  padding: 20px;
}

.card-title-premium {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.card-location-premium {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.location-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.card-rating-premium {
  margin-bottom: 12px;
}

.card-price-premium {
  font-size: 1.125rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 16px;
}

.btn-profile-premium {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #4a5baa, #8e6fce);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-profile-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 91, 170, 0.3);
  color: white;
  text-decoration: none;
}

/* ============================================================================
 * EMPTY STATE
 * ============================================================================ */

.destacados-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.destacados-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.destacados-empty-text {
  font-size: 1.125rem;
}

/* ============================================================================
 * FOOTER
 * ============================================================================ */

.destacados-home-footer {
  text-align: center;
  margin-top: 40px;
}

.btn-ver-mas-destacados {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #4a5baa;
  border: 2px solid #4a5baa;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ver-mas-destacados:hover {
  background: #4a5baa;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 91, 170, 0.3);
  text-decoration: none;
}

/* ============================================================================
 * RESPONSIVE
 * ============================================================================ */

@media (max-width: 768px) {
  .destacados-home-section {
    padding: 40px 16px; /* Reducir padding general */
  }
  .relaxmo-rating-msg {
    display: none;
  }
  .relaxmo-rating-count {
    display: none;
  }
  .destacados-home-title {
    font-size: 2rem;
  }

  .destacados-tabs-nav {
    gap: 6px;
    padding: 0 4px; /* Añadir padding para que no toquen bordes */
  }

  .destacados-tab-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  /* 🔥 GRID RESPONSIVO MEJORADO */
  .destacados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactamente 2 columnas */
    gap: 10px; /* Gap más pequeño para aprovechar más espacio */
    padding: 0 4px; /* Padding mínimo */
    margin-bottom: 40px;
  }

  /* 🔥 PARA PANTALLAS MUY PEQUEÑAS (menos de 400px) - 1 COLUMNA */

  @media (max-width: 400px) {
    .destacados-grid {
      grid-template-columns: 1fr; /* Solo 1 columna en pantallas muy pequeñas */
      gap: 20px;
      padding: 0 16px;
    }
    .relaxmo-rating-msg {
      display: none;
    }
    .relaxmo-rating-count {
      display: none;
    }
  }

  /* 🔥 PARA PANTALLAS MEDIANAS (400px - 768px) - 2 COLUMNAS */
  @media (min-width: 401px) and (max-width: 768px) {
    .destacados-grid {
      grid-template-columns: 1fr 1fr; /* 2 columnas para pantallas medianas */
      gap: 12px;
      padding: 0 12px;
    }
    .relaxmo-rating-msg {
      display: none;
    }
    .relaxmo-rating-count {
      display: none;
    }
  }

  /* 🔥 AJUSTES DE LAS CARDS */
  .destacados-grid .card-masajista-premium {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    min-width: 0;
    /* Eliminar max-width para que sean más anchas */
  }

  /* 🔥🔥 CORRECCIÓN DE IMÁGENES - MUY IMPORTANTE */
  .card-image-container {
    height: 120px; /* Altura reducida pero proporcional */
    background: transparent;
    display: block;
  }

  .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegurar que la imagen cubra todo el contenedor */
    object-position: center; /* Centrar la imagen */
    display: block; /* Eliminar espacios en blanco */
  }

  /* 🔥 AJUSTES DE CONTENIDO */
  .card-content-premium {
    padding: 10px; /* Padding más compacto */
  }

  /* 🔥 NOMBRE COMPLETO CON SALTO DE LÍNEA */
  .card-title-premium {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 8px;
    /* PERMITIR SALTO DE LÍNEA */
    overflow: visible;
    text-overflow: unset;
    white-space: normal; /* Permitir wrap */
    word-wrap: break-word; /* Romper palabras largas si es necesario */
    hyphens: auto; /* Guiones automáticos */
  }

  .card-location-premium {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .card-rating-premium {
    margin-bottom: 8px;
    font-size: 0.8rem;
  }

  .card-price-premium {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  /* 🔥 BOTÓN MÁS ELEGANTE Y MENOS ANCHO */
  .btn-profile-premium {
    padding: 5px 10px; /* Padding más pequeño */
    font-size: 0.7rem;
    border-radius: 6px;
    font-weight: 500; /* Menos bold */
    /* Hacer el botón menos ancho */
    width: auto;
    display: inline-block;
    text-align: center;
    margin: 0 auto;
    min-width: 120px; /* Ancho mínimo */
    max-width: 140px; /* Ancho máximo */
  }

  /* 🔥 BADGE PREMIUM AJUSTADO */
  .premium-badge {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 0.55rem;
  }

  /* 🔥 TABLET - MEJORADO */
  @media (max-width: 1024px) and (min-width: 769px) {
    .destacados-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
      padding: 0 16px;
    }
    .relaxmo-rating-msg {
      display: none;
    }
    .relaxmo-rating-count {
      display: none;
    }
    .destacados-grid .card-masajista-premium {
      width: 100%;
      margin: 0;
      box-sizing: border-box;
      max-width: 280px;
      justify-self: center;
    }

    .card-image-container {
      height: 160px;
      background: transparent;
    }
  }

  /* 🔥 PANTALLAS MUY PEQUEÑAS */
  @media (max-width: 360px) {
    .destacados-grid {
      gap: 8px;
      padding: 0 2px;
    }

    .card-content-premium {
      padding: 8px;
    }

    .btn-profile-premium {
      font-size: 0.75rem;
      padding: 6px 10px;
      min-width: 100px;
      max-width: 120px;
    }
  }

  /* 🔥 CORRECCIÓN ADICIONAL PARA EVITAR EL FONDO GRIS */
  .card-image-container::before {
    display: none; /* Eliminar cualquier pseudo-elemento que pueda estar causando el fondo gris */
  }

  /* Asegurar que no haya espacios en blanco en las imágenes */
  .card-image-container img {
    vertical-align: top; /* Eliminar espacio inferior de las imágenes */
  }
}
