/* ---------- VARIABLES ---------- */
:root {
  --tacmex-white: #ffffff;
  --tacmex-green: #00b894;
  --font-heading: 'Arial', sans-serif; /* ajusta según tu font */
}

/* ---------- TITULO ---------- */
.products-section .section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 0 0 1rem;
  position: relative;
  color: var(--tacmex-white);
  text-transform: uppercase;
}

.products-section .section-title::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--tacmex-white);
  bottom: -6px;
}

/* ---------- LISTA ---------- */
.products-list ul {
  list-style: none !important;
  padding: 0;
  margin: 1rem 0 0;
}

.products-list li {
  font-size: .75rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--tacmex-white);
  margin: 0.8rem 15px;
  padding-left: 1.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-decoration: none;
  list-style: none;
}

.products-list li::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--tacmex-green);
  border-radius: 50%;
  left: 0.5rem;
  top: 0.7em;
  transition: all 0.3s ease;
}

.products-list li:hover {
  color: var(--tacmex-white);
  transform: translateX(5px);
}

.products-list li:hover::before {
  background-color: var(--tacmex-white);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Estado activo para el item seleccionado */
.products-list li.active {
  transform: translateX(8px);
  color: var(--tacmex-white);
}

.products-list li.active::before {
  background-color: var(--tacmex-green);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(0, 184, 148, 0.5);
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------- IMÁGENES - SLIDESHOW AUTOMÁTICO ---------- */
.products-content {
  display: flex;
  gap: 2rem;
}

.products-images {
  flex: 1;
  position: relative;
  min-height: 500px;
}

/* Slideshow container */
.products-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Slides automáticos */
.product-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 0.5s ease;
  border-radius: 12px;
}

.product-slide.active {
  opacity: 1;
}

/* Overlay cinematográfico sutil */
.products-slideshow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 184, 148, 0.05) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 184, 148, 0.05) 100%
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: overlayFadeIn 2s ease-out 0.5s forwards;
  border-radius: 12px;
}

@keyframes overlayFadeIn {
  to {
    opacity: 1;
  }
}

/* Hover effect refinado */
.products-slideshow:hover .product-slide.active {
  transform: scale(1.02);
  transition: transform 1s ease-out;
}

/* Overlay hover */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  transition: opacity 0.4s ease-in-out;
}

.hover-overlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hover-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hover-overlay.active img {
  opacity: 1;
  transform: scale(1);
}

/* Efectos de fade para transiciones */
.fade-transition {
  opacity: 0.3;
  transform: scale(0.98);
}

.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 768px) {
  .products-section .section-title { font-size: 1.2rem; }
  .products-list li {
    font-size: 0.95rem;
    text-align: center;
    padding-left: 0;
    transform: none !important;
    margin: 0.6rem 0;
  }
  .products-list li::before { display: none; }

  .products-content { flex-direction: column; }
  
  .products-images {
    min-height: 350px;
  }
  
  .products-slideshow {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .products-section .section-title {
    font-size: 1.1rem;
    text-align: center;
  }
  .products-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .products-list li { font-size: 0.9rem; padding: 0.6rem 0; }
  
  .products-images {
    min-height: 300px;
  }
  
  .products-slideshow {
    height: 300px;
  }
}