/* Generated split from dual.css + convenios.css
   File: hero.css
*/

.dual-hero--elegant {
  min-height: calc(100svh - var(--header-h, 88px));
  display: flex;
  align-items: center;
  background: #004080; /* azul sobrio como en el hero PASCH actualizado */
  color: #fff;
  border-bottom: 4px solid var(--cecns-gold);
}


.dual-hero__container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}


.dual-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  margin-top: 1.5rem;
}


.dual-hero__title {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}


/* .dual-hero__divider {
  width: 72px;
  height: 4px;
  background: var(--cecns-gold);
  border-radius: 999px;
  margin: 0.75rem 0 1rem;
}

 */

/* Animation  */

.dual-hero__divider {
  width: 100%; /* ocupará todo el contenedor, pero “comprimida” al inicio */
  height: 4px;
  background: var(--cecns-gold);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(
    0.2
  ); /* ~72px si el contenedor es 400px -> ajusta el 0.18 a tu gusto */
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: 0.75rem 0 1rem;
}



/* Al “tocar” (hover/focus) se expande a todo el ancho */
.dual-hero__divider:hover,
.dual-hero__divider:focus-visible,
.dual-hero:hover .dual-hero__divider {
  transform: scaleX(1);
}



.dual-hero__lead {
  color: #dce4ef;
  line-height: 1.7;
  max-width: 60ch;
}


.dual-hero__points {
  margin: 0.6rem 0 0 1.15rem;
}


.dual-hero__points li {
  margin: 0.25rem 0;
}


.dual-hero__figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}


.dual-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}



/* ===== Carrusel Dual — estilos ===== */
.dual-carousel {
  position: relative;
}


.dual-carousel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  transition: opacity 0.35s ease;
}


.dual-carousel.is-fading img {
  opacity: 0.35;
}



.dual-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inline-size: 42px;
  block-size: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(8, 32, 56, 0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}


.dual-carousel__btn:hover {
  background: rgba(8, 32, 56, 0.6);
}


.dual-carousel__btn:focus-visible {
  outline: 3px solid var(--cecns-gold);
  outline-offset: 2px;
}


.dual-carousel__btn--prev {
  left: 10px;
}


.dual-carousel__btn--next {
  right: 10px;
}



.dual-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}


.dual-carousel__dots button {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
}


.dual-carousel__dots button[aria-selected="true"] {
  background: var(--cecns-gold);
  border-color: var(--cecns-gold);
}



/* ===== Viñetas pro para dual-hero ===== */
.dual-hero__points {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}


.dual-hero__points li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0.45rem 0;
  color: #e7eef6;
}



/* Disco con aro navy y check dorado */
.dual-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  inline-size: 1.1rem;
  block-size: 1.1rem;
  border-radius: 999px;
  background: radial-gradient(
        circle at center,
        var(--cecns-gold) 65%,
        transparent 66%
      )
      center/100% 100% no-repeat,
    conic-gradient(from 0deg, transparent 0 0); /* placeholder */
  box-shadow: 0 0 0 2px rgba(21, 51, 74, 0.9); /* aro navy */
  /* Check en SVG como máscara */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9.2 16.2 5.5 12.5 4 14l5.2 5.2L20 8.4 18.5 7z"/></svg>');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 62%;
  -webkit-mask-position: center;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9.2 16.2 5.5 12.5 4 14l5.2 5.2L20 8.4 18.5 7z"/></svg>');
  mask-repeat: no-repeat;
  mask-size: 62%;
  mask-position: center;
}


/* ===== Responsive: corrige layout en móvil ===== */
@media (max-width: 920px) {
  .dual-hero--elegant {
    padding: clamp(1.8rem, 6vw, 2.6rem) 0 2.2rem;
  }

  .dual-hero__container {
    grid-template-columns: 1fr; /* apila texto y media */
    justify-items: center;
    gap: clamp(1.2rem, 4vw, 1.8rem);
    text-align: center;
  }

  .dual-hero__col--text {
    text-align: center;
  }

  .dual-hero__divider {
    margin-left: auto;
    margin-right: auto;
  }

  .dual-hero__points {
    margin-left: 0;
  }

  .dual-hero__col--media {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .dual-hero__figure {
    width: min(640px, 100%);
    max-height: clamp(240px, 55vw, 440px);
  }

  .dual-hero__figure img {
    object-position: center center;
  }
}


@media (max-width: 640px) {
  .dual-hero__container {
    width: min(1200px, 94vw);
  }

  .dual-carousel__btn {
    inline-size: 38px;
    block-size: 38px;
  }
}
