/* Hero Slider estilo Athens (Rey) — copia.coltendencia.com */
:root{
  --aths-easeoutexpo: cubic-bezier(.19,1,.22,1);
}

/* oculta el hero estático de Elementor en la home */
body.home .ath-hero.elementor-section{ display:none !important; }

.aths-hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:86vh;
  overflow:hidden;
  background:#111;
  isolation:isolate;
  /* full-bleed */
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.aths-slides{
  position:absolute; inset:0;
  --splide-transform-dir:-1;
  --active-index:0;
}
.aths-slide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transform: translateX(calc(var(--splide-transform-dir, -1) * (var(--slide-index, 0) - var(--active-index, 0)) * 7%));
  transition: opacity 500ms var(--aths-easeoutexpo),
              transform 900ms var(--aths-easeoutexpo),
              visibility 0s linear 500ms;
  will-change:opacity,transform;
}
.aths-slide.is-active{
  opacity:1; visibility:visible; z-index:2;
  transition: opacity 500ms var(--aths-easeoutexpo),
              transform 900ms var(--aths-easeoutexpo),
              visibility 0s;
}
/* Art direction: el <picture> ocupa todo el slide */
.aths-slide picture{
  display:block;
  width:100%;
  height:100%;
}
.aths-slide picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

.aths-slide img{
  width:100%; height:100%;
  object-fit:cover; object-position:center center;
  transform:scale(1.001);
  transition:transform 9s linear;
}
.aths-slide.is-active img{ transform:scale(1.075); }

.aths-veil{
  position:absolute; inset:0; z-index:3; pointer-events:none;
  background:
    linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.38) 42%, rgba(0,0,0,.06) 75%),
    linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 62%);
}

.aths-content{
  position:relative; z-index:4;
  width:100%; max-width:1440px; margin:0 auto;
  padding:0 clamp(20px,4vw,64px) clamp(44px,6vw,76px);
}
.aths-panel{ display:none; }
.aths-panel.is-active{ display:block; }

.aths-kicker{
  margin:0 0 clamp(10px,1.3vw,18px);
  color:#fff;
  font-family:"Barlow",sans-serif;
  font-size:clamp(10px,.95vw,13px);
  font-weight:500;
  letter-spacing:.34em;
  text-transform:uppercase;
  opacity:0; transform:translateY(18px);
  transition:opacity .7s var(--aths-easeoutexpo) .05s, transform .9s var(--aths-easeoutexpo) .05s;
}
.aths-title{
  margin:0;
  color:#fff;
  font-family:"Barlow",sans-serif;
  font-weight:800;
  font-size:min(var(--aths-fs, 9.4vw), 176px);
  line-height:.84;
  letter-spacing:-.035em;
  text-transform:uppercase;
  opacity:0; transform:translateY(26px);
  transition:opacity .8s var(--aths-easeoutexpo) .12s, transform 1s var(--aths-easeoutexpo) .12s;
}
.aths-title mark{
  background:transparent; padding:0; font-size:100%;
  color:#fff;
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke-color:#fff;
  -webkit-text-stroke-width:clamp(1px,.16vw,2.5px);
}
.aths-sub{
  margin:clamp(14px,1.6vw,22px) 0 0;
  max-width:40ch;
  color:rgba(255,255,255,.92);
  font-family:"Barlow",sans-serif;
  font-size:clamp(13px,1.05vw,16px);
  font-weight:300;
  line-height:1.55;
  opacity:0; transform:translateY(20px);
  transition:opacity .7s var(--aths-easeoutexpo) .2s, transform .9s var(--aths-easeoutexpo) .2s;
}
.aths-ctas{
  display:flex; flex-wrap:wrap; gap:clamp(18px,2.4vw,44px);
  margin-top:clamp(22px,2.6vw,34px);
  opacity:0; transform:translateY(20px);
  transition:opacity .7s var(--aths-easeoutexpo) .28s, transform .9s var(--aths-easeoutexpo) .28s;
}
.aths-cta{
  position:relative; display:block;
  padding:13px 0; min-width:210px;
  color:#fff; text-decoration:none;
  border-top:1px solid rgba(255,255,255,.35);
}
.aths-cta-label{
  display:block;
  font-size:clamp(11px,.9vw,12px);
  font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  transition:transform .5s var(--aths-easeoutexpo), opacity .5s var(--aths-easeoutexpo);
}
.aths-cta-secondary{
  display:block; margin-top:6px;
  font-size:clamp(12px,.95vw,14px); font-weight:300;
  color:rgba(255,255,255,.72);
  transition:opacity .5s var(--aths-easeoutexpo);
}
.aths-cta::after{
  content:"VER AHORA →";
  position:absolute; left:0; top:13px;
  font-size:clamp(11px,.9vw,12px);
  font-weight:600; letter-spacing:.22em;
  opacity:0; transform:translateY(8px);
  transition:opacity .45s var(--aths-easeoutexpo), transform .45s var(--aths-easeoutexpo);
}
.aths-cta:hover .aths-cta-label{ opacity:0; transform:translateY(-8px); }
.aths-cta:hover::after{ opacity:1; transform:translateY(0); }
.aths-cta:hover .aths-cta-secondary{ opacity:.45; }

.aths-hero.is-ready .aths-panel.is-active .aths-kicker,
.aths-hero.is-ready .aths-panel.is-active .aths-title,
.aths-hero.is-ready .aths-panel.is-active .aths-sub,
.aths-hero.is-ready .aths-panel.is-active .aths-ctas{ opacity:1; transform:none; }

.aths-nav{
  position:absolute; z-index:5;
  right:clamp(20px,4vw,64px); bottom:clamp(26px,4vw,50px);
  display:flex; gap:8px;
}
.aths-nav button{
  width:46px; height:2px; padding:0; border:0; cursor:pointer;
  background:rgba(255,255,255,.35);
  position:relative; overflow:hidden;
}
.aths-nav button span{ position:absolute; inset:0; background:#fff; transform:scaleX(0); transform-origin:left center; }
.aths-nav button.is-active span{ animation:athsBar 7000ms linear forwards; }
@keyframes athsBar{ from{transform:scaleX(0)} to{transform:scaleX(1)} }

@media (max-width:782px){
  .aths-hero{ min-height:74vh; }
  .aths-title{ font-size:min(calc(var(--aths-fs,9.4vw) * 1.45), 74px); }
  .aths-sub{ max-width:30ch; }
  .aths-nav{ bottom:16px; right:20px; }
  .aths-nav button{ width:30px; }
  .aths-cta{ min-width:180px; }
}
@media (prefers-reduced-motion: reduce){
  .aths-slide,.aths-slide img,.aths-title,.aths-sub,.aths-kicker,.aths-ctas{ transition:none !important; animation:none !important; }
}

/* Segunda palabra del título en amarillo */
.aths-title__solid{
  color:#FFEA00;
  -webkit-text-fill-color:#FFEA00;
}

/* CTAs del hero: texto en amarillo (antes heredaba negro) */
.aths-cta{ color:#FFEA00 !important; }
.aths-cta-label{
  color:#FFEA00 !important;
  -webkit-text-fill-color:#FFEA00 !important;
}
.aths-cta::after{
  color:#FFEA00 !important;
  -webkit-text-fill-color:#FFEA00 !important;
}
.aths-cta-secondary{
  color:rgba(255,234,0,.78) !important;
}
.aths-cta:hover .aths-cta-secondary{ opacity:.55; }

/* Móvil: el kicker no se parte en dos líneas */
@media (max-width:782px){
  .aths-kicker{
    font-size:10px;
    letter-spacing:.16em;
    white-space:nowrap;
  }
}

/* Móvil: el título nunca parte palabras ni pasa a dos líneas */
@media (max-width:782px){
  .aths-title{
    white-space:nowrap !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    -webkit-hyphens:none;
    hyphens:none;
    font-size:min(9vw, 34px) !important;
  }
}
