.kids-page {
  background: var(--cream);
}

.kids-page main {
  padding-top: 92px;
}

.kids-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin-inline: 0;
  padding: clamp(58px, 7vw, 92px) 0;
  overflow: hidden;
  isolation: isolate;
}

.kids-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 9vw));
  margin-inline: auto;
}

.kids-hero-copy h1,
.kids-section-heading h2,
.kids-feature-copy h2,
.kids-register h2,
.kids-final-cta h2 {
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kids-hero-copy h1 {
  max-width: 560px;
  margin: 12px 0 18px;
  font-size: clamp(50px, 5.4vw, 78px);
  line-height: 0.9;
}

.kids-hero-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.35;
}

.kids-actions,
.kids-register-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.kids-actions .button {
  min-height: 44px;
  padding-inline: 18px;
}

.kids-hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.kids-hero-image img,
.kids-feature-image img,
.kids-final-cta::before {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kids-hero-image img {
  object-position: center;
  filter: brightness(1.02) saturate(1.03);
}

.kids-hero-image::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 245, 237, 0.99) 0%, rgba(248, 245, 237, 0.96) 20%, rgba(248, 245, 237, 0.68) 38%, rgba(248, 245, 237, 0.22) 56%, rgba(248, 245, 237, 0) 74%);
  content: "";
  pointer-events: none;
}

.kids-expect,
.kids-first,
.kids-safety {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.kids-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
}

.kids-section-heading .eyebrow {
  margin-bottom: 10px;
}

.kids-section-heading h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 0.92;
}

.kids-section-heading > p {
  max-width: 300px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.kids-expect-grid,
.kids-safety-grid,
.kids-steps-grid {
  display: grid;
  gap: 12px;
}

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

.kids-safety-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kids-info-card,
.kids-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 8px;
}

.kids-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--white);
}

.kids-icon-soft {
  background: var(--paper);
  color: var(--ink);
}

.kids-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.kids-info-card h3,
.kids-step h3 {
  margin: 3px 0 6px;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
}

.kids-info-card p,
.kids-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.kids-learning {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: 10px 0 52px;
}

.kids-feature-image {
  height: clamp(260px, 28vw, 390px);
  overflow: hidden;
  border-radius: 10px;
}

.kids-feature-image img {
  object-position: center 45%;
}

.kids-feature-copy h2 {
  max-width: 460px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 0.9;
}

.kids-feature-copy > p:last-child {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.kids-first {
  padding-top: 38px;
}

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

.kids-step {
  display: block;
  min-height: 150px;
}

.kids-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.kids-safety {
  padding-bottom: 40px;
}

.kids-safety .kids-section-heading h2 {
  max-width: 720px;
}

.kids-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px clamp(24px, 4vw, 52px);
  background: var(--paper);
  border-radius: 10px;
}

.kids-register h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.95;
}

.kids-register p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.kids-register-actions {
  justify-content: flex-end;
  flex-shrink: 0;
}

.kids-register-actions .text-link {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kids-final-cta {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  margin-top: 42px;
  padding: 46px clamp(20px, 7vw, 96px);
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.kids-final-cta::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./fotosiglesia/favor-kids-hero-safe-margins.jpg");
  background-position: center 70%;
  content: "";
  opacity: 0.58;
}

.kids-final-cta::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(27, 27, 27, 0.94) 0%, rgba(27, 27, 27, 0.68) 42%, rgba(27, 27, 27, 0.3) 100%);
  content: "";
}

.kids-final-cta h2 {
  margin: 12px 0 10px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.9;
}

.kids-final-cta p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.kids-final-cta .final-actions {
  position: relative;
  z-index: 1;
}

.kids-final-cta .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .kids-hero {
    min-height: 0;
  }

  .kids-learning {
    grid-template-columns: 1fr;
  }

  .kids-hero-copy {
    max-width: 700px;
  }

  .kids-hero-image {
    height: 100%;
  }

  .kids-hero-image::after {
    background: linear-gradient(90deg, rgba(248, 245, 237, 0.99) 0%, rgba(248, 245, 237, 0.88) 28%, rgba(248, 245, 237, 0.2) 64%, rgba(248, 245, 237, 0) 84%);
  }

  .kids-expect-grid,
  .kids-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kids-feature-copy {
    max-width: 680px;
  }

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

  .kids-register-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .kids-page main {
    padding-top: 76px;
  }

  .kids-hero,
  .kids-expect,
  .kids-learning,
  .kids-first,
  .kids-safety,
  .kids-register {
    width: min(100% - 40px, 520px);
  }

  .kids-hero {
    display: grid;
    width: min(100% - 40px, 520px);
    min-height: 0;
    aspect-ratio: auto;
    margin-inline: auto;
    overflow: visible;
    padding-top: 32px;
  }

  .kids-hero-copy {
    width: auto;
    margin-inline: 0;
  }

  .kids-hero-copy h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .kids-hero-image {
    position: relative;
    inset: auto;
    height: 280px;
    margin-top: 12px;
    border-radius: 12px;
  }

  .kids-hero-image img {
    object-position: center 46%;
  }

  .kids-hero-image::after {
    background: linear-gradient(180deg, rgba(248, 245, 237, 0.12) 0%, rgba(248, 245, 237, 0) 32%);
  }

  .kids-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .kids-expect-grid,
  .kids-safety-grid,
  .kids-steps-grid {
    grid-template-columns: 1fr;
  }

  .kids-learning {
    gap: 30px;
    padding-top: 0;
  }

  .kids-feature-image {
    height: 250px;
  }

  .kids-register-actions,
  .kids-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .kids-register-actions .button,
  .kids-actions .button {
    width: 100%;
  }

  .kids-final-cta {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    margin-top: 32px;
    padding: 44px 20px;
  }

  .kids-final-cta .final-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
}
