:root {
  --navy: #1F2A44;
  --beige: #E8DCC8;
  --gold: #C6A75E;
  --gold-text: #76570f;
  --ink: #202636;
  --muted: #687385;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: rgba(31, 42, 68, 0.14);
  --shadow: 0 22px 54px rgba(31, 42, 68, 0.12);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.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; }

.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 20; background: var(--gold); color: var(--navy); padding: .75rem 1rem; border-radius: 999px; }
.skip-link:focus { left: 1rem; }

.announcement { padding: .62rem 1rem; text-align: center; background: var(--navy); color: var(--beige); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem clamp(1rem, 4vw, 4.5rem); background: rgba(251, 250, 247, .92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand__logo { width: clamp(8.5rem, 24vw, 13.25rem); max-height: 3rem; object-fit: contain; object-position: left center; }
.nav { display: none; gap: 1.4rem; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold-text); }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1rem, 4vw, 4.5rem); }
.hero { min-height: calc(100dvh - 72px); display: grid; gap: 3rem; align-items: center; background: linear-gradient(90deg, rgba(232, 220, 200, .72), rgba(251,250,247,.96) 45%, #ffffff), radial-gradient(circle at 84% 12%, rgba(198,167,94,.22), transparent 24rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.eyebrow { margin: 0 0 1rem; color: var(--gold-text); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; font-size: .75rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.35rem, 6.4vw, 4.75rem); letter-spacing: -.045em; max-width: 15.5ch; }
.hero h1 { width: 100%; max-width: 56rem; margin-inline: auto; text-align: center; }
h2 { font-size: clamp(2.05rem, 5.2vw, 3.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p { margin: 0; }
.hero__lead { margin-top: 1.3rem; font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 46rem; color: #343a46; }
.hero__batch { margin-top: 1rem; font-family: var(--serif); font-weight: 500; color: var(--navy); text-align: center; font-size: clamp(1.5rem, 3.6vw, 2.4rem); letter-spacing: -.02em; }
.hero__logo { display: block; width: min(100%, 28rem); margin-inline: auto; margin-bottom: clamp(1.4rem, 4vw, 2.4rem); }
.hero__actions { margin-top: 1.7rem; display: flex; flex-direction: column; gap: .8rem; }
.microcopy { margin-top: .85rem; color: var(--gold-text); font-size: .95rem; font-weight: 850; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 3.15rem; padding: .85rem 1.25rem; border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 800; border: 1px solid var(--navy); box-shadow: 0 12px 26px rgba(31,42,68,.16); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(31,42,68,.2); background: #263554; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: none; border-color: rgba(31,42,68,.28); }
.btn--small { min-height: 2.6rem; padding: .55rem .95rem; font-size: .9rem; }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.header-cta { flex-shrink: 0; }
.hero__media { margin: 0; position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 929 / 588; object-fit: cover; object-position: center; box-shadow: var(--shadow); border: 1px solid rgba(31,42,68,.12); }
.hero__media figcaption { margin: -3.2rem 1rem 0; position: relative; display: grid; gap: .1rem; padding: 1rem; color: var(--navy); font-size: .92rem; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 30px rgba(31,42,68,.11); }
.hero__media figcaption strong { font-family: var(--serif); font-size: 1.25rem; }
.hero__media figcaption span { color: var(--muted); }

.section__intro { max-width: 58rem; margin-bottom: 2rem; }
.section__intro p:not(.eyebrow) { margin-top: 1rem; color: #485164; font-size: 1.08rem; }
.section__intro--center { margin-inline: auto; text-align: center; }
.section__intro--center p:not(.eyebrow) { margin-inline: auto; max-width: 52rem; }
.density__box .eyebrow { color: var(--gold); }

.split { display: grid; gap: 2rem; align-items: center; background: #fff; border-bottom: 1px solid var(--line); }
#tecnica { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9)), url("img/Fundo 1.png") center / cover; }
.split p { margin-top: 1rem; color: #485164; }
.rounded-media, .editorial-figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border: 1px solid rgba(31,42,68,.12); }
.editorial-figure { margin: 0; }
.editorial-figure figcaption { margin-top: .75rem; color: var(--muted); font-size: .92rem; }
.docente { background: linear-gradient(135deg, var(--navy), #111827); color: var(--white); }
.docente > div { max-width: 76rem; margin: auto; }
.docente__grid { display: grid; gap: 2rem; align-items: center; }
.docente__media { margin: 0; aspect-ratio: 2 / 3; background: rgba(17, 24, 39, .42); border-radius: calc(var(--radius) + 8px); }
.docente__media img { width: 100%; border-radius: calc(var(--radius) + 8px); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 22px 54px rgba(0, 0, 0, .28); border: 1px solid rgba(232,220,200,.24); }
.docente__media .docente__portrait { aspect-ratio: auto; height: 100%; object-fit: contain; background: rgba(17, 24, 39, .42); }
.docente h2 { color: var(--white); }
.eyebrow--docente { font-family: var(--serif); font-weight: 500; font-size: clamp(1rem, 2vw, 1.22rem); letter-spacing: .11em; color: var(--gold); }
.docente__content > p:not(.eyebrow) { margin-top: 1rem; color: rgba(255, 255, 255, .78); }

.feature-band { background: linear-gradient(135deg, rgba(232,220,200,.68), #fff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-band .section__intro { max-width: 76rem; margin-bottom: 0; }
.feature-band .section__intro p:not(.eyebrow) { max-width: 64rem; }

.timeline { display: grid; gap: 1rem; margin-top: 1.6rem; }
.timeline article { padding: 1.25rem; border-left: 2px solid var(--gold); background: #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(31,42,68,.06); }
.timeline strong { color: var(--navy); font-size: 1.1rem; }
.timeline p { margin-top: .35rem; color: #485164; }
.quiz-section { background: linear-gradient(180deg, rgba(251,250,247,.88), rgba(255,255,255,.92)), url("img/fundo 2.png") center / cover; border-bottom: 1px solid var(--line); }
.quiz-section__intro { max-width: 56rem; margin: 0 auto 2rem; text-align: center; }
.quiz-shell { display: flex; justify-content: center; }
.quiz-phone { position: relative; width: min(100%, 720px); min-height: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; border: 0; overflow: visible; }
.quiz-phone > * { position: relative; }
.quiz-progress { display: grid; gap: .55rem; padding: 0 0 1rem; color: var(--navy); }
.quiz-progress__label { font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.quiz-progress__track { height: .52rem; overflow: hidden; border-radius: 999px; background: rgba(31,42,68,.12); }
.quiz-progress__track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--beige)); transition: width .28s ease; }
.quiz-card { min-height: 430px; display: flex; flex-direction: column; padding: clamp(1.2rem, 4vw, 2rem); border-radius: calc(var(--radius) + 8px); background: linear-gradient(180deg, #fff, #fbfaf7); border: 1px solid rgba(232,220,200,.86); box-shadow: var(--shadow); overflow-wrap: anywhere; transition: transform .24s ease, opacity .24s ease; }
.quiz-card.is-leaving { opacity: .35; transform: translateY(8px) scale(.985); }
.quiz-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.quiz-card__kicker { margin-bottom: .7rem; color: var(--gold-text); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.quiz-card h3 { font-family: var(--serif); font-size: clamp(1.75rem, 7vw, 2.45rem); line-height: 1.05; letter-spacing: -.035em; }
.quiz-card__text { margin-top: 1rem; color: #4d586a; font-size: clamp(1rem, 2.6vw, 1.08rem); line-height: 1.65; }
.quiz-options { display: grid; gap: .75rem; margin-top: 1.35rem; }
.quiz-option { width: 100%; min-height: 3.25rem; padding: .9rem 1rem; border: 1px solid rgba(31,42,68,.16); border-radius: 18px; background: #fff; color: var(--navy); font: inherit; font-weight: 850; text-align: left; cursor: pointer; box-shadow: 0 10px 22px rgba(31,42,68,.06); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.quiz-option:hover { transform: translateY(-2px); border-color: rgba(198,167,94,.76); background: rgba(232,220,200,.23); }
.quiz-option:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.quiz-card__note { margin-top: auto; padding-top: 1.2rem; color: var(--muted); font-size: .86rem; }
.quiz-result { display: grid; gap: .8rem; margin-top: 1.2rem; padding: 1rem; border: 1px solid rgba(198,167,94,.48); border-radius: 18px; background: rgba(232,220,200,.34); color: #3f4858; }
.quiz-result p { margin: 0; }
.quiz-cta { margin-top: 1rem; }
.button-reset { font: inherit; }
.quiz-restart { margin-top: .75rem; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 850; text-decoration: underline; cursor: pointer; }
.quiz-restart:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.lead-form { display: grid; gap: 1rem; margin-top: 1rem; }
.lead-form__field { display: grid; gap: .35rem; }
.lead-form label { color: var(--navy); font-weight: 900; }
.lead-form input { width: 100%; min-height: 3rem; padding: .78rem .9rem; border: 1px solid rgba(31,42,68,.22); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; box-shadow: 0 8px 18px rgba(31,42,68,.045); }
.lead-form input:focus { outline: 3px solid rgba(198,167,94,.55); border-color: var(--gold-text); }
.lead-form input[aria-invalid="true"] { border-color: #a53232; background: #fff8f8; }
.lead-form__error { min-height: 1.25rem; color: #a53232; font-size: .88rem; font-weight: 750; }
.lead-form__privacy { padding: .9rem; border-radius: 14px; background: rgba(232,220,200,.34); color: #4d586a; font-size: .9rem; }
.lead-form__status { color: #a53232; font-weight: 850; }
.lead-form__status.is-success { color: #1f7a4d; }
.lead-form__submit { width: 100%; margin-top: .25rem; cursor: pointer; }
.quiz-loading { position: absolute; inset: 1.55rem 0 0; z-index: 2; display: grid; place-content: center; gap: 1rem; border-radius: calc(var(--radius) + 8px); background: rgba(31,42,68,.9); color: var(--beige); text-align: center; backdrop-filter: blur(10px); }
.quiz-loading[hidden] { display: none; }
.quiz-loading span { width: 3rem; height: 3rem; margin: auto; border-radius: 50%; border: 4px solid rgba(232,220,200,.24); border-top-color: var(--gold); animation: quiz-spin .7s linear infinite; }
.quiz-loading p { font-weight: 850; letter-spacing: .02em; }
@keyframes quiz-spin { to { transform: rotate(360deg); } }
.density { background: #fff; padding-block: 3.5rem; }
.density__box { max-width: 74rem; margin: auto; padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--radius) + 8px); background: var(--navy); color: var(--white); background-image: linear-gradient(135deg, rgba(255,255,255,.05), transparent 50%), radial-gradient(circle at 85% 20%, rgba(198,167,94,.25), transparent 20rem); }
.density__box h2 { color: var(--white); }
.density__box p:not(.eyebrow) { margin-top: 1rem; max-width: 58rem; color: rgba(255,255,255,.78); font-size: 1.1rem; }

.study { background: #fff; }
.program-grid, .format__grid { display: grid; gap: 1rem; }
.program-grid article, .format__grid div { padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 24px rgba(31,42,68,.045); }
.program-grid p { margin-top: .6rem; color: #536075; }
.program-shell { max-width: 64rem; margin: auto; }
.program-content .section__intro { margin-bottom: 1.5rem; }
.program-image { width: min(100%, 42rem); margin: auto; border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); border: 1px solid rgba(31,42,68,.12); background: var(--white); }
.carousel { display: grid; gap: 1rem; }
.carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--gold) rgba(31,42,68,.1); padding: .25rem .25rem 1rem; margin-inline: -.25rem; }
.carousel__viewport:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; border-radius: 14px; }
.note-card { background: var(--navy) !important; color: #fff; }
.note-card h3 { color: #fff; }
.note-card p { color: rgba(255,255,255,.82) !important; }
.audience { background: #fff; }
.included { background: #fff; }
.included__list { display: grid; gap: 1rem; max-width: 58rem; margin: 0; padding: 0; list-style: none; }
.included__list li { position: relative; padding: 1rem 1.15rem 1rem 2.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 24px rgba(31,42,68,.045); color: var(--navy); font-weight: 800; }
.included__list li::before { content: ""; position: absolute; left: 1.15rem; top: 50%; width: .7rem; height: .7rem; transform: translateY(-50%) rotate(45deg); background: linear-gradient(135deg, var(--gold), var(--navy)); }
.format { background: rgba(232,220,200,.46); border-bottom: 1px solid var(--line); }
.format__grid div { display: grid; gap: .4rem; }
.format__grid strong { color: var(--gold-text); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.format__grid span { color: var(--navy); font-weight: 800; font-size: 1.1rem; }
.centered-action { display: flex; justify-content: center; margin-top: 1.5rem; }

.records { background: #fff; }
.records__grid { display: flex; gap: 1rem; }
.records figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 32px rgba(31,42,68,.07); }
.records-carousel figure { flex: 0 0 min(84%, 20rem); scroll-snap-align: start; }
.records img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.records figcaption { padding: 1rem; color: var(--navy); font-weight: 800; }
.before-after { background: linear-gradient(180deg, #fff, rgba(232,220,200,.32)); border-bottom: 1px solid var(--line); }
.before-after__microcopy { margin-top: 1rem; color: var(--gold-text); font-size: 1rem; font-weight: 850; }
.before-after__disclaimer { max-width: 58rem; margin-top: 1rem; color: #5f6879; font-size: .94rem; }
.faq { background: #fff; }
.faq__list { display: grid; gap: .8rem; max-width: 58rem; margin: auto; }
details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 1rem 1.1rem; }
summary { cursor: pointer; color: var(--navy); font-weight: 900; }
details p { margin-top: .8rem; color: #4b5565; }

.final-cta { text-align: center; background: linear-gradient(135deg, var(--navy), #111827); color: var(--white); }
.final-cta__content { display: grid; gap: 2rem; align-items: center; max-width: 76rem; margin: auto; }
.final-cta__media { margin: 0 auto; width: min(100%, 23rem); aspect-ratio: 2 / 3; background: rgba(17, 24, 39, .42); border-radius: calc(var(--radius) + 8px); }
.final-cta__media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; border-radius: calc(var(--radius) + 8px); border: 1px solid rgba(232,220,200,.28); box-shadow: 0 22px 54px rgba(0, 0, 0, .3); }
.final-cta__media .final-cta__portrait { aspect-ratio: auto; height: 100%; object-fit: contain; background: rgba(17, 24, 39, .42); }
.final-cta h2 { color: var(--white); max-width: 56rem; margin: auto; }
.final-cta .btn--light { margin-top: 1.75rem; }
.footer { padding: 2rem 1rem; text-align: center; color: rgba(255,255,255,.76); background: #111827; font-size: .92rem; }
.footer p + p { margin-top: .35rem; }

body.is-modal-open { overflow: hidden; }
.lead-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2rem); }
.lead-modal[hidden] { display: none; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .64); backdrop-filter: blur(6px); }
.lead-modal__dialog { position: relative; z-index: 1; width: min(100%, 34rem); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: clamp(1.35rem, 4vw, 2rem); border-radius: calc(var(--radius) + 8px); background: linear-gradient(180deg, #fff, #fbfaf7); border: 1px solid rgba(232, 220, 200, .86); box-shadow: var(--shadow); }
.lead-modal__close { position: absolute; top: .55rem; right: .6rem; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid rgba(31, 42, 68, .16); background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .18s ease; }
.lead-modal__close:hover { background: rgba(232, 220, 200, .4); }
.lead-modal__close:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.lead-modal__dialog h3 { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.06; letter-spacing: -.035em; color: var(--navy); padding-right: 2.4rem; }
.lead-modal__dialog .lead-form__submit { cursor: pointer; }
.lead-modal__message { margin-top: 1rem; color: #4b5565; }
.lead-modal__actions { margin-top: 1.35rem; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .hero__actions { flex-direction: row; align-items: center; }
  .program-grid, .format__grid { grid-template-columns: repeat(2, 1fr); }
  .records-carousel figure { flex-basis: calc((100% - 1rem) / 2); }
}

@media (max-width: 380px) {
  .site-header { gap: .65rem; padding-inline: .85rem; }
  .brand__logo { width: clamp(7.5rem, 42vw, 9rem); max-height: 2.65rem; }
  .header-cta { display: none; }
}

@media (min-width: 1024px) {
  .hero, .split { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); }
  #tecnica { background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.88)), url("img/Fundo 1.png") center / cover; }
  .split--reverse { grid-template-columns: minmax(360px, .72fr) minmax(0, 1.08fr); }
  .split--reverse figure { order: -1; }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .records-carousel figure { flex-basis: calc((100% - 3rem) / 4); }
  .docente__grid { grid-template-columns: minmax(280px, .58fr) minmax(0, 1fr); }
  .final-cta { text-align: left; }
  .final-cta__content { grid-template-columns: minmax(260px, .44fr) minmax(0, 1fr); }
  .final-cta__media { width: 100%; }
  .final-cta h2 { margin: 0; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .quiz-card, .quiz-option, .quiz-progress__track span, .lead-modal__close { transition: none; }
  .carousel__viewport { scroll-behavior: auto; }
  .quiz-loading span { animation: none; }
}
