/* ==========================================================================
   Estructura Global - Contenida Sin Desbordes
   ========================================================================== */
.st-equipos-home-section {
  width: 100% !important;
  margin-top: 40px !important;
  margin-bottom: 50px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.st-equipos-home-section .st-container {
  width: 100% !important;
  max-width: 1200px !important; /* Retícula: Max-width 1200px */
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  overflow: hidden !important; /* Garantiza que nada se salga del contenedor */
}

/* ==========================================================================
   Filtros / Pestañas Superiores
   ========================================================================== */
.st-slider-filters-tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-left: 0 !important;
}

.st-filter-tab-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #696969; /* Textos de Apoyo / Secundarios */
  padding: 10px 24px;
  border-radius: 25px;
  font-family: 'Avenir Next Rounded Std', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

/* Activo / Hover Primario (Productos/Todos) */
.st-filter-tab-btn:hover,
.st-filter-tab-btn.active {
  background: #20B2AA !important;
  color: #FFFFFF !important;
  border-color: #20B2AA !important;
  box-shadow: 0 4px 12px rgba(32, 178, 170, 0.25);
}

/* Activo / Hover Secundario (Repuestos) */
.st-filter-tab-btn[data-filter="repuesto"].active,
.st-filter-tab-btn[data-filter="repuesto"]:hover {
  background: #FF8C00 !important;
  color: #FFFFFF !important;
  border-color: #FF8C00 !important;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25) !important;
}

/* ==========================================================================
   Swiper Slider Estándar
   ========================================================================== */
.st-equipos-swiper {
  width: 100% !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.st-equipos-swiper .swiper-wrapper {
  display: flex;
}

.st-equipos-swiper .swiper-wrapper .swiper-slide:first-child {
  display: none !important;
}

.st-equipos-swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
  width: 350px !important;
  flex-shrink: 0;
}

.st-equipos-swiper .swiper-button-next,
.st-equipos-swiper .swiper-button-prev {
  display: none !important;
}

/* ==========================================================================
   Estructura Base de Tarjetas
   ========================================================================== */
.st-product-card {
  width: 100%;
  border-radius: 16px;
  padding: 20px; /* Padding interno dentro de regla (20px-30px) */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.st-card-content {
  width: 100%;
}

/* --------------------------------------------------------------------------
   1. TARJETAS DE REPUESTOS (Marca Secundaria - Naranja)
   -------------------------------------------------------------------------- */
.st-product-card.is-repuesto {
  background-color: #FFECD8 !important; /* Design token 2.2: Fondo de Tarjetas de Repuestos */
  border: 2px solid transparent; /* Borde base para evitar saltos al hacer hover */
}

/* Hover: El borde/línea se pinta del color naranja secundario (#D0730D) */
.st-product-card.is-repuesto:hover {
  border-color: #D0730D !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(208, 115, 13, 0.2);
}

.st-product-card.is-repuesto .st-product-img-container {
  background: #FFFFFF !important;
  border-radius: 12px;
  height: 260px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 14px;
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
}

.st-product-card.is-repuesto .st-product-img-container img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.st-badge-wrapper {
  margin-bottom: 8px;
}

/* Badge Repuestos: #D0730D */
.st-badge-repuesto {
  background-color: #D0730D !important;
  color: #FFFFFF !important;
  font-size: 12px;
  font-weight: 400;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.st-product-card.is-repuesto .st-product-title-area h3 {
  font-size: 18px; /* H3: 18pt */
  font-weight: 500; /* H3: Medium */
  margin: 0 0 12px 0;
  color: #1A1A1A;
}

.st-product-card.is-repuesto .st-product-title-area h3 a {
  color: #1A1A1A;
  text-decoration: none;
}

/* Botón flotante para Repuestos: #FF8C00 con hover #D0730D */
.st-product-card.is-repuesto .st-expandable-btn {
  background-color: #FF8C00 !important;
}

.st-product-card.is-repuesto:hover .st-expandable-btn {
  background-color: #D0730D !important;
}

/* --------------------------------------------------------------------------
   2. TARJETAS DE PRODUCTOS / TRACTORES (Marca Principal - Azul / Turquesa)
   -------------------------------------------------------------------------- */
.st-product-card.is-normal {
  background-color: #E0F2F0 !important; /* Design token 2.1: Fondo de Tarjetas Destacadas */
  border: 2px solid transparent;
}

/* Hover: El borde/línea se pinta del color azul primario (#20B2AA) */
.st-product-card.is-normal:hover {
  border-color: #20B2AA !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(32, 178, 170, 0.2);
}

.st-product-card.is-normal .st-product-img-container {
  background: #FFFFFF !important;
  border-radius: 12px;
  height: 260px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 14px;
  text-decoration: none;
  box-sizing: border-box;
}

.st-product-card.is-normal .st-product-img-container img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.st-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

/* Badge Productos: #20B2AA */
.st-badge-producto {
  background-color: #20B2AA !important;
  font-size: 12px;
  font-weight: 400;
  color: #FFFFFF !important;
  padding: 3px 9px;
  border-radius: 4px;
}

.st-product-card.is-normal .st-product-title-area h3 {
  font-size: 18px; /* H3: 18pt */
  font-weight: 500; /* H3: Medium */
  margin: 0 0 12px 0;
  color: #1A1A1A;
}

.st-product-card.is-normal .st-product-title-area h3 a {
  color: #1A1A1A;
  text-decoration: none;
}

.st-product-card.is-normal .st-card-action-container {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  width: 100%;
}

/* Botón Desplazable de Ver Detalle */
.st-expandable-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background-color: #20B2AA; /* CTA Primario */
  color: #FFFFFF;
  text-decoration: none !important;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.st-btn-text {
  font-weight: 500; /* Botones CTA: Medium */
  font-size: 14px;
  padding-left: 14px;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease-in;
  pointer-events: none;
  color: #FFFFFF;
}

.st-btn-icon-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-product-card.is-normal:hover .st-expandable-btn {
  width: 100% !important;
  background-color: #23928B !important; /* Hover de Botones Principales */
}

.st-product-card.is-normal:hover .st-btn-text {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.1s;
}

/* ==========================================================================
   Flechas de Navegación Inferiores
   ========================================================================== */
.st-bottom-nav-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 30px !important;
  padding-left: 0 !important;
  width: 100% !important;
}

.st-custom-prev-btn,
.st-custom-next-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #696969 !important; /* Íconos Secundarios */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.25s ease !important;
  outline: none !important;
}

.st-custom-prev-btn:hover,
.st-custom-next-btn:hover {
  background: #FFFFFF !important;
  border-color: #20B2AA !important;
  color: #20B2AA !important;
  box-shadow: 0 4px 12px rgba(32, 178, 170, 0.2) !important;
}

.st-custom-prev-btn:active,
.st-custom-next-btn:active {
  transform: scale(0.95);
}