:root {
  --navy: #102a3f;
  --navy-2: #0a1f30;
  --teal: #087f83;
  --aqua: #91d3ce;
  --gold: #e2b24a;
  --cream: #f6f2e8;
  --paper: #fffdf8;
  --ink: #163247;
  --muted: #5d6c78;
  --line: rgba(16, 42, 63, .14);
  --shadow: 0 24px 70px rgba(10, 31, 48, .15);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(20px, 4vw, 68px); color: white; background: linear-gradient(to bottom, rgba(5,17,28,.72), transparent); border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.05; }
.brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.brand small { display: block; margin-top: 6px; color: rgba(255,255,255,.68); font-size: 12px; letter-spacing: .05em; }
.brand-mark { position: relative; width: 38px; height: 36px; display: inline-block; border: 2px solid var(--aqua); border-top: 0; border-radius: 2px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 26px; height: 2px; top: -5px; background: var(--aqua); }
.brand-mark::before { left: -5px; transform: rotate(-38deg); transform-origin: right; }
.brand-mark::after { right: -5px; transform: rotate(38deg); transform-origin: left; }
.brand-mark span { position: absolute; width: 11px; height: 20px; bottom: 0; left: 12px; background: var(--gold); }
nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; }
nav a:hover { color: white; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle { border: 0; background: transparent; color: var(--aqua); padding: 10px; cursor: pointer; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: white; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px; color: var(--navy-2); background: var(--gold); border: 1px solid var(--gold); border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(226,178,74,.25); }
.button-small { min-height: 42px; padding: 9px 16px; font-size: 14px; }
.button-ghost { color: white; background: transparent; border-color: rgba(255,255,255,.35); }
.button-light { background: white; border-color: white; }
.text-link { display: inline-block; color: inherit; text-underline-offset: 6px; text-decoration-thickness: 1px; font-weight: 700; }

.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, .34fr); align-items: end; gap: clamp(45px, 6vw, 100px); padding: clamp(150px, 18vh, 220px) clamp(28px, 6vw, 92px) clamp(72px, 9vh, 110px); color: white; background: linear-gradient(90deg, rgba(4,17,29,.64) 0%, rgba(4,17,29,.43) 53%, rgba(4,17,29,.30) 100%), url("assets/hero-living-room.webp") center center / cover no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(4,17,29,.20), transparent 42%); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; max-width: 870px; padding: 0; }
.eyebrow, .section-label { margin: 0 0 20px; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.hero .eyebrow { color: var(--aqua); }
h1, h2 { font-family: "Playfair Display", serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 820px; margin: 0 0 24px; font-size: clamp(50px, 6vw, 88px); text-shadow: 0 4px 28px rgba(0,0,0,.24); }
.hero-lead { max-width: 650px; margin: 0; color: rgba(255,255,255,.92); font-size: clamp(18px, 1.5vw, 22px); text-shadow: 0 2px 14px rgba(0,0,0,.52); }
.hero-buttons { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 0; margin: 44px 0 0; list-style: none; color: rgba(255,255,255,.65); font-size: 14px; }
.trust-list li:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 28px; vertical-align: middle; background: rgba(255,255,255,.25); }
.hero-profile { position: relative; z-index: 1; align-self: start; margin-top: 18px; padding: 0 0 8px clamp(28px, 4vw, 60px); border-left: 1px solid rgba(255,255,255,.34); }
.hero-profile img { width: clamp(138px, 12vw, 174px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 34%; border: 0; border-radius: 10px; box-shadow: none; }
.hero-profile h2 { margin: 20px 0 2px; font-size: clamp(28px, 2.8vw, 40px); text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-profile > p { max-width: 260px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.45; }
.profile-divider { width: 100%; max-width: 250px; height: 1px; margin: 24px 0 18px; background: rgba(255,255,255,.24); }
.hero-profile dl { margin: 0; }
.hero-profile dl div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; margin: 9px 0; }
.hero-profile dt { color: var(--aqua); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.hero-profile dd { margin: 0; font-size: 14px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero-profile a { text-decoration: none; }

.ticker { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 48px); padding: 18px 24px; color: var(--navy); background: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.ticker i { width: 5px; height: 5px; background: var(--navy); border-radius: 50%; }
.section { padding: clamp(80px, 9vw, 150px) clamp(24px, 7vw, 120px); }
.section h2 { max-width: 900px; margin: 0; font-size: clamp(38px, 4.5vw, 66px); }
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 8vw, 130px); }
.about-copy { max-width: 650px; color: var(--muted); font-size: 18px; }
.about-copy p:first-child { margin-top: 0; }
.credentials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 90px 0 0; padding: 34px 0 0; border-top: 1px solid var(--line); }
.credentials div { padding-right: 20px; border-right: 1px solid var(--line); }
.credentials div:last-child { border: 0; }
.credentials dt { margin-bottom: 8px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.credentials dd { margin: 0; font-weight: 700; }
.process { background: white; }
.section-heading { margin-bottom: 55px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.centered { text-align: center; }
.centered h2, .centered p { margin-left: auto; margin-right: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps article { position: relative; padding: 55px 32px 10px 0; }
.steps article:not(:last-child) { border-right: 1px solid var(--line); margin-right: 32px; }
.steps span, .program-grid article > span { display: inline-grid; width: 44px; height: 44px; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-weight: 700; }
.steps h3, .program-grid h3 { margin: 22px 0 10px; font-family: "Playfair Display", serif; font-size: 25px; }
.steps p, .program-grid p { color: var(--muted); }
.programs { background: var(--navy); color: white; }
.programs .eyebrow { color: var(--aqua); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.program-grid article { min-height: 300px; padding: 36px; background: var(--navy); }
.program-grid article > span { color: var(--navy); background: var(--aqua); }
.program-grid p { color: rgba(255,255,255,.65); }
.program-cta { display: flex; flex-direction: column; justify-content: flex-end; background: var(--teal) !important; }
.program-cta p { color: white; font: 600 27px/1.25 "Playfair Display", serif; }
.program-cta a { color: white; text-underline-offset: 6px; font-weight: 700; }
.calculator-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(45px, 7vw, 110px); align-items: center; background: var(--cream); }
.calculator-intro p:last-child { max-width: 540px; color: var(--muted); font-size: 18px; }
.calculator-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(28px, 4vw, 55px); }
label > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.input-wrap { display: flex; align-items: center; height: 54px; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.input-wrap b { padding-left: 16px; }
.input-wrap.suffix b { padding: 0 16px 0 0; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; outline: none; }
input, select { height: 54px; padding: 0 16px; }
.input-wrap input { height: 100%; border: 0; }
input:focus, select:focus, textarea:focus, .input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,131,.12); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 23px,calc(100% - 14px) 23px; background-size: 6px 6px,6px 6px; background-repeat: no-repeat; }
.result { padding: 36px clamp(28px, 4vw, 55px); color: white; background: var(--teal); }
.result > span { font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.result > strong { display: block; margin: 6px 0 4px; font: 700 clamp(46px, 5vw, 70px)/1 "Playfair Display", serif; }
.result p { margin: 8px 0 26px; color: rgba(255,255,255,.72); }
.result small { display: block; margin-top: 16px; color: rgba(255,255,255,.62); }
.education { padding-top: 0; background: var(--cream); }
.education-card { position: relative; overflow: hidden; max-width: 1300px; margin: auto; padding: clamp(50px, 7vw, 100px); color: white; background: linear-gradient(120deg, rgba(10,31,48,.96), rgba(8,127,131,.92)); border-radius: var(--radius); }
.education-card::after { content: "HOLA"; position: absolute; right: -15px; bottom: -50px; color: rgba(255,255,255,.06); font: 700 190px/1 "Playfair Display", serif; }
.education-card h2 { max-width: 850px; }
.education-card > p:not(.eyebrow) { max-width: 760px; color: rgba(255,255,255,.72); font-size: 18px; }
.education-card .button { position: relative; z-index: 2; margin-top: 20px; }
.faq { background: white; }
.accordion { max-width: 980px; margin: auto; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; padding: 27px 55px 27px 0; cursor: pointer; list-style: none; font: 600 23px/1.25 "Playfair Display", serif; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 8px; top: 22px; color: var(--teal); font: 400 34px/1 "DM Sans", sans-serif; }
.accordion details[open] summary::after { content: "−"; }
.accordion details p { max-width: 800px; margin: -5px 0 30px; color: var(--muted); }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 130px); color: white; background: var(--navy-2); }
.contact-copy > p:not(.eyebrow) { max-width: 560px; color: rgba(255,255,255,.7); font-size: 18px; }
.contact-copy ul { padding: 0; margin: 40px 0 0; list-style: none; }
.contact-copy li { display: grid; grid-template-columns: 85px 1fr; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-copy li span { color: var(--aqua); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contact-copy li a { text-decoration: none; }
#contact-form { padding: clamp(28px, 4vw, 52px); color: var(--ink); background: white; border-radius: var(--radius); }
.form-heading { margin-bottom: 28px; }
.form-heading span, .form-heading strong { display: block; }
.form-heading span { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.form-heading strong { font: 600 34px/1.2 "Playfair Display", serif; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
textarea { padding: 14px 16px; resize: vertical; }
#contact-form label { display: block; margin-bottom: 18px; }
.privacy-note { color: var(--muted); font-size: 13px; }
footer { padding: 70px clamp(24px, 7vw, 120px) 35px; color: white; background: #071824; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-top > div:not(.footer-brand) strong, .footer-top > div:not(.footer-brand) a { display: block; }
.footer-top > div:not(.footer-brand) strong { margin-bottom: 13px; color: var(--aqua); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer-top a { margin: 7px 0; color: rgba(255,255,255,.7); text-decoration: none; }
.legal { padding-top: 28px; color: rgba(255,255,255,.52); font-size: 13px; }
.legal > div { display: flex; flex-wrap: wrap; gap: 18px; }
.legal a { color: inherit; }
.legal summary { cursor: pointer; }

.call-dialog { width: min(92vw, 520px); padding: 38px; color: var(--ink); background: var(--paper); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.call-dialog::backdrop { background: rgba(7,24,36,.72); backdrop-filter: blur(4px); }
.call-dialog form { position: absolute; top: 14px; right: 14px; }
.call-dialog-close { width: 40px; height: 40px; color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 30px; line-height: 1; }
.call-dialog-close:hover { background: var(--cream); }
.call-dialog .eyebrow { margin-bottom: 10px; }
.call-dialog h2 { margin: 0 0 14px; font-size: 40px; }
.call-dialog > p:not(.eyebrow, .copy-status) { color: var(--muted); }
.call-dialog-number { display: inline-block; color: var(--teal); text-underline-offset: 5px; font-size: 25px; font-weight: 700; }
.call-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.call-copy { color: var(--teal); background: transparent; border-color: var(--teal); }
.copy-status { min-height: 26px; margin: 12px 0 0; color: var(--teal); font-weight: 700; }

.reveal { animation: rise .8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 290px; padding-left: 45px; padding-right: 45px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps article:nth-child(2) { border-right: 0; }
  .program-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .site-header { min-height: 72px; }
  .header-actions .button { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open nav { position: absolute; display: grid; left: 0; right: 0; top: 72px; padding: 25px; background: var(--navy-2); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding: 145px 25px 65px; background-position: 62% center; }
  .hero-copy { padding: 0; }
  .hero-profile { order: -1; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 0; border: 0; text-align: center; background: transparent; backdrop-filter: none; }
  .hero-profile img { width: 138px; }
  .hero-profile h2 { margin: 14px 0 2px; }
  .hero-profile > p { margin: 0 auto 10px; }
  .profile-divider { display: block; width: 120px; margin: 12px auto; }
  .hero-profile dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
  .hero-profile dl div { display: block; margin: 0; }
  .hero-profile dt { margin-bottom: 2px; }
  .ticker { justify-content: flex-start; overflow-x: auto; }
  .ticker span { white-space: nowrap; }
  .about-grid, .calculator-section, .contact { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .credentials div:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps article { border-right: 0 !important; border-bottom: 1px solid var(--line); margin: 0 !important; }
  .program-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .brand-mark { width: 31px; height: 30px; }
  .brand-mark span { left: 9px; height: 16px; }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .hero-buttons .text-link { text-align: center; }
  .hero-profile { padding: 0; }
  .hero-profile img { width: 122px; }
  .hero-profile h2 { font-size: 27px; }
  .hero-profile dl { gap: 8px 18px; }
  .credentials { grid-template-columns: 1fr; }
  .credentials div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-copy li { grid-template-columns: 1fr; }
  .call-dialog { padding: 30px 24px; }
  .call-dialog h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
