.contact-page {
  --contact-ink: #17365c;
  --contact-muted: #526b85;
  --contact-line: #dbe5f0;
  background: #f4f7fb;
  color: var(--contact-ink);
  font: 16px/1.55 'Inter', Arial, sans-serif;
}
.contact-page *, .contact-page *::before, .contact-page *::after { box-sizing: border-box; }
.contact-page a { text-decoration: none; }
.contact-page :is(a, button, input, textarea):focus-visible { outline: 3px solid #ffbf25; outline-offset: 3px; }
.contact-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

.contact-hero { border-bottom: 4px solid #ffbf25; background: radial-gradient(circle at 85% 0%, #24578d 0%, transparent 38%), linear-gradient(112deg, #0d2648, #173c6d); color: #fff; }
.contact-hero__inner { padding: 25px 0 27px; }
.contact-eyebrow, .contact-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.contact-eyebrow { color: #ffce59; }
.contact-hero h1 { margin: 5px 0 0; color: #fff; font: 800 clamp(29px, 3.1vw, 42px)/1.14 'Poppins', 'Inter', Arial, sans-serif; letter-spacing: -.035em; }
.contact-hero p { margin: 8px 0 0; color: #d0dff0; font-size: 15px; }

.contact-content { padding: 28px 0 42px; }
.contact-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); align-items: start; gap: 22px; }
.contact-details, .contact-form-card { min-width: 0; }
.contact-details { padding: 19px 4px 0 0; }
.contact-kicker { margin-bottom: 7px; color: #2367a8; }
.contact-details h2, .contact-form-card h2 { margin: 0; color: var(--contact-ink); font: 800 clamp(24px, 2.55vw, 32px)/1.2 'Poppins', 'Inter', Arial, sans-serif; letter-spacing: -.025em; }
.contact-details > p, .contact-form-card > p { max-width: 580px; margin: 10px 0 20px; color: var(--contact-muted); font-size: 14px; line-height: 1.65; }
.contact-methods { display: grid; gap: 9px; }
.contact-method { display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 11px 13px; border: 1px solid var(--contact-line); border-radius: 11px; background: #fff; color: var(--contact-ink); }
.contact-method:hover { border-color: #a8c3df; background: #fafdff; }
.contact-method__icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #e9f2fc; color: #1e609f; font-size: 18px; }
.contact-method > span:nth-child(2) { display: grid; min-width: 0; }
.contact-method strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
.contact-method small { color: var(--contact-muted); font-size: 12px; }
.contact-method__arrow { margin-left: auto; color: #3776ae; font-weight: 800; }
.contact-locations { display: grid; gap: 9px; margin-top: 26px; }
.contact-locations .contact-kicker { margin: 0 0 2px; }
.contact-locations a { display: flex; align-items: baseline; gap: 7px; color: var(--contact-muted); font-size: 13px; line-height: 1.5; }
.contact-locations a:hover { color: #174a7b; }
.contact-locations strong { color: var(--contact-ink); }
.contact-locations a span { color: #3776ae; }

.contact-form-card { padding: 23px; border: 1px solid var(--contact-line); border-radius: 17px; background: #fff; box-shadow: 0 15px 34px rgba(18, 48, 87, .06); }
.contact-form-card > p { margin-bottom: 18px; }
.contact-form { display: grid; gap: 14px; }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.contact-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.contact-field label { color: var(--contact-ink); font-size: 12px; font-weight: 800; }
.contact-field label > span[aria-hidden] { color: #b3432d; }
.contact-optional { color: #8192a6; font-weight: 500; }
.contact-field :is(input, textarea) { width: 100%; min-height: 41px; margin: 0; padding: 10px 12px; border: 1px solid #ccd9e8; border-radius: 9px; outline: none; background: #f9fbfe; color: var(--contact-ink); font: 500 13px/1.4 'Inter', Arial, sans-serif; }
.contact-field :is(input, textarea):focus { border-color: #4386c4; background: #fff; box-shadow: 0 0 0 3px rgba(48, 124, 192, .12); }
.contact-field textarea { min-height: 92px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #8192a6; }
.contact-field small { min-height: 16px; color: var(--contact-muted); font-size: 11px; }
.contact-dni-row { display: flex; gap: 8px; }
.contact-dni-row input { flex: 1; min-width: 0; }
.contact-dni-row button { flex: 0 0 auto; min-height: 41px; padding: 9px 12px; border: 1px solid #b8cce2; border-radius: 9px; background: #edf4fb; color: #174a7b; font: 800 12px 'Inter', Arial, sans-serif; cursor: pointer; }
.contact-dni-row button:hover { background: #dfeefa; }
.contact-dni-row button:disabled { cursor: wait; opacity: .65; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 2px; padding: 11px 16px; border: 0; border-radius: 9px; background: #ffbf25; color: #102d52; font: 800 13px 'Inter', Arial, sans-serif; cursor: pointer; }
.contact-submit:hover { background: #ffd261; }
.contact-alert { margin-bottom: 17px; padding: 10px 12px; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.contact-alert--error { border: 1px solid #f0c1bb; background: #fff4f2; color: #a93227; }
.contact-alert--success { border: 1px solid #b8dfc7; background: #f1fbf5; color: #24683d; }

@media (max-width: 850px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-details { padding: 0; }
  .contact-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-method { align-items: flex-start; flex-direction: column; }
  .contact-method__arrow { display: none; }
}
@media (max-width: 640px) {
  .contact-shell { width: calc(100% - 28px); }
  .contact-hero__inner { padding: 22px 0; }
  .contact-hero p { font-size: 13px; }
  .contact-content { padding: 20px 0 30px; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-method { align-items: center; flex-direction: row; }
  .contact-form-card { padding: 17px; }
  .contact-form__row { grid-template-columns: 1fr; }
}
