@import url("./colors_and_type.css");

:root {
  --brand: #23366b;          /* primary — navy */
  --brand-deep: #1a2851;
  --brand-soft: #e7ebf3;
  --brand-paper-ink: #1E1E1E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--pbg-paper); color: var(--brand-paper-ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ─── Top bar ─── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 14px 36px;
  color: var(--pbg-paper);
  transition: color 400ms var(--ease-out), background 400ms var(--ease-out), border-color 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.bar.is-light { color: var(--brand-paper-ink); background: rgba(255,255,255,0.92); backdrop-filter: blur(18px) saturate(1.05); border-bottom-color: var(--pbg-line); }
.bar__brand { display: flex; align-items: center; gap: 16px; }
.bar__brand-logo { height: 34px; width: auto; transition: filter 300ms var(--ease-out); }
.bar.is-light .bar__brand-logo { filter: none; }
.bar:not(.is-light) .bar__brand-logo { filter: brightness(0) invert(1); }
.bar__brand-byline { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; padding-left: 16px; border-left: 1px solid currentColor; }
.bar__meta { justify-self: center; display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.95; }
.bar__meta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2400ms ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
.bar__cta {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  padding: 12px 20px;
  background: var(--brand); color: #ffffff; border: 1px solid var(--brand);
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.bar__cta:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

/* ─── Hero ─── */
.hero { position: relative; min-height: 78vh; overflow: hidden; color: var(--pbg-paper); }
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center 70%; transform: scale(1.05); animation: heroIn 1800ms var(--ease-out) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(35,54,107,0.55) 0%, rgba(35,54,107,0.18) 26%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.55) 100%);
}
.hero__inner {
  position: relative; z-index: 2; min-height: 78vh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 110px 48px 56px;
  max-width: 1500px; margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.95;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pbg-paper); animation: pulse 2400ms ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

.hero__center {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 36px;
  padding: 28px 0 64px;
}
.hero__logo {
  width: clamp(320px, 68vw, 980px);
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 200; font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0;
  max-width: 760px;
}
.hero__tagline .accent {
  font-family: var(--font-sans); font-style: normal; font-weight: 500;
  text-transform: uppercase; letter-spacing: -0.01em;
  display: inline-block;
}

.hero__sub { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.3); }
.hero__loc { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; line-height: 1.7; opacity: 0.95; }
.hero__loc b { font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--pbg-paper); color: var(--brand);
  border: 0;
  padding: 18px 26px;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.hero__cta:hover { background: var(--brand); color: #ffffff; }
.hero__cta .arrow { transition: transform 220ms var(--ease-out); }
.hero__cta:hover .arrow { transform: translateY(2px); }

/* ─── Form section (immediately after hero) ─── */
.form-section {
  background: var(--pbg-paper);
  padding: 96px 48px 120px;
  position: relative;
}
.form-section__inner {
  max-width: 1500px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 96px; align-items: start;
}
.form-section__lead { position: sticky; top: 96px; }
.form-section__eyebrow { display: flex; align-items: baseline; gap: 14px; }
.form-section__eyebrow .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--brand); font-weight: 500; }
.form-section__eyebrow .lab { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-paper-ink); opacity: 0.55; }
.form-section__title {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(48px, 5.4vw, 80px); line-height: 0.96;
  letter-spacing: -0.025em; text-transform: uppercase;
  margin: 22px 0 28px; text-wrap: balance;
  color: var(--brand-paper-ink);
}
.form-section__title em {
  font-family: var(--font-display); font-weight: 200; font-style: italic;
  text-transform: lowercase; letter-spacing: -0.025em;
  color: var(--brand);
}
.form-section__copy { font-family: var(--font-sans); font-weight: 350; font-size: 17px; line-height: 1.7; max-width: 460px; color: var(--brand-paper-ink); opacity: 0.85; margin: 0 0 32px; }
.form-section__list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.form-section__list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; font-size: 14.5px; line-height: 1.5; font-family: var(--font-sans); color: var(--brand-paper-ink); }
.form-section__list li .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--brand); font-weight: 500; padding-top: 2px; }
.form-section__seal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--pbg-line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-paper-ink); opacity: 0.55;
}

/* ─── Form card ─── */
.form-card {
  background: var(--brand);
  color: #ffffff;
  padding: 48px;
  display: flex; flex-direction: column; gap: 26px;
  box-shadow: 0 18px 50px -20px rgba(35, 54, 107, 0.4);
  position: relative;
}
.form-card::before {
  content: ""; position: absolute; top: -12px; left: -12px; right: 12px; bottom: 12px;
  border: 1px solid var(--brand); z-index: -1; pointer-events: none;
}
.form-card__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.25); margin-bottom: 4px; }
.form-card__head h3 { font-family: var(--font-sans); font-weight: 500; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0; color: #ffffff; }
.form-card__head .step { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); font-weight: 500;
}
.field__label .req { color: rgba(255,255,255,0.5); margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%;
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  padding: 12px 0; font-size: 17px; outline: none; border-radius: 0;
  transition: border-color 200ms var(--ease-out), padding 200ms var(--ease-out);
  color: #ffffff;
}
.field input::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus { border-bottom-color: #ffffff; border-bottom-width: 2px; padding-bottom: 11px; }
/* avoid autofill darkening */
.field input:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  transition: background-color 9999s ease-in-out 0s;
}
.field--phone .field__row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: end; }
.field--phone .field__hint { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.08em; }

/* Radio chips (cómo te enteraste) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  transition: all 180ms var(--ease-out);
  border-radius: 0;
}
.chip:hover { border-color: #ffffff; background: rgba(255,255,255,0.06); }
.chip.is-on {
  background: #ffffff; color: var(--brand); border-color: #ffffff;
}
.chip .dot { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; display: inline-block; transition: all 180ms var(--ease-out); }
.chip.is-on .dot { background: var(--brand); border-color: var(--brand); }

/* Yes / no toggle */
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn__option {
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  color: #ffffff;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  text-align: left;
  border-radius: 0;
}
.yn__option .lab { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.yn__option .mark { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; opacity: 0.6; }
.yn__option:hover { border-color: #ffffff; background: rgba(255,255,255,0.06); }
.yn__option.is-on { background: #ffffff; color: var(--brand); border-color: #ffffff; }
.yn__option.is-on .mark { color: var(--brand); opacity: 0.65; }

.field--other input {
  margin-top: 4px;
}

/* Submit row */
.submit-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 12px;
  flex-wrap: wrap;
}
.submit-row__legal { font-size: 11.5px; color: rgba(255,255,255,0.65); max-width: 320px; line-height: 1.55; font-family: var(--font-sans); }
.submit {
  appearance: none; border: 0;
  background: #ffffff; color: var(--brand);
  padding: 22px 32px;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 18px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.submit:hover:not(:disabled) { background: var(--brand-deep); color: #ffffff; }
.submit:active:not(:disabled) { transform: translateY(1px); }
.submit:disabled { opacity: 0.5; cursor: not-allowed; }
.submit .arrow { display: inline-block; transition: transform 220ms var(--ease-out); }
.submit:hover:not(:disabled) .arrow { transform: translateX(6px); }

/* Success state */
.success {
  padding: 12px 0;
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
  animation: fadeUp 600ms var(--ease-out) both;
  color: #ffffff;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.success__mark { width: 48px; height: 48px; border: 1px solid #ffffff; display: grid; place-items: center; color: #ffffff; }
.success__mark svg { width: 22px; height: 22px; }
.success__title { font-family: var(--font-sans); font-weight: 500; font-size: 36px; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1; margin: 0; color: #ffffff; }
.success__title em { font-family: var(--font-display); font-weight: 200; font-style: italic; text-transform: lowercase; letter-spacing: -0.02em; }
.success__copy { font-size: 16px; line-height: 1.7; max-width: 460px; color: rgba(255,255,255,0.85); margin: 0; }
.success__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ─── Concepto (kept short, below the form) ─── */
.concept-section { padding: 120px 48px; max-width: 1500px; margin: 0 auto; }
.concept { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.concept__left .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--brand); font-weight: 500; }
.concept__left .lab { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-paper-ink); opacity: 0.55; margin-left: 14px; }
.concept__lead {
  font-family: var(--font-display); font-weight: 200; font-style: italic;
  font-size: clamp(40px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -0.015em;
  margin: 28px 0 0;
  color: var(--brand-paper-ink);
}
.concept__lead .accent { font-family: var(--font-sans); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em; color: var(--brand); }
.concept__copy { font-family: var(--font-sans); font-weight: 350; font-size: 17px; line-height: 1.75; max-width: 560px; }
.concept__copy p { margin: 0 0 22px; }
.concept__pill-row {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.concept__pill {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--brand); color: var(--brand);
  background: var(--brand-soft);
}

/* ─── Footer ─── */
.foot {
  padding: 56px 48px 32px;
  background: var(--brand);
  color: #ffffff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
}
.foot__brand { display: flex; align-items: center; gap: 18px; }
.foot__brand img { height: 52px; opacity: 0.95; }
.foot__brand .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.65); line-height: 1.6; }
.foot__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); text-align: right; line-height: 1.85; }
.foot__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.22); margin-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); }

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .form-section__inner { grid-template-columns: 1fr; gap: 56px; }
  .form-section__lead { position: static; }
  .concept { grid-template-columns: 1fr; gap: 48px; }
  .hero__inner { padding: 100px 32px 48px; }
}
@media (max-width: 640px) {
  .form-section, .concept-section, .hero__inner { padding-left: 24px; padding-right: 24px; }
  .bar { padding: 12px 20px; }
  .bar__meta, .bar__brand-byline { display: none; }
  .form-card { padding: 28px; }
  .form-card::before { display: none; }
  .hero__sub { flex-direction: column; align-items: flex-start; gap: 24px; }
  .yn { grid-template-columns: 1fr; }
  .chips { gap: 8px; }
  .chip { padding: 11px 14px; font-size: 11px; }
  .foot { grid-template-columns: 1fr; align-items: start; }
  .foot__meta { text-align: left; }
  .submit { width: 100%; justify-content: space-between; }
  .submit-row__legal { max-width: 100%; }
}
