:root {
  --navy: #0a2035;
  --blue: #274d6c;
  --blue-light: #7393ac;
  --gold: #c5a268;
  --ink: #183a56;
  --paper: #fff;
  --page: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.55;
}

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

.page-width { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }

.hero {
  min-height: 500px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  background: var(--navy) url("images/BANNER-PRINCIPAL.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 20, 36, .94) 0%, rgba(3, 20, 36, .76) 35%, rgba(3, 20, 36, .16) 78%);
}

.hero__content { padding-block: 62px; color: white; }

.hero__eyebrow {
  margin: 0 0 4px;
  font: 500 clamp(2.4rem, 5vw, 4.8rem)/1.05 "Cormorant Garamond", Georgia, serif;
}

.hero h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  color: #f2cf86;
  font: 600 clamp(3rem, 6vw, 5.7rem)/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .07em;
}

.hero h1 span { width: min(240px, 20vw); height: 4px; background: white; border-radius: 4px; }

.hero__brand {
  display: inline-block;
  margin: 26px 0 0;
  padding: 4px 20px 7px;
  background: rgba(2, 12, 24, .9);
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: .04em;
}

.intro { padding-block: 54px 58px; text-align: center; }

.intro h2 {
  margin: 0 0 10px;
  color: #b48d5f;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.intro p { max-width: 910px; margin: 0 auto; font-size: clamp(1.05rem, 1.8vw, 1.45rem); }

.section-heading { padding: 20px 24px; color: white; background: var(--blue); text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 400; text-transform: uppercase; }

.benefits__stage { position: relative; overflow: hidden; padding: 76px 0 42px; }

.benefits__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.9)), url("images/Fondo.png") left center / cover no-repeat;
}

.benefits__grid { display: grid; gap: 24px; }

.benefit {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, .6fr);
  align-items: center;
  max-width: 900px;
  margin-right: auto;
  cursor: pointer;
  opacity: .18;
  filter: saturate(.45);
  transform: scale(.975);
  transform-origin: left center;
  transition: opacity .75s ease, filter .75s ease, transform .75s ease;
  outline: none;
}

.benefit--reverse { margin-right: 0; margin-left: auto; transform-origin: right center; }
.benefit--reverse .benefit__copy { order: 2; }
.benefit--reverse img { order: 1; }

.benefit.is-active,
.benefit:focus-visible,
.benefit:hover { opacity: 1; filter: none; transform: scale(1); }

.benefit:focus-visible .benefit__copy { outline: 3px solid var(--gold); outline-offset: 4px; }

.benefit__copy {
  min-height: 112px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 36px;
  color: white;
  background: rgba(39, 77, 108, .93);
  box-shadow: 0 12px 30px rgba(10,32,53,.12);
}

.benefit__number { color: rgba(255,255,255,.42); font-size: 2rem; font-weight: 300; }
.benefit__copy p { margin: 0; font-size: clamp(1rem, 1.7vw, 1.35rem); }
.benefit__copy strong { font-weight: 700; }

.benefit img {
  width: 230px;
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  margin-inline: -10px;
}

.benefits__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.benefits__dots { display: flex; gap: 9px; }
.benefits__dots span { width: 8px; height: 8px; border-radius: 50%; background: #bdc9d2; transition: width .3s, background .3s; }
.benefits__dots span.is-active { width: 26px; border-radius: 10px; background: var(--blue); }
.control-button { width: 44px; height: 44px; border: 1px solid #b8c5cf; border-radius: 50%; color: var(--blue); background: white; font-size: 1.3rem; cursor: pointer; }
.control-button:hover, .control-button:focus-visible { color: white; background: var(--blue); outline: none; }

.closing { border-top: 22px solid var(--blue); }
.closing__image { min-height: 510px; background: #f6f7f7 url("images/Parte final.png") center top / cover no-repeat; }
.closing__copy { padding-block: 42px 58px; text-align: center; }
.closing__copy p { max-width: 1080px; margin: 0 auto; font-size: clamp(1rem, 1.7vw, 1.35rem); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero { min-height: 420px; background-position: 58% center; }
  .benefit, .benefit--reverse { max-width: 760px; }
  .benefit__copy { padding: 22px 26px; }
  .closing__image { min-height: 390px; }
}

@media (max-width: 640px) {
  .page-width { width: min(100% - 30px, var(--page)); }
  .hero { min-height: 390px; background-position: 62% center; }
  .hero::after { background: linear-gradient(90deg, rgba(3,20,36,.95), rgba(3,20,36,.55)); }
  .hero h1 { display: block; font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero h1 span { display: block; width: 120px; height: 3px; margin-top: 20px; }
  .intro { padding-block: 40px; }
  .section-heading { padding: 18px 16px; }
  .benefits__stage { padding-top: 42px; }
  .benefits__grid { gap: 18px; }
  .benefit, .benefit--reverse {
    grid-template-columns: 1fr 112px;
    min-height: 136px;
    margin: 0;
  }
  .benefit--reverse .benefit__copy { order: 1; }
  .benefit--reverse img { order: 2; }
  .benefit__copy { min-height: 100px; gap: 12px; padding: 18px 16px; }
  .benefit__number { font-size: 1.2rem; }
  .benefit__copy p { font-size: .88rem; line-height: 1.45; }
  .benefit img { width: 128px; margin-left: -8px; margin-right: -14px; }
  .closing { border-top-width: 14px; }
  .closing__image { min-height: 275px; background-size: cover; background-position: 54% top; }
  .closing__copy { padding-block: 32px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .benefit, .benefits__dots span { transition: none; }
}
