/* =========================================================
   Avon Iconic Collection — Landing
   Mobile-first. Breakpoint desktop: 769px
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

main {
  max-width: 100% !important;
  padding-top: 122px;
  margin: 0 auto;
}

@media (max-width: 920px) {
  main {
    padding-top: 95px;
  }
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, p { margin: 0; }

/* ---------- Tokens ---------- */
:root {
  --hero:        #EDB4C8; 
  --carousel:    #EFC09B;
  --arrow:       #C4AB73;
  --card-pink:   #F5CFD8;
  --form-bg:     #C9B4D4;
  --form-card:   #FFFFFF;
  --gray-bg:     #ECECEC;
  --text:        #1F1F1F;
  --black:       #0A0A0A;
  --muted:       #5A5A5A;
  --content:     1100px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  border: 0;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn--dark {
  background: var(--black);
  color: #fff;
}
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 640px;
  background: #e9e5e2 url('/images/iconic/hero.webp');
  background-position: 39% center;
  background-size: auto;
  background-repeat: no-repeat;
  padding: 24px 0 58px;
}
.hero__content {
  position: absolute;
  width: 600px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 0 24px;
  text-align: center;
  color: var(--text);
}
.hero__content:first-of-type {
  top: 24px;
  left: calc(39% - 115px);
  transform: translateX(-50%);
  opacity: 0;
}
.hero__content:last-of-type {
  bottom: 58px;
  left: calc(37% - 128px);
  transform: translateX(-50%);
}
.badge {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero__title {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero__title em { font-style: italic; font-weight: 600; }
.hero__sub {
  font-size: 10px;
  font-weight: 500;
  
  opacity: .9;
  margin-bottom: 22px;
}
.hero__h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  opacity: 0;
}
.hero__desc {
  font-size: 14px;
  max-width: 460px;
  margin: 0 0 22px;
  opacity: 0;
}

/* ---------- HERO STRIP ---------- */
.hero-strip {
  background: var(--hero);
  width: 100%;
  height: 40px;
}

/* ---------- INTRO ---------- */
.intro {
  background: #fff;
  padding: 56px 24px;
  text-align: center;
}
.intro__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}
.intro__text {
  font-size: 15px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- CARRUSEL ---------- */
.carousel {
  background: var(--carousel);
  padding: 56px 0 64px;
  position: relative;
}
.carousel__head {
  max-width: var(--content);
  margin: 0 auto 28px;
  padding: 0 24px;
}
.carousel__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
}

/* Swiper container */
.carousel-swiper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 8px;
  position: relative;
}
.swiper-wrapper { align-items: stretch; }

.card {
  /* background: var(--card-pink); */
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}
.card__img {
  width: 100%;
  height: auto;
  max-height: 590px;
  object-fit: contain;
  display: block;
}

/* Swiper arrows overrides */
.carousel-arrow {
  width: 50px;
  height: 50px;
  background: transparent;
  color: var(--arrow);
  top: 50%;
  transform: translateY(-50%);
}
.carousel-arrow::after {
  font-size: 50px;
  font-weight: 700;
  color: var(--arrow);
}
.swiper-button-prev.carousel-arrow { left: 4px; }
.swiper-button-next.carousel-arrow { right: 4px; }
.swiper-button-disabled { opacity: 0.35; }

/* ---------- VIDEOS ---------- */
.videos {
  background: #fff;
  padding: 56px 24px;
}
.videos__grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f1f1;
}
.video-card a {
  display: block;
  width: 100%;
  height: 100%;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.video-card a:hover img { transform: scale(1.04); }

/* ---------- JOYAS / VIDEO ---------- */
.jewels {
  background: #fff;
  padding: 0 0 72px;
}
.jewels__inner {
  padding: 0 0;
}
.jewels__frame {
  display: block;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.jewels__video {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 32.71%;
  border-radius: 180px 6px 180px 6px;
  overflow: hidden;
  background: #f1f1f1;
}
.jewels__video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.avon-dynamic-form__title {
    display: none;
}

/* Tablet: reduce la curva de la hoja */
@media (max-width: 768px) {
  .jewels__video { border-radius: 80px 4px 80px 4px; }
}

/* Mobile (≤500px): formato vertical 4:5, sin curvas */
@media (max-width: 500px) {
  .jewels__video {
    padding-top: 125%;
    border-radius: 0;
  }
}

/* ---------- SIGNUP ---------- */
.signup {
  background: var(--form-bg);
  padding: 56px 24px 72px;
  text-align: center;
}
.signup__title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}
.signup__card {
  background: var(--form-card);
  max-width: 640px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: left;
}
.signup__card-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}
.signup__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  color: var(--text);
}
.field input {
  width: 100%;
  border: 1px solid var(--black);
  border-radius: 0;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.field input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}
.signup__success {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  color: var(--text);
}

/* =========================================================
   DESKTOP (≥769px) — secciones distintas al hero
   ========================================================= */
@media (min-width: 769px) {
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 12px; margin-bottom: 32px; }
  .hero__h2 { font-size: 24px; }
  .hero__desc { font-size: 15px; margin-bottom: 28px; }

  .intro { padding: 88px 24px; }
  .intro__title { font-size: 24px; }

  .carousel { padding: 80px 0 96px; }
  .carousel__title { font-size: 24px; }
  .carousel-swiper { padding: 0 56px 8px; }
  .card__img { max-height: 590px; }

  .carousel-arrow { width: 50px; height: 50px; }
  .carousel-arrow::after { font-size: 50px; }
  .swiper-button-prev.carousel-arrow { left: 8px; }
  .swiper-button-next.carousel-arrow { right: 8px; }

  .videos { padding: 72px 24px; }
  .videos__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .jewels { padding: 0 0 88px; }
  .jewels__inner { padding: 0 32px; }

  .signup { padding: 72px 24px 88px; }
  .signup__title { font-size: 36px; }
  .signup__card { padding: 40px 44px; }

  .signup__form {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }
  .field--full { grid-column: 1 / -1; }
  .field--half { grid-column: span 1; }
  .signup__form .btn { grid-column: 1 / -1; margin-top: 6px; }
}

/* =========================================================
   HERO — ajuste a 768px
   ========================================================= */
@media (max-width: 768px) {
  .hero { background-position: 30% center; }
  .hero__h2,
  .hero__desc { display: none; }
  .hero__content:first-of-type { left: calc(45% - 115px); }
  .hero__content:last-of-type { left: calc(47% - 128px); }
}

/* =========================================================
   HERO — ajuste a 680px
   ========================================================= */
@media (max-width: 680px) {
  .hero { background-image: url('/images/iconic/hero_.webp'); }
  .hero__content:last-of-type { left: 50%; }
}

/* =========================================================
   HERO — ajuste a 480px (mobile pequeño)
   ========================================================= */
@media (max-width: 480px) {
  .hero {
    background-image: url('/images/iconic/hero_.webp');
    background-size: cover;
    background-position: center;
    min-height: 525px;
  }
  .hero__content:first-of-type {
    top: 20px;
    left: calc(59% - 115px);
  }
  .hero__content:last-of-type {
    bottom: 20px;
    left: 50%;
  }
  .badge { margin-bottom: 6px; }
  .hero__title { font-size: 28px; line-height: 0.7; }
}

/* =========================================================
   HERO — ajuste a 360px (mobile muy pequeño)
   ========================================================= */
@media (max-width: 360px) {
  .hero {
    background-image: url('/images/iconic/hero_.webp');
    background-size: cover;
    background-position: center;
    min-height: 466px;
  }
  .hero__content:first-of-type {
    top: 40px;
    left: calc(83% - 115px);
  }
  .hero__content:last-of-type {
    bottom: 27px;
    left: 50%;
  }
}
