.elementor-121038 .elementor-element.elementor-element-e4236ee{margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 0px;}.elementor-121038 .elementor-element.elementor-element-f31c276 > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget__width-auto):not(.elementor-widget__width-initial):not(:last-child):not(.elementor-absolute){margin-bottom:0px;}.elementor-121038 .elementor-element.elementor-element-f31c276 > .elementor-element-populated{margin:0px 0px 0px 0px;--e-column-margin-right:0px;--e-column-margin-left:0px;padding:0px 0px 0px 0px;}/* Start custom CSS *//* --- Contenedor principal --- */
.custom-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  max-height: 700px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  isolation: isolate; /* crea un stacking context propio */
}

/* --- Cada slide individual --- */
.custom-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

/* --- Contenido dentro del slide --- */
.slide-content {
  text-align: center;
  animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-button {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  font-size: 18px;
  border-radius: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.slide-button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: translateY(-3px);
}

/* --- Flechas --- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* --- Dots tipo barra (siempre visibles) --- */
.custom-slider .slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 10;                /* encima del slide y de las flechas */
  visibility: visible !important;
  opacity: 1 !important;

  /* Pastilla sutil */
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}

.custom-slider .slider-dots button {
  width: 32px;          /* corto y moderno */
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  appearance: none;
}

.custom-slider .slider-dots button::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.95);
  /* La duración se toma de la variable (la setea el JS) */
  transition: none;
}

.custom-slider .slider-dots button.active {
  background: rgba(255,255,255,0.45);
}
.custom-slider .slider-dots button.active::after {
  animation: fillBar var(--slide-duration, 6000ms) linear forwards;
}

@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .custom-slider { height: 45vh; }
  .slide-button { font-size: 16px; padding: 10px 20px; }
  .slider-arrow { width: 38px; height: 38px; font-size: 18px; }
  .custom-slider .slider-dots { gap: 6px; padding: 5px 8px; }
  .custom-slider .slider-dots button { width: 22px; height: 3px; }
}

/* (Opcional) Respeta usuarios con reduce motion */
@media (prefers-reduced-motion: reduce) {
  .custom-slider .slide { transition: none; }
  .custom-slider .slider-dots button.active::after { animation: none; width: 100%; }
}/* End custom CSS */