/**
 * BRANDS FEATURED SECTION - HARE EQUIPMENT
 * Sección de marcas destacadas
 */

/* ================================================
   BRANDS FEATURED SECTION
   ================================================ */

.brands-featured-section {
  padding: var(--spacing-24) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.brands-featured-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

/* Header */
.brands-featured-header {
  text-align: center;
  margin-bottom: var(--spacing-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.brands-featured-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--spacing-4) 0;
}

.brands-featured-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Grid */
.brands-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-10);
}

/* Brand Card */
.brand-featured-card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-10);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.brand-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.brand-featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-primary-xl);
  border-color: var(--color-primary);
}

.brand-featured-card:hover::before {
  transform: scaleX(1);
}

/* Image */
.brand-featured-image-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-8);
  padding: var(--spacing-6);
  background: linear-gradient(135deg, rgba(193, 104, 55, 0.03) 0%, rgba(193, 104, 55, 0.08) 100%);
  border-radius: var(--radius-default);
  transition: all var(--transition-base);
}

.brand-featured-card:hover .brand-featured-image-wrapper {
  background: linear-gradient(135deg, rgba(193, 104, 55, 0.08) 0%, rgba(193, 104, 55, 0.12) 100%);
}

.brand-featured-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-base);
}

.brand-featured-card:hover .brand-featured-image {
  transform: scale(1.05);
}

/* Content */
.brand-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.brand-featured-name {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin: 0 0 var(--spacing-4) 0;
  line-height: var(--line-height-tight);
}

.brand-featured-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--spacing-8) 0;
  flex: 1;
}

/* CTA */
.brand-featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-4) var(--spacing-6);
  border-radius: var(--radius-default);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: all var(--transition-base);
  margin-top: auto;
}

.brand-featured-cta.has-products {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 2px solid var(--color-primary);
}

.brand-featured-cta.has-products:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
}

.brand-featured-cta.no-products {
  background: transparent;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  cursor: not-allowed;
  opacity: 0.7;
}

.brand-featured-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.brand-featured-cta.has-products:hover svg {
  transform: translateX(4px);
}

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

@media (max-width: 1024px) {
  .brands-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-8);
  }
}

@media (max-width: 768px) {
  .brands-featured-section {
    padding: var(--spacing-16) 0;
  }

  .brands-featured-header {
    margin-bottom: var(--spacing-12);
  }

  .brands-featured-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }

  .brand-featured-card {
    padding: var(--spacing-8);
  }

  .brand-featured-image-wrapper {
    height: 160px;
  }
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-featured-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

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