:root {
  --blue: #0071ba;
  --blue-dark: #084b83;
  --blue-ink: #063a66;
  --blue-soft: #dff3ff;
  --green: #95c90f;
  --green-dark: #6fa20c;
  --orange: #f7941d;
  --ink: #14314a;
  --muted: #5f7180;
  --line: #d9e8f0;
  --paper: #ffffff;
  --wash: #f3f9fc;
  --shadow: 0 18px 50px rgba(8, 75, 131, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 42%, #ffffff 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 232, 239, 0.95);
  box-shadow: 0 8px 28px rgba(8, 75, 131, 0.07);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong {
  color: var(--blue);
  font-size: 1.42rem;
  letter-spacing: 0;
}

.brand-text span {
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: #27435b;
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  padding: 10px 0;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--green);
  outline: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  background: var(--blue-dark);
}

.hero::after {
  position: absolute;
  inset: auto -12% -42px -12%;
  height: 120px;
  z-index: 4;
  content: "";
  background:
    linear-gradient(90deg, transparent 0%, rgba(149, 201, 15, 0.72) 30%, rgba(0, 113, 186, 0.82) 68%, transparent 100%);
  clip-path: polygon(0 38%, 16% 52%, 33% 33%, 50% 58%, 67% 40%, 84% 57%, 100% 35%, 100% 100%, 0 100%);
  opacity: 0.96;
  animation: waveShift 9s ease-in-out infinite alternate;
}

.hero-slider {
  position: relative;
  max-width: 100vw;
  min-height: clamp(500px, 62vh, 640px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 700ms ease,
    transform 1200ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 58, 102, 0.97) 0%, rgba(8, 75, 131, 0.84) 42%, rgba(8, 75, 131, 0.18) 78%),
    radial-gradient(circle at 20% 22%, rgba(149, 201, 15, 0.68), transparent 34%);
}

.hero-slide::after {
  position: absolute;
  right: clamp(22px, 6vw, 90px);
  bottom: clamp(34px, 6vw, 74px);
  z-index: 2;
  width: clamp(160px, 22vw, 300px);
  height: clamp(160px, 22vw, 300px);
  content: "";
  border: 34px solid rgba(149, 201, 15, 0.16);
  border-radius: 50%;
  animation: floatBadge 5.5s ease-in-out infinite;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.03);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 36px));
  max-width: calc(100vw - 36px);
  margin-left: clamp(18px, 7vw, 96px);
  padding: 56px 0 92px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.section h2,
.cta h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero h1,
.hero h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.85rem, 6.1vw, 5.15rem);
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: min(610px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
  font-weight: 650;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-dots {
  position: absolute;
  left: clamp(18px, 7vw, 96px);
  bottom: 34px;
  z-index: 8;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.hero-dots button.is-active {
  width: 56px;
  background: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 950;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(50, 99, 0, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #84b80d;
  box-shadow: 0 18px 34px rgba(50, 99, 0, 0.28);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.button.light {
  color: var(--blue-dark);
  background: #fff;
}

.intro {
  position: relative;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -46px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.intro-item {
  position: relative;
  min-height: 124px;
  padding: 24px 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.intro-item::after {
  position: absolute;
  right: -34px;
  bottom: -50px;
  width: 116px;
  height: 116px;
  content: "";
  border: 20px solid rgba(0, 113, 186, 0.08);
  border-radius: 50%;
}

.metric {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.intro p {
  max-width: 310px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 760;
}

.section {
  padding: clamp(58px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.benefits {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
}

.benefits::before {
  position: absolute;
  inset: 6% -10% auto auto;
  width: 560px;
  height: 560px;
  content: "";
  background:
    repeating-linear-gradient(135deg, rgba(149, 201, 15, 0.1) 0 10px, transparent 10px 22px);
  border-radius: 50%;
  opacity: 0.55;
  animation: slowSpin 24s linear infinite;
}

.benefits-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 34px;
}

.photo-mosaic {
  position: relative;
  min-height: 390px;
}

.photo-mosaic img {
  position: absolute;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mosaic-main {
  left: 0;
  top: 28px;
  width: 72%;
  height: 320px;
}

.mosaic-small {
  right: 0;
  width: 42%;
  height: 170px;
}

.mosaic-small.top {
  top: 0;
}

.mosaic-small.bottom {
  bottom: 0;
}

.section-copy {
  position: relative;
}

.section-copy h2,
.section-heading h2,
.cta h2 {
  color: var(--blue-dark);
  font-size: clamp(2.05rem, 4.6vw, 4.15rem);
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.benefit-grid,
.deal-list {
  position: relative;
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: 18px;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card,
.deal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(8, 75, 131, 0.09);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.benefit-card:hover,
.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(8, 75, 131, 0.15);
}

.benefit-card {
  min-height: 330px;
  padding: 0 26px 26px;
}

.image-card img {
  width: calc(100% + 52px);
  height: 150px;
  margin: 0 -26px 24px;
  object-fit: cover;
}

.card-mark {
  display: block;
  width: 54px;
  height: 8px;
  margin-bottom: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.benefit-card h3,
.deal-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.34rem;
  line-height: 1.15;
}

.benefit-card p,
.deal-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.deals {
  background:
    linear-gradient(90deg, rgba(0, 113, 186, 0.09), transparent 50%),
    #fff;
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 30px;
}

.section-heading.compact {
  display: block;
}

.deal-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deal-card {
  display: grid;
  align-content: end;
  min-height: 320px;
  padding: 28px;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.deal-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--blue-dark);
}

.deal-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(6, 58, 102, 0.12) 0%, rgba(6, 58, 102, 0.88) 100%),
    linear-gradient(90deg, rgba(149, 201, 15, 0.42), transparent 58%);
}

.deal-health {
  background-image: url("../img/banner-salud.jpg");
}

.deal-education {
  background-image: url("../img/banner-educacion.jpg");
}

.deal-home {
  background-image: url("../img/personas-sonriendo.jpg");
}

.deal-family {
  background-image: url("../img/banner-descuentos.jpg");
}

.deal-label {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(149, 201, 15, 0.92);
  border-radius: 999px;
}

.deal-card h3,
.deal-card p {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.deal-card p {
  color: rgba(255, 255, 255, 0.9);
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(18px, 5vw, 72px);
  padding: clamp(36px, 7vw, 72px);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 75, 131, 0.98), rgba(0, 113, 186, 0.92)),
    linear-gradient(90deg, var(--green), var(--blue));
}

.cta::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  content: "";
  border: 54px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2,
.cta .eyebrow {
  color: #fff;
}

.cta p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #5d7486;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.photo-credit {
  opacity: 0.78;
}

@keyframes waveShift {
  from {
    transform: translateX(-2%);
  }

  to {
    transform: translateX(2%);
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1020px) {
  .benefits-layout,
  .deal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-slider {
    min-height: 650px;
  }

  .hero-slide::before {
    background:
      linear-gradient(180deg, rgba(6, 58, 102, 0.96) 0%, rgba(8, 75, 131, 0.84) 58%, rgba(8, 75, 131, 0.36) 100%),
      radial-gradient(circle at 24% 18%, rgba(149, 201, 15, 0.68), transparent 36%);
  }

  .hero-content {
    width: min(640px, calc(100% - 36px));
    margin: 0 auto;
    padding: 48px 0 122px;
  }

  .hero-dots {
    left: 18px;
  }

  .intro,
  .benefit-grid,
  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .intro {
    margin-top: -38px;
  }

  .intro-item {
    min-height: auto;
  }

  .photo-mosaic {
    min-height: 330px;
  }

  .mosaic-main {
    height: 260px;
  }

  .mosaic-small {
    height: 142px;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 1.22rem;
  }

  .brand-text span {
    font-size: 0.74rem;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 2px;
  }

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

  .hero h1,
  .hero h2 {
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero-content {
    width: min(330px, calc(100vw - 48px));
    margin-left: 24px;
  }

  .hero-actions {
    width: min(330px, 100%);
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 56px;
  }

  .photo-mosaic {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .photo-mosaic img,
  .mosaic-main,
  .mosaic-small {
    position: static;
    width: 100%;
    height: 190px;
  }

  .benefit-card {
    min-height: auto;
  }

  .deal-list {
    grid-template-columns: 1fr;
  }

  .deal-card {
    min-height: 280px;
  }

  .cta {
    margin-inline: 0;
    border-radius: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
