/* ============================= */
/* BASE */
/* ============================= */

.c-sticky-copy{
  position: relative;
  padding: clamp(80px, 10vh, 120px) 0;
}

.c-sticky-copy__container{
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================= */
/* STICKY */
/* ============================= */

.c-sticky-copy__sticky{
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================= */
/* INTRO + TITLE */
/* ============================= */

.c-sticky-copy__intro,
.c-sticky-copy__title{
  margin: 0;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  color: #C98028;
}

.c-sticky-copy__intro{
  font-weight: 300;
}

.c-sticky-copy__title{
  font-weight: 700;
}

/* ============================= */
/* MENSAJES (DESKTOP) */
/* ============================= */

.c-sticky-copy__messages{
  margin-top: 12px;
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
}

/* CARDS */

.c-sticky-copy__messages p{
  margin: 0;
  padding: 20px 32px;

  border-radius: 24px;
  background: linear-gradient(90deg, #0A052D 29%, #463479 95%);

  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  color: #ffffff;

  position: absolute;
  inset: 0;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;

  opacity: 0;
  transform: translateY(20px) scale(.98);
  filter: blur(6px);

  transition:
    opacity .35s ease,
    transform .35s ease,
    filter .35s ease;
}

/* ACTIVO */

.c-sticky-copy__messages p.is-active{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* TEXTO */

.c-sticky-copy__messages .is-highlight{
  color: #C98028;
  font-weight: 700;
  white-space: nowrap;
}

.c-sticky-copy__messages .is-text{
  font-weight: 300;
}

/* ============================= */
/* TABLET */
/* ============================= */

@media (max-width: 991px){

  .c-sticky-copy{
    overflow: hidden;
    padding: 64px 0;
  }

  .c-sticky-copy__container{
    width: calc(100% - 40px);
  }

  /* quitar sticky */
  .c-sticky-copy__sticky{
    position: relative;
    top: auto;
  }

  .c-sticky-copy__intro,
  .c-sticky-copy__title{
    font-size: 1.8rem;
  }

  /* SLIDER */

  .c-sticky-copy__messages{
    position: relative;

    display: flex;
    gap: 16px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    padding-bottom: 12px;
  }

  .c-sticky-copy__messages::-webkit-scrollbar{
    display: none;
  }

  .c-sticky-copy__messages{
    scrollbar-width: none;
  }

  .c-sticky-copy__messages p{

    flex: 0 0 70%;
    scroll-snap-align: center;

    position: relative;
    inset: auto;

    opacity: 1 !important;
    transform: scale(.94);
    filter: none !important;

    padding: 16px 16px;
    border-radius: 16px;

    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.3;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;

    transition: transform .3s ease;
  }

  .c-sticky-copy__messages p.is-active{
    transform: scale(1);
  }

}

/* ============================= */
/* MOBILE (SLIDER REAL) */
/* ============================= */

@media (max-width: 640px){

  .c-sticky-copy{
    overflow: hidden;
    padding: 48px 0;
  }

  .c-sticky-copy__container{
    width: calc(100% - 32px);
  }

  /* quitar sticky */
  .c-sticky-copy__sticky{
    position: relative;
    top: auto;
  }

  .c-sticky-copy__intro,
  .c-sticky-copy__title{
    font-size: 1.8rem;
  }

  /* ============================= */
  /* SLIDER REAL */
  /* ============================= */

  .c-sticky-copy__messages{
    position: relative;

    display: flex;
    gap: 16px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    padding-bottom: 12px;
  }

  /* ocultar scrollbar */
  .c-sticky-copy__messages::-webkit-scrollbar{
    display: none;
  }

  .c-sticky-copy__messages{
    scrollbar-width: none;
  }

  /* ============================= */
  /* CARDS */
  /* ============================= */

  .c-sticky-copy__messages p{

    /* 👇 clave UX: deja ver el siguiente */
    flex: 0 0 78%;

    scroll-snap-align: center;

    position: relative;
    inset: auto;

    opacity: 1 !important;
    transform: scale(.94);
    filter: none !important;

    padding: 16px 16px;
    border-radius: 16px;

    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.3;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;

    transition: transform .3s ease;
  }

  /* card centrada (sensación activa) */
  .c-sticky-copy__messages p.is-active{
    transform: scale(1);
  }

}