:root {
  --navy: #0d2c54;
  --navy-deep: #081e3d;
  --navy-mid: #123a68;
  --gold: #ffc94d;
  --gold-deep: #d99a10;
  --green: #1a9d5c;
  --canvas: #fff;
  --canvas-alt: #f4f7fb;
  --ink: #0f172a;
  --body: #1c2430;
  --muted: #5a6b7d;
  --faint: #8a97a6;
  --line: #e8e6df;
  --line-strong: #c8cdd6;
  --shell: 1280px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--body); font-family: "Poppins", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, blockquote, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 500; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.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; }
.header-marker { position: absolute; inset: 76px 0 auto; height: 1px; pointer-events: none; }

/* utility bar */
.utility-bar { background: var(--navy-deep); color: #c9d6e8; }
.utility-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 12px; white-space: nowrap; overflow: hidden; }
.utility-location { overflow: hidden; text-overflow: ellipsis; }
.utility-phone { flex-shrink: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); transition: box-shadow 240ms ease; }
.site-header.is-elevated { box-shadow: 0 8px 24px rgb(13 44 84 / .08); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; width: min(1280px, calc(100% - 48px)); min-height: 84px; margin-inline: auto; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon { display: block; width: 42px; height: 42px; object-fit: contain; }
.brand-word { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2vw, 26px); margin-left: 20px; }
.nav a { color: var(--navy); font-size: .875rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; transition: color 160ms ease; }
.nav a:hover { color: var(--gold-deep); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.header-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 24px; background: var(--green); color: #fff; font-size: .84rem; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 14px rgb(26 157 92 / .28); transition: transform 180ms ease; }
.header-cta:hover { transform: translateY(-2px); }
.header-cta:active { transform: scale(.97); }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--navy); }
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgb(10 37 70 / .96) 0%, rgb(18 58 104 / .86) 55%, rgb(10 37 70 / .7) 100%), url("./assets/landing/hero-huanta.png") center / cover; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: clamp(24px, 5vw, 56px); padding: clamp(56px, 8vw, 96px) 0; }
.hero-copy { max-width: 540px; }
.hero-copy { align-self: center; }
.hero-copy h1 { color: #fff; font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: 1.22; letter-spacing: -.01em; }
.hero-lead { max-width: 44ch; margin-top: 20px; color: #c9d6e8; font-weight: 500; font-size: 1rem; line-height: 1.6; letter-spacing: -.005em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.primary-action { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 26px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .94rem; white-space: nowrap; transition: transform 180ms ease, box-shadow 180ms ease; }
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(230 180 60 / .35); }
.secondary-action { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 26px; border: 1.5px solid rgb(255 255 255 / .5); color: #fff; font-weight: 700; font-size: .94rem; white-space: nowrap; transition: transform 180ms ease, background-color 180ms ease; }
.secondary-action:hover { transform: translateY(-2px); background-color: rgb(255 255 255 / .08); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / .14); }
.hero-stats > div { display: grid; gap: 8px; padding-inline: 24px; border-right: 1px solid rgb(255 255 255 / .16); }
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats dd { color: var(--gold); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; order: -1; }
.hero-stats dt { color: #dbe6f4; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero-stats > div { display: grid; }

.hero-visual { position: relative; align-self: end; width: 100%; height: clamp(420px, 46vw, 600px); margin-bottom: calc(-1 * clamp(56px, 8vw, 96px)); }
.hero-visual::before { content: ""; position: absolute; left: 8%; bottom: 0; width: 80%; height: 60%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .4), transparent 75%); filter: blur(10px); animation: heroGlow 6s ease-in-out infinite; }
.hero-visual > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 26px 40px rgb(0 0 0 / .4)); }

@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes heroGlow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes heroGradientPan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* sections */
.section { position: relative; padding: clamp(64px, 9vw, 96px) 0; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-heading-row h2 { color: var(--navy); font-size: clamp(1.7rem, 2.8vw, 2.2rem); letter-spacing: -.01em; }
.text-link { color: var(--navy); font-weight: 700; font-size: .875rem; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.section-heading.center { max-width: 640px; margin-inline: auto; margin-bottom: 48px; text-align: center; }
.section-heading > p { color: var(--gold-deep); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.areas .section-heading > p { color: var(--gold); }
.section-heading h2 { margin-top: 8px; color: var(--navy); font-size: clamp(1.7rem, 2.8vw, 2.2rem); letter-spacing: -.01em; }
.areas .section-heading h2 { color: #fff; }

/* carousels (programs + testimonials) */
.carousel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.carousel-track { display: flex; width: max-content; gap: 24px; padding: 0 24px; animation: carouselScroll 34s linear infinite; }
.carousel-track.reverse { animation-name: carouselScrollReverse; animation-duration: 30s; }
.carousel:hover .carousel-track { animation-play-state: paused; }

.program-card { display: grid; grid-template-rows: auto 1fr; width: 290px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 10px rgb(13 44 84 / .05); background: var(--canvas); }
.program-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.program-media > img { width: 100%; height: 100%; object-fit: cover; }
.program-media > img.hue-shift { filter: hue-rotate(15deg); }
.program-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(190deg, rgb(13 44 84 / 0) 55%, rgb(13 44 84 / .82)); }
.program-badge { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 5px; background: linear-gradient(135deg, #ffe08a, #f5b722); box-shadow: 0 3px 10px rgb(0 0 0 / .25); color: var(--navy); font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.program-body { display: grid; gap: 8px; padding: 20px; align-content: start; }
.program-body h3 { color: var(--ink); font-size: 1rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.program-body p { color: var(--muted); font-size: .81rem; }
.program-body a { margin-top: 8px; color: var(--navy); font-weight: 700; font-size: .81rem; }
.program-body a:hover { color: var(--gold-deep); }

.testimonial-card { display: grid; gap: 16px; width: 340px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.quote-mark { color: var(--gold); font-size: 30px; font-weight: 700; line-height: 1; }
.testimonial-card blockquote { color: #3d4d5f; font-size: .9rem; line-height: 1.6; }
.testimonial-card figcaption { display: grid; gap: 2px; }
.testimonial-card figcaption strong { color: var(--navy); font-size: .875rem; }
.testimonial-card figcaption span { color: var(--faint); font-size: .78rem; }

/* areas */
.areas { background: var(--navy); }
.areas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .12); }
.area-card { display: grid; gap: 12px; padding: 32px 24px; background: var(--navy-mid); text-align: center; justify-items: center; }
.area-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 700; font-size: .94rem; }
.area-card h3 { color: #fff; font-size: .94rem; font-weight: 600; }
.area-card p { color: #a9bbd1; font-size: .81rem; line-height: 1.5; }

/* certificates */
.certificates { background: var(--canvas-alt); }
.certificates-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.certificates-copy > p { color: var(--gold-deep); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.certificates-copy h2 { margin-top: 8px; color: var(--navy); font-size: clamp(1.7rem, 2.8vw, 2.2rem); letter-spacing: -.01em; }
.certificates-copy .lead { display: block; max-width: 44ch; margin-top: 14px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.check-list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-mark { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: .81rem; flex-shrink: 0; }
.check-list strong { display: block; color: var(--ink); font-size: .9rem; }
.check-list span { color: var(--muted); font-size: .84rem; }

.certificates-visual { position: relative; }
.certificates-visual-decor { position: absolute; inset: 10% -6% -8% 6%; background: var(--navy); border-radius: 10px; opacity: .08; }
.certificates-visual > img { position: relative; display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 50px rgb(13 44 84 / .18); }

/* verify band */
.verify-band { padding: clamp(52px, 7vw, 76px) 0; background: var(--navy); }
.verify-band-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.verify-band-copy h2 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.01em; }
.verify-band-copy p { margin-top: 8px; color: #a9bbd1; font-size: .9rem; }
.verify-band-form { width: min(440px, 100%); }
.verify-form { display: flex; gap: 0; }
.verify-form input { min-width: 0; flex: 1; height: 50px; padding: 0 18px; border: 0; border-radius: 26px 0 0 26px; background: #fff; color: var(--ink); font-size: .9rem; }
.verify-form input::placeholder { color: var(--faint); }
.verify-form button { min-height: 50px; border: 0; border-radius: 0 26px 26px 0; padding: 0 24px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .875rem; white-space: nowrap; transition: filter 180ms ease; }
.verify-form button:hover { filter: brightness(1.08); }
.verification-result { display: grid; gap: 5px; margin-top: 20px; color: #a9bbd1; }
.verification-result strong { color: #fff; font-size: 1rem; letter-spacing: -.01em; }
.verification-result.is-valid > strong { color: #6bdb9a; }
.verification-result.is-invalid > strong { color: #ff9c8f; }
.verification-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.verification-item { display: grid; gap: 3px; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / .16); }
.verification-item span { color: #7e93ac; font-size: .8rem; }
.verification-item b { color: #fff; }
.advanced-panel { margin-top: 18px; color: #a9bbd1; }
.advanced-panel pre { overflow: auto; }

/* whatsapp float */
.whatsapp-float { position: fixed; z-index: 50; right: 24px; bottom: 24px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 22px rgb(0 0 0 / .28); animation: floatGlow 3s ease-in-out infinite; transition: transform 180ms ease; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes floatGlow { 0%, 100% { box-shadow: 0 8px 22px rgb(0 0 0 / .28); } 50% { box-shadow: 0 8px 30px rgb(37 211 102 / .45); } }

/* footer */
.site-footer { padding: 60px 0 28px; background: var(--navy-deep); color: #a9bbd1; }
.footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-row strong { color: #fff; font-size: 1rem; font-weight: 700; }
.footer-brand p { max-width: 32ch; margin: 0; color: #8195b0; font-size: .84rem; line-height: 1.6; }
.footer-nav strong, .footer-contact strong { display: block; margin-bottom: 14px; color: #fff; font-size: .81rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.footer-nav nav { display: grid; gap: 10px; font-size: .84rem; }
.footer-nav nav a:hover { color: #fff; }
.footer-contact { display: grid; gap: 8px; font-size: .84rem; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; color: #5f7594; font-size: .75rem; }

/* mobile menu (shared mechanics) */
.mobile-menu { position: fixed; inset: 0; z-index: 300; padding: 24px; background: var(--canvas); color: var(--ink); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { display: flex; align-items: flex-start; justify-content: space-between; }
.mobile-menu-top .brand-name { display: grid; line-height: 1; }
.mobile-menu-top .brand-name b { color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.mobile-menu-top .brand-name span { margin-top: 4px; color: var(--gold-deep); font-size: .57rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.mobile-close { padding: 8px 0; border: 0; background: transparent; color: var(--gold-deep); font-weight: 700; }
.mobile-menu nav { display: grid; margin-top: 64px; border-top: 1px solid var(--line); }
.mobile-menu nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.mobile-cta { display: inline-flex; margin-top: 28px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-deep); color: var(--ink); font-size: 1.05rem; font-weight: 700; }

.motion-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes carouselScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes carouselScrollReverse { from { transform: translateX(0); } to { transform: translateX(50%); } }

@media (max-width: 980px) {
  .nav, .header-actions .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(82vw, 620px); margin-inline: auto; }
  .certificates-layout { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-band-inner { grid-template-columns: 1fr; }
  .verify-band-form { width: 100%; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .shell, .header-inner { width: min(100% - 32px, var(--shell)); }
  .header-inner { min-height: 68px; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-word { font-size: 16px; }
  .hero-inner { padding: 40px 0 56px; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 26px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-stats > div { padding-inline: 0; border-right: 0; padding-bottom: 16px; border-bottom: 1px solid rgb(255 255 255 / .16); }
  .hero-stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .section { padding: 48px 0; }
  .section-heading-row h2, .section-heading h2 { font-size: clamp(1.5rem, 8vw, 2rem); }
  .areas-grid { grid-template-columns: 1fr; }
  .verify-form { flex-direction: column; }
  .verify-form input { border-radius: 26px; }
  .verify-form button { margin-top: 10px; border-radius: 26px; width: 100%; justify-content: center; display: flex; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
