/* ===============================================
   GCLA - Sección de Lotes Destacados
   Componente Modular - Productos con Mayor ROI
   =============================================== */

/* Contenedor Principal */
.featured-lots-section {
  background: #FFFFFF;
  position: relative;
  padding: 48px 0;
  overflow: hidden;
}

/* Header de la Sección */
.featured-lots-section .section-header {
  margin-bottom: 48px;
}

/* Grid de Lotes - Layout Horizontal */
.featured-lots-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 20px;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  position: relative;
}

/* Tarjetas de Lote - DIMENSIONES FIJAS */
.featured-lots-grid .lot-card {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

/* Estilos específicos de lotes destacados - 
   Los estilos base de .lot-card están en style.css */
.featured-lots-grid .lot-card {
  min-height: 380px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.lot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #10B981;
}

/* Imagen del Lote */
.lot-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #F9FAFB;
}

.lot-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s ease;
}

.lot-card:hover .lot-image img {
  transform: scale(1.05);
}

/* Badge de Favorito */
.lot-favorite {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lot-favorite:hover {
  background: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lot-favorite i {
  color: #9CA3AF;
  font-size: 1rem;
}

.lot-favorite.active i {
  color: #EF4444;
}

/* Badge de Estado */
.lot-status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10B981;
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Badge de ROI */
.lot-roi {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Contenido del Lote */
.lot-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lot-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lot-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.lot-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.lot-detail-label {
  color: #6B7280;
  font-weight: 500;
}

.lot-detail-value {
  color: #1F2937;
  font-weight: 600;
}

.lot-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #10B981;
  text-align: center;
  margin-bottom: 8px;
}

.lot-price .old-price {
  font-size: 0.8rem;
  color: #9CA3AF;
  text-decoration: line-through;
  margin-right: 8px;
}

.lot-availability {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.availability-count {
  font-size: 0.8rem;
  color: #6B7280;
  font-weight: 500;
}

.lot-btn {
  width: 100%;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.lot-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.lot-btn:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Scrollbar Personalizado */
.featured-lots-grid::-webkit-scrollbar {
  height: 6px;
}

.featured-lots-grid::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 3px;
}

.featured-lots-grid::-webkit-scrollbar-thumb {
  background: #10B981;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.featured-lots-grid::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Mensaje cuando no hay lotes */
.no-lots-message {
  text-align: center;
  padding: 64px 24px;
  color: #6B7280;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-lots-grid .lot-card {
    flex: 0 0 260px;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
  }
  
  .lot-card {
    min-height: 360px;
    max-height: 400px;
  }
  
  .lot-image {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .featured-lots-grid .lot-card {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
  }
  
  .lot-card {
    min-height: 340px;
    max-height: 380px;
  }
  
  .lot-image {
    height: 120px;
  }
  
  .lot-content {
    padding: 12px;
  }
  
  .lot-title {
    font-size: 0.9rem;
  }
  
  .lot-price {
    font-size: 1.1rem;
  }
}

/* Para pantallas muy grandes */
@media (min-width: 1400px) {
  .featured-lots-grid .lot-card {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }
  
  .lot-card {
    min-height: 400px;
    max-height: 440px;
  }
  
  .lot-image {
    height: 180px;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .lot-card {
    border-width: 2px;
    border-color: #10B981;
  }
  
  .lot-status,
  .lot-roi {
    border: 2px solid #FFFFFF;
  }
}

/* Animaciones suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lot-card {
  animation: fadeInUp 0.5s ease backwards;
}

.lot-card:nth-child(1) { animation-delay: 0.1s; }
.lot-card:nth-child(2) { animation-delay: 0.2s; }
.lot-card:nth-child(3) { animation-delay: 0.3s; }
.lot-card:nth-child(4) { animation-delay: 0.4s; }
.lot-card:nth-child(5) { animation-delay: 0.5s; }
.lot-card:nth-child(6) { animation-delay: 0.6s; }
