:root {
  --ink: #17324d;
  --ink-soft: #49657a;
  --sky: #26a8e0;
  --sky-dark: #0879b5;
  --sky-pale: #e9f8ff;
  --gold: #ffc928;
  --gold-dark: #d98b00;
  --green: #3aa96b;
  --violet: #6f4bb5;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #d8e5ec;
  --shadow: 0 18px 48px rgba(23, 50, 77, 0.14);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 229, 236, 0.9);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--content), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  line-height: 1.12;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  clip-path: circle(44% at 50% 50%);
  transform: scale(1.1);
}

.brand span {
  max-width: 180px;
}

.brand strong {
  display: block;
  color: var(--sky-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible {
  color: var(--sky-dark);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid #e0a700;
  border-radius: 6px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  margin: 3px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  height: clamp(520px, calc(100svh - 118px), 780px);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  background-image: url("/assets/hero.webp");
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.01);
}

.hero-scrim {
  z-index: -1;
  background: rgba(18, 61, 86, 0.24);
}

.hero-content {
  width: min(var(--content), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 0 62px;
}

.eyebrow,
.section-kicker,
.plan-label {
  margin: 0 0 12px;
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero .eyebrow {
  padding: 7px 11px;
  color: #483400;
  background: rgba(255, 201, 40, 0.92);
  border: 1px solid rgba(115, 79, 0, 0.25);
  border-radius: 5px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--white);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(48px, 7vw, 86px);
  text-shadow: 0 4px 18px rgba(0, 38, 68, 0.48);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.2vw, 52px);
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.hero-copy {
  max-width: 610px;
  margin: 0 0 26px;
  color: var(--white);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 38, 68, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.18);
}

.button-primary {
  color: #3b2b00;
  background: var(--gold);
  border-color: #dfaa00;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd85b;
}

.button-quiet {
  color: var(--white);
  background: rgba(22, 50, 77, 0.72);
  border-color: rgba(255, 255, 255, 0.65);
}

.button-outline {
  color: var(--sky-dark);
  background: var(--white);
  border-color: var(--sky-dark);
}

.hero-note {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 7px rgba(0, 38, 68, 0.72);
}

.promise-strip {
  color: var(--white);
  background: var(--ink);
}

.promise-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.promise-inner p {
  margin: 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  align-items: center;
  color: #d5e5ef;
  font-size: 14px;
  line-height: 1.4;
}

.promise-inner span {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.promise-inner strong {
  display: block;
  color: var(--white);
  font-size: 17px;
}

.section,
.plans-section,
.closing-section {
  padding: 104px 20px;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading > p:last-child {
  margin: 0 auto;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 19px;
}

.steps {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  min-height: 260px;
  padding: 36px 32px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 34px;
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 900;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-band {
  padding: 88px 20px;
}

.feature-band-blue {
  background: var(--sky-pale);
}

.feature-band-light {
  background: var(--white);
}

.feature-grid {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.feature-grid-reverse .feature-copy {
  order: 2;
}

.feature-grid-reverse .feature-media {
  order: 1;
}

.feature-copy p:not(.section-kicker) {
  color: var(--ink-soft);
  font-size: 18px;
}

.feature-media,
.family-image {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dcebf2;
  border: 1px solid rgba(23, 50, 77, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-media img,
.family-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-science {
  object-position: center 43%;
}

.image-adventure {
  object-position: center 38%;
}

.image-companion {
  object-position: center 42%;
}

.check-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 30px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--sky-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.family-section {
  background: #f3fbf6;
}

.family-layout {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.family-copy > p:not(.section-kicker) {
  color: var(--ink-soft);
  font-size: 18px;
}

.family-points {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #cfe4d7;
}

.family-points p {
  margin: 0;
  color: var(--ink-soft);
}

.family-points strong {
  color: var(--ink);
}

.plans-section {
  background: #f8fbfd;
}

.plans-grid {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-featured {
  border: 2px solid var(--sky);
  box-shadow: var(--shadow);
}

.plan-featured::before {
  content: "Más equilibrado";
  position: absolute;
  top: 0;
  right: 24px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--sky-dark);
  border-radius: 0 0 6px 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card h3 {
  font-size: 28px;
}

.plan-volume {
  min-height: 74px;
  margin: 16px 0 24px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.plan-volume strong {
  display: block;
  color: var(--ink);
  font-size: 40px;
}

.plan-card ul {
  flex: 1;
  margin: 0 0 28px;
  padding: 22px 0 0 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.plan-card li {
  margin: 8px 0;
}

.plans-note {
  width: min(var(--content), 100%);
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.trust-section {
  padding: 70px 20px;
  color: var(--white);
  background: var(--ink);
}

.trust-inner {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.trust-section h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.trust-section .section-kicker {
  color: var(--gold);
}

.trust-links {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.trust-links a {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.trust-links a:hover,
.trust-links a:focus-visible {
  color: var(--gold);
}

.closing-section {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: url("/assets/meadow.webp");
  background-position: center 70%;
  background-size: cover;
}

.closing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}

.closing-content {
  position: relative;
  width: min(720px, 100%);
  text-align: center;
}

.closing-content p:not(.section-kicker) {
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 19px;
}

.site-footer {
  padding: 54px max(20px, calc((100% - var(--content)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 70px;
  color: #d7e7ef;
  background: #10283c;
  font-size: 14px;
}

.brand-footer {
  color: var(--white);
}

.brand-footer strong {
  color: var(--gold);
}

.footer-main p {
  margin: 18px 0 6px;
}

.footer-main > a:not(.brand) {
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
  align-content: start;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #9fbdcb;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Interior pages */
.interior-main {
  min-height: 70vh;
}

.interior-hero {
  padding: 74px 20px 62px;
  background: var(--sky-pale);
  border-bottom: 1px solid var(--line);
}

.interior-hero-inner,
.article-shell,
.support-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.interior-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 68px);
  text-shadow: none;
}

.interior-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.draft-notice {
  padding: 15px 20px;
  color: #584000;
  background: #fff4c4;
  border-bottom: 1px solid #ecd47c;
  font-size: 14px;
  text-align: center;
}

.article-shell {
  padding: 70px 20px 100px;
}

.article-shell h2 {
  margin: 54px 0 14px;
  font-size: 30px;
}

.article-shell h2:first-child {
  margin-top: 0;
}

.article-shell h3 {
  margin: 32px 0 10px;
  font-size: 22px;
}

.article-shell p,
.article-shell li {
  color: #36566d;
}

.article-shell ul,
.article-shell ol {
  padding-left: 23px;
}

.article-shell li {
  margin: 8px 0;
}

.article-meta {
  margin: 0 0 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.article-callout {
  margin: 34px 0;
  padding: 22px 24px;
  background: #f3fbf6;
  border-left: 4px solid var(--green);
  border-radius: 0 6px 6px 0;
}

.article-callout p {
  margin: 0;
}

.support-shell {
  padding: 70px 20px 100px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 38px 0 70px;
}

.support-item {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-item h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.support-item p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--ink-soft);
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  text-align: center;
  background: var(--sky-pale);
}

.not-found-inner {
  max-width: 640px;
}

.not-found h1 {
  color: var(--ink);
  text-shadow: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    bottom: auto;
    width: min(360px, 88vw);
    height: calc(100svh - 72px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: -20px 20px 48px rgba(23, 50, 77, 0.18);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 220ms ease, visibility 0s linear 220ms;
  }

  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-links a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-cta {
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid #e0a700;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .promise-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .feature-grid,
  .family-layout,
  .trust-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid-reverse .feature-copy,
  .feature-grid-reverse .feature-media {
    order: initial;
  }

  .feature-copy {
    max-width: 720px;
  }

  .family-image {
    order: 2;
  }

  .family-copy {
    order: 1;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .plan-volume {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .nav-shell {
    min-height: 64px;
  }

  .nav-shell {
    width: min(100% - 24px, var(--content));
  }

  .brand {
    font-size: 14px;
  }

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

  .brand span {
    max-width: 150px;
  }

  .nav-links {
    top: 64px;
    height: calc(100svh - 64px);
  }

  .hero {
    height: clamp(460px, calc(100svh - 104px), 650px);
  }

  .hero-image {
    background-position: 61% 48%;
  }

  .hero-scrim {
    background: rgba(18, 61, 86, 0.36);
  }

  .hero-content {
    width: calc(100% - 28px);
    justify-content: flex-start;
    padding: 54px 0 36px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  h2 {
    font-size: clamp(29px, 9vw, 40px);
  }

  .hero-copy {
    max-width: 90%;
    font-size: 18px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section,
  .plans-section,
  .closing-section {
    padding: 72px 16px;
  }

  .section-heading {
    margin-bottom: 38px;
    text-align: left;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
    padding: 30px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step-number {
    margin-bottom: 18px;
  }

  .feature-band {
    padding: 66px 16px;
  }

  .feature-grid,
  .family-layout,
  .trust-inner {
    gap: 34px;
  }

  .feature-media,
  .family-image {
    aspect-ratio: 4 / 3;
  }

  .plan-card {
    padding: 30px 24px 26px;
  }

  .trust-section {
    padding: 58px 16px;
  }

  .closing-section {
    min-height: 460px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 48px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    grid-column: auto;
  }

  .interior-hero {
    padding: 54px 16px 46px;
  }

  .article-shell,
  .support-shell {
    padding: 54px 16px 72px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
