.hero h1 {
  font-size: clamp(3.8rem, 7vw, 6.4rem);
  max-width: 720px;
  color: #fffdf7;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.hero-promise {
  margin: 0.6rem 0 1.35rem;
  color: #fff !important;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 750;
  line-height: 1.1;
}

.hero-library {
  min-height: 680px;
  isolation: isolate;
}

.hero {
  background:
    linear-gradient(90deg, rgba(4, 14, 25, 0.98) 0%, rgba(4, 14, 25, 0.9) 34%, rgba(4, 14, 25, 0.35) 68%, rgba(4, 14, 25, 0.16) 100%),
    url("/assets/hero-estudio-bursatil-v1.png") center / cover no-repeat;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(7, 19, 33, 0.35), transparent 58%),
    linear-gradient(180deg, rgba(7, 19, 33, 0.08), rgba(4, 14, 25, 0.75));
}

.hero-library::before {
  display: none;
}

.hero-library .book-main {
  width: 440px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  filter: saturate(1.08) contrast(1.03);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(224, 193, 126, 0.36);
}

.hero-library .book-free,
.hero-library .book-port {
  width: 275px;
  top: 22%;
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
}

.hero-library .book-free {
  left: -2%;
}

.hero-library .book-port {
  right: -2%;
}

.hero .btn-gold,
.final-cta .btn-gold {
  background: linear-gradient(135deg, #d8bd7a, #ae8641);
  box-shadow: 0 12px 28px rgba(184, 150, 84, 0.24);
}

.hero .btn-light {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.cover-wrap {
  height: 480px;
  background: linear-gradient(145deg, #f7f2e8, #e7dfcf);
}

.cover-wrap img {
  height: 430px;
  transform: perspective(900px) rotateY(-4deg);
  box-shadow: 18px 22px 45px rgba(7, 19, 33, 0.23), -2px 0 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover .cover-wrap img {
  transform: perspective(900px) rotateY(0deg) translateY(-5px);
  box-shadow: 0 28px 55px rgba(7, 19, 33, 0.28);
}

.featured .cover-wrap {
  height: 525px;
  background:
    radial-gradient(circle at 50% 30%, rgba(54, 143, 126, 0.3), transparent 48%),
    linear-gradient(145deg, #0d2b38, #071321);
}

.featured .cover-wrap img {
  height: 475px;
}

.product {
  border-color: #d6cdbd;
  box-shadow: 0 18px 45px rgba(16, 35, 49, 0.08);
}

.product.featured {
  box-shadow: 0 28px 65px rgba(7, 19, 33, 0.25);
}

.product:not(.featured) .badge {
  background: #185d5d;
  color: #fff;
}

.intro,
.products,
.resources,
.about {
  position: relative;
}

body {
  background: #fbf9f4;
}

.preview {
  display: block;
  max-width: 1280px;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.preview > div:first-child {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.preview-grid img {
  width: 100%;
  min-height: 560px;
  max-height: 700px;
  object-fit: cover;
  object-position: top;
  border: 10px solid #fff;
  box-shadow: 0 28px 65px rgba(7, 19, 33, 0.22);
}

.preview-grid img:nth-child(2) {
  transform: translateY(-20px);
}

.preview-grid.two {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cookie-settings {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: #c1cbd2;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.cookie-settings:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(4, 14, 25, 0.94) 0%, rgba(4, 14, 25, 0.86) 43%, rgba(4, 14, 25, 0.38) 100%),
      url("/assets/hero-estudio-bursatil-v1.png") 64% center / cover no-repeat;
  }

  .hero-library {
    min-height: 620px;
  }

  .hero-library .book-main {
    width: 380px;
    left: 50%;
  }

  .hero-library .book-free,
  .hero-library .book-port {
    width: 235px;
  }

  .preview-grid {
    gap: 1rem;
  }

  .preview-grid img {
    min-height: 430px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 3.3rem;
  }

  .hero-library {
    min-height: 570px;
  }

  .hero-library .book-main {
    width: 280px;
    left: 50%;
  }

  .hero-library .book-free,
  .hero-library .book-port {
    width: 165px;
    top: 26%;
  }

  .hero-library .book-free {
    left: 0;
  }

  .hero-library .book-port {
    right: 0;
  }

  .cover-wrap {
    height: 460px;
  }

  .cover-wrap img {
    height: 410px;
  }

  .featured .cover-wrap {
    height: 500px;
  }

  .featured .cover-wrap img {
    height: 450px;
  }

  .preview {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .preview > div:first-child {
    margin-bottom: 2rem;
    text-align: left;
  }

  .preview-grid,
  .preview-grid.two {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .preview-grid img,
  .preview-grid.two img {
    min-height: 0;
    max-height: none;
    object-fit: contain;
    border-width: 7px;
  }

  .preview-grid img:nth-child(2) {
    transform: none;
  }
}
