/* Slider principal (hero): Ken Burns, paginación, barra de progreso y contador */

/* Zoom suave en la imagen activa (usa la propiedad "scale" para no pisar el transform original) */
.hero-3 .swiper-slide-active .hero-slider-items .item-img img {
  transform-origin: 70% 50%;
  animation: heroKenBurns 9s ease-out forwards;
}
@keyframes heroKenBurns {
  from { scale: 1; }
  to { scale: 1.09; }
}

/* Velo claro para asegurar la lectura del texto sobre la imagen */
.hero-3 .item-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240, 248, 255, .55) 0%, rgba(240, 248, 255, 0) 55%);
  pointer-events: none;
}
@media (max-width: 991px) {
  .hero-3 .item-img::after {
    background: linear-gradient(180deg, rgba(240, 248, 255, .8) 0%, rgba(240, 248, 255, .55) 100%);
  }
}

/* Paginación (dots) */
.hero-3 .hero-pagination {
  position: absolute;
  left: 195px;
  bottom: 51px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-3 .hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #638969;
  opacity: .3;
  cursor: pointer;
  transition: width .4s ease, opacity .4s ease, background .3s ease;
}
.hero-3 .hero-pagination .swiper-pagination-bullet:hover {
  opacity: .65;
}
.hero-3 .hero-pagination .swiper-pagination-bullet-active {
  width: 34px;
  opacity: 1;
}

/* Contador */
.hero-3 .hero-counter {
  position: absolute;
  left: 315px;
  bottom: 44px;
  z-index: 99;
  font-size: 14px;
  letter-spacing: .12em;
  color: #638969;
}
.hero-3 .hero-counter b {
  font-size: 20px;
  font-weight: 700;
}

/* Barra de progreso del autoplay (5 s) */
.hero-3 .hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 99;
  background: rgba(44, 71, 98, .12);
}
.hero-3 .hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #638969, #d2957e);
  /* Paint the thin bar instead of scaling a composited layer during smooth scroll. */
  animation: heroProgress 5s linear both;
}
@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Flechas */
.hero-3 .array-button .array-prev:hover,
.hero-3 .array-button .array-next:hover {
  transform: scale(1.1);
  background-color: #d2957e;
  color: #14202c;
}

/* Pantallas grandes: flechas laterales, dots a la izquierda */
@media (min-width: 1601px) {
  .hero-3 .hero-pagination { left: 40px; }
  .hero-3 .hero-counter { left: 160px; }
}

/* Móvil y tablet: dots centrados, sin contador */
@media (max-width: 991px) {
  .hero-3 .hero-pagination {
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
  }
  .hero-3 .hero-counter { display: none; }
}

/* Accesibilidad: respeta "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  .hero-3 .swiper-slide-active .hero-slider-items .item-img img,
  .hero-3 .hero-progress span {
    animation: none;
  }
  .hero-3 .hero-progress span { width: 100%; }
}

/* Franja de confianza bajo los botones (reemplaza las tarjetas inferiores) */
.hero-3 .hero-slider-items {
  padding-bottom: 170px;
}
.hero-3 .hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.hero-3 .swiper-slide-active .hero-trust {
  opacity: 1;
  transform: none;
  transition-delay: 1.5s;
}
.hero-3 .hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #638969;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(44, 71, 98, .15);
  backdrop-filter: blur(6px);
}
.hero-3 .hero-trust li i {
  color: #3d7fb0;
  font-size: 13px;
}
@media (max-width: 991px) {
  .hero-3 .hero-slider-items { padding-bottom: 120px; }
  .hero-3 .hero-trust { justify-content: center; margin-top: 26px; }
}
@media (max-width: 575px) {
  .hero-3 .hero-trust li { font-size: 12.5px; padding: 6px 12px; }
}

/* ===== Nuevo efecto de transición (sin desenfoque) ===== */

/* Imagen: sin blur ni estiramiento; entra con una cortina lateral y un zoom-out */
.hero-3 .item-img {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1);
}
.hero-3 .swiper-slide-active .item-img {
  clip-path: inset(0 0 0 0);
}
.hero-3 .item-img img,
.hero-3 .swiper-slide:is(.swiper-slide-active) .hero-slider-items .item-img img {
  filter: none;
  transform: none;
}
.hero-3 .swiper-slide-active .hero-slider-items .item-img img {
  transform-origin: 70% 50%;
  animation: heroZoomOut 9s cubic-bezier(.2, .6, .2, 1) forwards;
}
@keyframes heroZoomOut {
  from { scale: 1.25; }
  to { scale: 1.02; }
}

/* Título: cada línea sube desde una máscara, sin deformarse */
.hero-3 .split-line {
  transform: translateY(70px);
  opacity: 0;
  transition: transform 1s cubic-bezier(.22, 1, .36, 1), opacity .8s ease;
}
.hero-3 .swiper-slide:is(.swiper-slide-active) .hero-slider-items .hero_title .split-line {
  transform: none;
  opacity: 1;
}

/* Subtítulo, texto y botones: entrada limpia desde abajo */
.hero-3 .hero-content .hero-sub {
  transform: translateY(24px);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .9s ease;
}
.hero-3 .swiper-slide:is(.swiper-slide-active) .hero-slider-items .hero-sub {
  transform: none;
}
.hero-3 .hero-content .hero-button {
  transform: translateY(24px);
  transform-origin: initial;
}
.hero-3 .swiper-slide:is(.swiper-slide-active) .hero-slider-items .hero-button {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-3 .item-img { clip-path: none; transition: none; }
  .hero-3 .split-line { transform: none; opacity: 1; }
}
