/* =============================================================================
 * Slider Home (hero) — widget Elementor daher_hero_slider
 * ============================================================================= */

.daher-hero {
  position: relative;
  width: 100%;
}

.daher-hero__swiper {
  position: relative;
  overflow: hidden;
}

/* El slide crece con la imagen. El "Alto mínimo" (Elementor) es sólo un PISO:
   si la imagen es más alta, el slide se expande y no la recorta. */
.daher-hero__slide {
  position: relative;
  display: block;
  min-height: 460px;
  overflow: hidden;
}

/* Overlay (controlado por Elementor; valor por defecto suave) */
.daher-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  pointer-events: none;
  z-index: 1;
}

/* Imagen en flujo normal: define la altura del slide. */
.daher-hero__media {
  display: block;
  width: 100%;
  /* Propaga el piso de alto mínimo desde el slide hasta la imagen. */
  min-height: inherit;
}

.daher-hero__img {
  display: block;
  width: 100%;
  height: auto;
  /* Si la imagen escalada quedara MÁS BAJA que el alto mínimo, se rellena el
     piso con recorte; si es más alta, manda su altura natural (no se recorta). */
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

/* Enlace que cubre todo el slide */
.daher-hero__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Contenido (texto + botón) superpuesto sobre la imagen */
.daher-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
}

.daher-hero__content-inner {
  max-width: 560px;
}

.daher-hero__slide--left   .daher-hero__content { justify-content: flex-start; text-align: left; }
.daher-hero__slide--center .daher-hero__content { justify-content: center; text-align: center; }
.daher-hero__slide--center .daher-hero__content-inner { margin: 0 auto; }
.daher-hero__slide--right  .daher-hero__content { justify-content: flex-end; text-align: right; }

.daher-hero__text {
  color: #fff;
  line-height: 1.3;
}

.daher-hero__text h1,
.daher-hero__text h2,
.daher-hero__text h3 {
  margin: 0 0 .4em;
  line-height: 1.15;
}

.daher-hero__text p { margin: 0 0 .6em; }
.daher-hero__text p:last-child { margin-bottom: 0; }

.daher-hero__btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--color-secundario, #ec0106);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
  position: relative;
  z-index: 4;
}

.daher-hero__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
}

/* =============================================================================
 * Navegación moderna (flechas) — chevron dibujado con CSS puro, sin depender
 * de la fuente swiper-icons (así se ve igual en el editor y en el front).
 * ============================================================================= */
.slider_daher_home .daher-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, .35);
  border: 1.5px solid rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  z-index: 5;
}

.slider_daher_home .daher-hero__nav:hover {
  background: var(--color-secundario, #ec0106);
  border-color: var(--color-secundario, #ec0106);
  transform: translateY(-50%) scale(1.08);
}

/* Anula por completo el glyph de Swiper (font-icon). El ícono es un SVG propio
   dentro del botón, así no depende de la fuente swiper-icons ni del orden de CSS. */
.slider_daher_home .daher-hero .daher-hero__nav::after,
.slider_daher_home .daher-hero .daher-hero__nav::before {
  content: none !important;
  display: none !important;
}

.slider_daher_home .daher-hero__nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: inherit;
}

.slider_daher_home .daher-hero__nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

.slider_daher_home .daher-hero__nav--prev { left: 18px; }
.slider_daher_home .daher-hero__nav--prev::after { transform: rotate(135deg); margin-left: 4px; }
.slider_daher_home .daher-hero__nav--next { right: 18px; }
.slider_daher_home .daher-hero__nav--next::after { transform: rotate(-45deg); margin-right: 4px; }

/* =============================================================================
 * Paginación moderna (bullets tipo pill)
 * ============================================================================= */
.daher-hero__pag {
  bottom: 16px !important;
}

.daher-hero .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
  background: #fff;
  opacity: .55;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: width .25s ease, opacity .25s ease, background .25s ease;
}

.daher-hero .swiper-pagination-bullet-active {
  opacity: 1;
  width: 28px;
  background: var(--color-secundario, #ec0106);
}

/* =============================================================================
 * Responsive
 * ============================================================================= */
@media (max-width: 767px) {
  .daher-hero__slide {
    min-height: 320px;
  }
  .daher-hero__content {
    padding: 20px 16px;
    justify-content: center;
    text-align: center;
  }
  .daher-hero__content-inner { margin: 0 auto; }

  .daher-hero__nav {
    width: 40px;
    height: 40px;
  }
  .daher-hero__nav-icon { width: 16px; height: 16px; }
  .daher-hero__nav--prev { left: 10px; }
  .daher-hero__nav--next { right: 10px; }
}
