/* Flechas Swiper (ajusta colores según tu tema) */
.s-crossfit-slider .swiper-button-prev,
.s-crossfit-slider .swiper-button-next {
  color: #fff;
  width: 44px; height: 44px;
}

/* Evitar que .slider-navigation tape el layout */
.slider-navigation { position: relative; z-index: 2; }
.slider-navigation .slider-navigation-cover { pointer-events: none; }

/* Lazy loaded */
.lozad { opacity: 0; transition: opacity .3s ease; }
.lozad.is-loaded { opacity: 1; }

/* (Opcional) utilidades para cards/productos que te gustan */
.product-card { border-radius: 16px; padding: 16px; background: #fff; }
.product-thumb {
  background: #ff7a00;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.product-thumb img { width: 80%; height: auto; display: block; }



/* ==== Hero Section - Better sizing, centering, and contrast ==== */
.s-crossfit-slider {
  height: 600px !important;
  max-height: 600px !important;
}

.s-crossfit-slider .swiper {
  width: 100%;
  height: 100% !important;
  position: relative;
}

.s-crossfit-slider .swiper-wrapper,
.s-crossfit-slider .swiper-slide {
  height: 100% !important;
}

.swiper-slide { 
  height: 100% !important;
  position: relative !important;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

/* Dark overlay for better text contrast */
.swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 1;
}

.crossfit-slide-bg { 
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: 0 !important;
}

.swiper-slide .container {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  width: 100%;
  max-width: 1200px;
  height: auto !important;
  min-height: 0 !important;
  padding: 20px !important;
}

.crossfit-slide-cover {
  max-width: 900px;
  text-align: center;
  padding: 30px;
  margin: 0 auto;
}

/* Enhanced text contrast */
.crossfit-slide .title {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  color: #fff;
}

.crossfit-slide p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  color: #fff;
}

@media (max-width: 768px) {
  .s-crossfit-slider {
    height: 450px;
    max-height: 450px;
  }
  
  .crossfit-slide-cover {
    padding: 20px;
  }
  
  .s-crossfit-slider .title {
    font-size: 1.8em;
  }
}
