:root {
  --navy: #091F5B;
  --orange: #D97925;
  --orange-hover: #E88C3A;
  --blue: #7C9CC8;
  --gray: #F2F2F2;
  --ink-soft: #3A4770;
  --ink-mute: #5A6688;
  --line: #E1E5EE;
  --error: #B42318;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--navy); }
img { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
button { font-family: inherit; }
input::placeholder { color: #7D869E; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.eyebrow--light { color: var(--blue); }

.h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); line-height: 1.08; font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
.h2 em { font-style: italic; }

/* Buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  position: relative; overflow: hidden; transition: background 140ms cubic-bezier(.2,0,0,1), color 140ms, transform 140ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn > span { position: relative; z-index: 1; }
.btn--orange { background: var(--orange); color: var(--navy); }
.btn--orange:hover { background: var(--orange-hover); color: var(--navy); }
.btn--white { background: #FFFFFF; color: var(--navy); align-self: flex-start; margin-top: 8px; }
.btn--white:hover { background: var(--orange); color: var(--navy); }
.btn--block { display: flex; width: 100%; min-height: 58px; padding: 0 20px; gap: 10px; }
.btn__arrow { font-size: 18px; display: inline-block; }
.btn__shine {
  position: absolute !important; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%); pointer-events: none;
}

/* Hero */
.hero { background: var(--navy); color: #FFFFFF; overflow: hidden; }
.hero__wrap { padding-top: 20px; padding-bottom: 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { height: 34px; width: auto; }
.brand__mark--sm { height: 28px; }
.brand__name { font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.brand__name--sm { font-size: 15px; }
.pill-link {
  font-size: 13px; font-weight: 600; color: #FFFFFF; border: 1px solid rgba(124,156,200,.5);
  border-radius: 999px; padding: 10px 16px; transition: background 140ms, color 140ms;
}
.pill-link:hover { background: #FFFFFF; color: var(--navy); }

.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px; align-items: center; margin-top: 56px;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.eyebrow-line { display: flex; align-items: center; gap: 12px; }
.eyebrow-line__bar { width: 28px; height: 2px; background: var(--orange); transform-origin: left; }
.hero__title {
  margin: 0; font-family: var(--serif); font-size: clamp(40px, 7.4vw, 64px); line-height: 1.02;
  font-weight: 400; letter-spacing: -.02em; text-wrap: balance;
}
.hero__title em { color: var(--orange); font-style: italic; position: relative; display: inline-block; }
.hero__underline {
  position: absolute; left: 2%; right: 2%; bottom: .02em; height: 3px; border-radius: 2px;
  background: var(--orange); transform-origin: left;
}
.hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #CBD5EA; max-width: 520px; text-wrap: pretty; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }
.hero__hint { font-size: 13px; color: #A9B8D6; }

.hero__art { display: flex; justify-content: center; will-change: transform; }
.tiles {
  width: 100%; max-width: 440px; aspect-ratio: 1; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr));
  border-radius: 20px; overflow: hidden; perspective: 900px;
}
.tile { background-image: url(assets/pattern.png); background-size: 400% 400%; }
.tile--logo { background: var(--gray); position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.tile--logo img { position: absolute; left: 50%; top: 50%; height: 62%; width: auto; max-width: none; transform: translate(-50%, -50%); }

/* Marquee */
.marquee { background: var(--orange); color: var(--navy); overflow: hidden; padding: 16px 0; border-top: 1px solid var(--navy); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; gap: 28px; padding-right: 28px; flex: none; }
.marquee__item { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee__item span { font-family: var(--serif); font-style: italic; font-size: 26px; }
.marquee__item img { height: 22px; width: auto; }

/* About */
.about { background: #FFFFFF; }
.about__grid {
  padding-top: 88px; padding-bottom: 88px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 64px;
}
.about__body { padding-top: 8px; }
.about__body p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pillar { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; border-top: 2px solid; }
.pillar--orange { border-color: var(--orange); }
.pillar--blue { border-color: var(--blue); }
.pillar--navy { border-color: var(--navy); }
.pillar__num { font-size: 12px; font-weight: 600; color: var(--blue); }
.pillar__name { font-family: var(--serif); font-size: 20px; }
.about__body .about__sign { margin-top: 16px; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--navy); }

/* Testimonials */
.testimonials { background: #FFFFFF; }
.testimonials__wrap { padding-top: 8px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.testimonials__head { display: flex; flex-direction: column; gap: 16px; padding-top: 56px; border-top: 1px solid var(--line); }
.testimonials__head .h2 { max-width: 760px; }
.testimonials__list {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testimonials__track { display: flex; width: max-content; padding: 4px 0; }
.testimonials__track.is-running { animation: testimonials-loop var(--loop-duration, 40s) linear infinite; }
.testimonials__list:hover .testimonials__track,
.testimonials__list:active .testimonials__track { animation-play-state: paused; }
@keyframes testimonials-loop { to { transform: translateX(-50%); } }
.quote {
  flex: none; width: 320px; margin: 0 16px 0 0; background: #F7F8FB; border: 1px solid #EBEEF4; border-radius: 20px; padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden;
}
.quote::before {
  content: '“'; position: absolute; top: -18px; right: 14px; font-family: var(--serif); font-size: 120px;
  line-height: 1; color: var(--orange); opacity: .18; pointer-events: none;
}
.quote__text { margin: 24px 0 0; flex: 1; font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--navy); text-wrap: pretty; }
.quote__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #E4E8F0; }
.quote__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote__name { font-size: 14px; font-weight: 600; }
.quote__role { font-size: 12px; color: var(--ink-mute); }

@media (max-width: 600px) {
  .quote { width: 264px; margin-right: 12px; padding: 24px 20px 20px; }
  .quote__text { font-size: 20px; }
}

/* Form section */
.form-section { background: var(--gray); scroll-margin-top: 0; }
.form-wrap { max-width: 720px; margin: 0 auto; padding: 88px 20px; display: flex; flex-direction: column; gap: 32px; }
.form-head { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.form-head__eyebrow { max-width: 420px; line-height: 1.6; }
.form-head p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 560px; text-wrap: pretty; }

.card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 20px 48px rgba(9,31,91,.08); overflow: hidden; scroll-margin-top: 16px;
}

.quiz__top { padding: 20px 24px 0; display: flex; flex-direction: column; gap: 14px; }
.quiz__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.quiz__count { font-size: 13px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.btn-back {
  appearance: none; border: 1px solid var(--line); background: #FFFFFF; cursor: pointer; height: 40px;
  padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 6px; transition: border-color 140ms;
}
.btn-back:hover { border-color: var(--navy); }
.btn-back[hidden] { display: none; }
.progress { height: 4px; border-radius: 999px; background: #E8ECF4; overflow: hidden; }
.progress__fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--blue)); transition: width 420ms var(--ease);
}

.quiz__body { padding: 28px 24px 8px; display: flex; flex-direction: column; gap: 22px; margin: 0; }
.quiz__title {
  margin: 0; font-family: var(--serif); font-size: clamp(24px, 4vw, 30px); line-height: 1.2;
  font-weight: 400; letter-spacing: -.01em; text-wrap: balance;
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field__input {
  width: 100%; height: 58px; border: 1px solid #C9D0DE; border-radius: 14px; padding: 0 18px;
  font-family: inherit; font-size: 17px; color: var(--navy); background: #FFFFFF; outline: none;
  transition: border-color 140ms, box-shadow 140ms;
}
.field__input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(124,156,200,.28); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.field__error { margin: 0; font-size: 13px; font-weight: 500; color: var(--error); }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.option {
  appearance: none; cursor: pointer; text-align: left; min-height: 58px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid #DDE2EC; background: #FFFFFF; font-size: 15px; line-height: 1.4; color: var(--navy); font-weight: 400;
  display: flex; align-items: center; gap: 14px; transition: background 140ms, border-color 140ms, transform 140ms;
}
.option:hover { border-color: var(--navy); }
.option:active { transform: scale(.985); }
.option__ring {
  flex: none; width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid #B4BDD0; background: #FFFFFF;
  transition: border 160ms var(--ease);
}
.option__label { flex: 1; text-wrap: pretty; }
.option[aria-checked="true"] { background: #EEF2FA; border-color: var(--navy); font-weight: 600; }
.option[aria-checked="true"] .option__ring { border: 7px solid var(--orange); }

.quiz__foot { padding: 16px 24px 24px; }
.btn-continue {
  appearance: none; border: 0; width: 100%; min-height: 56px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #E8ECF4; color: var(--ink-mute); transition: background 160ms, color 160ms;
}
.btn-continue span { font-size: 18px; }
.btn-continue.is-ready { background: var(--navy); color: #FFFFFF; }
.btn-continue[hidden] { display: none; }
.quiz__hint { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* Done */
.done__stripe { height: 6px; background: linear-gradient(90deg, var(--orange), var(--blue)); }
.done__body { padding: 32px 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.done__body > p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.done__stamp { height: 44px; width: auto; align-self: flex-start; }
.done__title {
  margin: 0; font-family: var(--serif); font-size: clamp(28px, 4.6vw, 38px); line-height: 1.1;
  font-weight: 400; letter-spacing: -.015em; text-wrap: balance;
}
.done__title em { font-style: italic; color: var(--orange); }
.done__body > .done__note { font-size: 13px; line-height: 1.55; text-align: center; }

.recap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.recap__head { padding: 12px 16px; background: var(--gray); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.recap__title { font-size: 13px; font-weight: 600; }
.recap__note { font-size: 12px; color: var(--ink-soft); }
.recap__row {
  appearance: none; width: 100%; border: 0; border-top: 1px solid #EEF0F5; background: #FFFFFF; cursor: pointer;
  text-align: left; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; transition: background 140ms;
}
.recap__row:hover { background: #F7F8FB; }
.recap__label { font-size: 12px; font-weight: 500; color: var(--ink-mute); }
.recap__value { font-size: 14px; line-height: 1.45; color: var(--navy); text-wrap: pretty; }

/* Contacts */
.contacts { background: var(--navy); color: #FFFFFF; }
.contacts__wrap { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.contacts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px 64px; align-items: start;
}
.contacts .h2 em { color: var(--orange); }
.contact-list { display: flex; flex-direction: column; }
.contact-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0;
  border-top: 1px solid rgba(124,156,200,.35); color: #FFFFFF; transition: color 140ms;
}
#mail-link { border-bottom: 1px solid rgba(124,156,200,.35); }

/* Mapa 3D */
.map-card {
  margin-top: 24px; display: flex; align-items: center; gap: 20px; padding: 14px; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(124,156,200,.3); color: #FFFFFF;
  transition: background 200ms, border-color 200ms;
}
.map-card:hover { background: rgba(255,255,255,.08); border-color: var(--orange); color: #FFFFFF; }
.map-card__stage { flex: none; width: 150px; height: 120px; perspective: 520px; position: relative; }
.map-card__plane {
  position: absolute; inset: 8px 4px 0; border-radius: 14px; overflow: hidden; background: #DDE3EE;
  transform: rotateX(48deg) rotateZ(-14deg); transform-origin: 50% 70%; transform-style: preserve-3d;
  box-shadow: 0 30px 30px -12px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.9);
  transition: transform 600ms var(--ease);
}
.map-card:hover .map-card__plane { transform: rotateX(30deg) rotateZ(-6deg) scale(1.04); }
.map-card__frame {
  position: absolute; top: -90px; left: -120px; width: calc(100% + 240px); height: calc(100% + 180px);
  border: 0; pointer-events: none; filter: saturate(.75) contrast(1.05);
}
.map-card__shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(9,31,91,0) 40%, rgba(9,31,91,.35)); }
.map-card__shadow {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 10px; margin: -5px 0 0 -13px; border-radius: 50%;
  background: rgba(9,31,91,.55); filter: blur(2px);
}
.map-card__pin {
  position: absolute; left: 50%; top: 14px; width: 36px; height: 36px; margin-left: -18px;
  background: var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center;
}
.map-card__pin img { width: 18px; height: auto; transform: rotate(45deg); }
.map-card__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.map-card__addr { font-size: 14px; line-height: 1.5; color: #CBD5EA; }
.map-card__cta { font-size: 13px; font-weight: 600; color: var(--orange); }

@media (max-width: 420px) {
  .map-card { flex-direction: column; align-items: stretch; }
  .map-card__stage { width: 100%; height: 150px; }
  .map-card__plane { inset: 12px 30px 0; }
}
.contact-row:hover { color: var(--orange); }
.contact-row__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-row__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.contact-row__value { font-size: 18px; font-weight: 500; }
.contact-row__value--wrap { overflow-wrap: anywhere; }
.contact-row__icon { font-size: 20px; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.footer__copy { font-size: 12px; color: #A9B8D6; }

@media (max-width: 420px) {
  .btn { padding: 0 20px; font-size: 13px; letter-spacing: .04em; gap: 10px; }
  .hero__cta .btn { width: 100%; }
  .pillar__name { font-size: 17px; }
  .marquee__item span { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
