/**
 * Hero Slider CLEAN - Sin Owl Carousel
 *
 * Estilos completamente nuevos y limpios
 *
 * @package Edumart Child
 */

/* ==========================================================================
   Container Principal
   ========================================================================== */

/* Eliminar espacios arriba del slider */
.elementor-section:has(.poli-hero-slider),
.elementor-container:has(.poli-hero-slider) {
  margin: 0;
  padding: 0;
}

/* Forzar eliminación de padding en contenedores Elementor flexbox */
.e-con-full:has(.poli-hero-slider),
.e-con:has(.poli-hero-slider) {
  margin: 0;
  padding: 0;
  padding-block-start: 0;
  padding-block-end: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  max-width: 100%;
  width: 100%;
}

.e-con > .e-con-inner:has(.poli-hero-slider) {
  margin: 0;
  padding: 0;
  padding-block-start: 0;
  padding-block-end: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  max-width: 100%;
  width: 100%;
}

/* Asegurar que el widget de shortcode también sea full width */
.elementor-widget-shortcode:has(.poli-hero-slider) {
  width: 100%;
  max-width: 100%;
}

.elementor-widget-shortcode:has(.poli-hero-slider) .elementor-widget-container {
  width: 100%;
  max-width: 100%;
}

.poli-hero-slider {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  background: #000;
  box-sizing: border-box;
}

/* Si el hero slider está en un contenedor con padding, eliminarlo */
.poli-hero-slider .container {
  padding-left: 15px;
  padding-right: 15px;
}

.poli-hero-slider__container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Slides
   ========================================================================== */
.poli-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.poli-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.poli-hero-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.poli-hero-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.poli-hero-slide__inner {
  max-width: 700px;
  padding: 40px 0;
}

/* Alineaciones */
.poli-hero-slide__content.align-left .poli-hero-slide__inner {
  margin-right: auto;
}

.poli-hero-slide__content.align-center {
  text-align: center;
}

.poli-hero-slide__content.align-center .poli-hero-slide__inner {
  margin: 0 auto;
}

.poli-hero-slide__content.align-right .poli-hero-slide__inner {
  margin-left: auto;
  text-align: right;
}

/* ==========================================================================
   Contenido del Slide
   ========================================================================== */
.poli-hero-slide__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #ffffff;
}

.poli-hero-slide__description {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 30px 0;
  color: #ffffff;
}

.poli-hero-slide__cta {
  margin-top: 30px;
}

.poli-hero-slide__button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--primary-color, #ff9600);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 150, 0, 0.3);
  line-height: 1;
  white-space: nowrap;
}

/* Forzar que los <br> dentro del botón no funcionen */
.poli-hero-slide__button br {
  display: none;
}

.poli-hero-slide__button * {
  white-space: nowrap;
}

.poli-hero-slide__button:hover {
  background: #ffffff;
  color: var(--primary-color, #ff9600);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 150, 0, 0.4);
  text-decoration: none;
}

.poli-hero-slide__button:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */
.poli-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poli-hero-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
}

.poli-hero-nav--prev {
  left: 30px;
}

.poli-hero-nav--next {
  right: 30px;
}

/* ==========================================================================
   Dots Navigation
   ========================================================================== */
.poli-hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.poli-hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.poli-hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.poli-hero-dot.active {
  background: var(--primary-color, #ff9600);
  border-color: var(--primary-color, #ff9600);
  width: 30px;
  border-radius: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .poli-hero-slider {
    height: 60vh;
    min-height: 400px;
  }

  .poli-hero-slide__title {
    font-size: 42px;
  }

  .poli-hero-slide__description {
    font-size: 16px;
  }

  .poli-hero-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .poli-hero-nav--prev {
    left: 15px;
  }

  .poli-hero-nav--next {
    right: 15px;
  }
}

@media (max-width: 768px) {
  .poli-hero-slider {
    height: 50vh;
    min-height: 350px;
  }

  .poli-hero-slide__title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .poli-hero-slide__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .poli-hero-slide__cta {
    margin-top: 25px;
  }

  .poli-hero-slide__button {
    padding: 14px 35px;
    font-size: 14px;
    letter-spacing: 0.8px;
  }

  .poli-hero-nav {
    display: none;
  }

  .poli-hero-dots {
    bottom: 20px;
  }
}

@media (max-width: 576px) {
  .poli-hero-slide__title {
    font-size: 28px;
  }

  .poli-hero-slide__description {
    font-size: 14px;
  }
}

/* ==========================================================================
   Fix Global - Prevenir Desbordamiento
   ========================================================================== */

/* Asegurar que el contenedor padre de Elementor no cause overflow */
.elementor-widget-shortcode:has(.poli-hero-slider) {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.elementor-widget-shortcode:has(.poli-hero-slider) .elementor-widget-container {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* Asegurar que body y html no tengan overflow horizontal */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}
