/* Medina & Asociados — landing */
:root {
  --navy: #101b2d;
  --navy-2: #182640;
  --gold: #b8955f;
  --gold-deep: #8b734d;
  --ivory: #f6f2ea;
  --paper: #fbf9f4;
  --ink: #1a2333;
  --muted: #5d6573;
  --line: #d9d0c0;
  --error: #9b2c2c;
  --ok: #2f6b4a;
  --serif: "Cormorant Garamond", "Libre Caslon Text", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16,27,45,.88) 0%, rgba(16,27,45,.62) 32%, rgba(16,27,45,.1) 60%, rgba(16,27,45,.2) 100%),
    linear-gradient(180deg, rgba(16,27,45,.2) 0%, rgba(16,27,45,0) 35%, rgba(16,27,45,.55) 100%);
}

.hero__inner {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

/* ---------- Intro ---------- */
.intro { color: var(--ivory); max-width: 520px; text-shadow: 0 1px 14px rgba(16,27,45,.75); }
.intro__logo { width: min(280px, 70vw); margin-left: -6px; }
.rule {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 36px 0 28px;
}
.intro__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.005em;
  margin: 0 0 24px;
}
.intro__lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  margin: 0 0 28px;
  color: rgba(246,242,234,.88);
  max-width: 30ch;
}
.intro__place {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ---------- Card / form ---------- */
.card {
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px);
  border-top: 2px solid var(--gold);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55);
}
.eyebrow {
  margin: 0 0 10px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--gold); }
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 10px;
}
.card__lead { margin: 0 0 26px; color: var(--muted); font-size: .95rem; }

.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.field label span[aria-hidden] { color: var(--gold-deep); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--muted); }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
textarea { resize: vertical; min-height: 104px; }
input::placeholder { color: #a7acb5; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,149,95,.22);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid var(--gold-deep);
  display: grid;
  place-content: center;
}
.check input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform .12s;
  background: var(--navy);
}
.check input:checked::before { transform: scale(1); }
.check.is-invalid { color: var(--error); }
.check a { color: var(--navy); text-underline-offset: 3px; }

.btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  background: var(--navy);
  color: var(--ivory);
  font: inherit;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--navy-2); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn__arrow { color: var(--gold); font-size: 1.1rem; letter-spacing: 0; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .65; cursor: progress; }

.status { margin: 0; min-height: 1.2em; font-size: .9rem; }
.status.is-error { color: var(--error); }
.status.is-ok { color: var(--ok); }

.form.is-sent > :not(.status) { display: none; }
.form.is-sent .status {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--navy);
  padding: 8px 0 4px;
}

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246,242,234,.6);
  border-top: 1px solid rgba(184,149,95,.25);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero::before {
    background: linear-gradient(180deg, rgba(16,27,45,.55) 0%, rgba(16,27,45,.82) 45%, rgba(16,27,45,.96) 100%);
  }
  .hero__bg, .hero__bg img { height: 70%; object-position: 62% 50%; }
  .intro { max-width: none; }
  .intro__logo { width: 210px; }
  .rule { margin: 26px 0 20px; }
}
@media (max-width: 560px) {
  .hero__inner { padding: 32px 16px; }
  .row { grid-template-columns: 1fr; }
  .card { margin: 0 -16px; }
  .foot { padding: 16px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
