.contact-section { padding-block: 96px 112px; background: #fff; color: #0B2D5B; }
.contact-grid { display: grid; grid-template-columns: minmax(0,45fr) minmax(0,55fr); gap: 64px; }
.contact-label { font-size: .875rem; font-weight: 600; letter-spacing: .1em; margin: 0 0 24px; }
.contact-details { position: relative; isolation: isolate; }
.contact-details::before, .contact-details::after { content: ''; width: min(100%, 480px); aspect-ratio: 2750 / 1520; pointer-events: none; }
.contact-details::before { display: block; grid-row: 3; position: relative; }
.contact-details::after { position: absolute; left: 0; bottom: 0; }
.contact-details::before { z-index: -2; background: url('../assets/images/contact-context-watermark.webp') no-repeat center / contain; opacity: .20; filter: grayscale(.7) contrast(1.05); }
.contact-details::after { z-index: -1; background: linear-gradient(180deg, #fff 0%, rgb(255 255 255 / .45) 16%, rgb(255 255 255 / 0) 35%), linear-gradient(90deg, rgb(255 255 255 / .04), rgb(255 255 255 / 0) 82%, #fff 100%); }
.contact-information h2 { font-size: var(--text-h2); max-width: 18ch; margin: 0 0 24px; }
.contact-information > p:not(.contact-label) { font-weight: 400; line-height: 1.8; margin: 0 0 20px; max-width: 44ch; }
.contact-details { display: grid; gap: 28px; margin-top: 44px; font-weight: 500; font-size: 1.0625rem; }
.contact-micro-label { color: #5b6c81; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; line-height: 1.7; margin: 0 0 8px !important; }
.contact-location { font-size: 1rem; font-weight: 500; line-height: 1.8; }
.contact-details a { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; text-decoration: none; }
.contact-details p { margin: 0; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-form { display: grid; gap: 24px; padding-left: 40px; border-left: 1px solid #d9e0e8; align-content: start; min-width: 0; }
.contact-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.contact-field { display: grid; align-content: start; gap: 10px; min-width: 0; }
.contact-field label { font-size: .875rem; font-weight: 600; }
.contact-optional { font-size: .75rem; color: #46556a; font-weight: 400; }
.contact-field input:not([aria-invalid='true']):not(:focus):hover, .contact-field select:not([aria-invalid='true']):not(:focus):hover, .contact-field textarea:not([aria-invalid='true']):not(:focus):hover { border-color: #6b819a; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; min-width: 0; min-height: 56px; border: 1px solid #7b8fa6; border-radius: 6px; padding: 14px 18px; background: #f4f7fb; color: #0B2D5B; font: 400 1rem/1.5 var(--font-family); transition: border-color 150ms ease, box-shadow 150ms ease; box-shadow: 0 1px 2px rgb(11 45 91 / 2.5%); }
.contact-field textarea { min-height: 176px; resize: vertical; }
.contact-field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230B2D5B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.contact-field select:required:invalid { color: #46556a; }
.contact-field select option { color: #0B2D5B; background: #fff; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: #0B2D5B; box-shadow: inset 0 0 0 1px #0B2D5B, 0 0 0 4px rgb(11 45 91 / 6%); }
.contact-field [aria-invalid='true'] { border-color: #CE1126; box-shadow: inset 0 0 0 1px #CE1126; }
.contact-field input:focus-visible, .contact-field select:focus-visible, .contact-field textarea:focus-visible { outline: 2px solid #0B2D5B; outline-offset: 3px; box-shadow: inset 0 0 0 1px #0B2D5B, 0 0 0 4px rgb(11 45 91 / 6%); }
.contact-field [aria-invalid='true']:focus { border-color: #CE1126; box-shadow: inset 0 0 0 1px #CE1126, 0 0 0 4px rgb(11 45 91 / 6%); }
@media (forced-colors: active) { .contact-field select { appearance: auto; background-image: none; } }
.contact-consent-row { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 10px; }
.contact-consent input { width: 20px; height: 20px; accent-color: #006847; margin: 5px 0 0; }
.contact-consent label { padding-block: 0; font-size: .8125rem; font-weight: 400; line-height: 1.8; min-height: 44px; }
.contact-consent a { text-underline-offset: 3px; }
.contact-technical-note { color: #46556a; font-size: .75rem; font-weight: 400; line-height: 1.7; margin: 0; }
.contact-consent .contact-technical-note { margin-top: 8px; }
.contact-error { color: #CE1126; font-size: .8125rem; line-height: 1.6; margin: 0; }
.contact-error[hidden], .contact-feedback[hidden] { display: none; }
.contact-consent .contact-error { margin-top: 8px; }
.contact-submit { justify-self: start; min-height: 48px; font-size: .8125rem; padding-inline: 28px; }
.contact-feedback { margin: 0; font-size: .875rem; font-weight: 500; line-height: 1.7; color: #0B2D5B; }
.whatsapp-floating { position: fixed; z-index: 15; right: 24px; bottom: 24px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 50%; background: #006847; color: #fff; text-decoration: none; box-shadow: 0 2px 8px rgb(11 45 91 / 10%); }
.whatsapp-floating svg { width: 23px; height: 23px; }
.whatsapp-floating:hover { background: #00573b; color: #fff; }
.whatsapp-floating:focus-visible { outline: 3px solid #0B2D5B; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.whatsapp-floating[hidden] { display: none; }
@media (min-width: 75rem) { .contact-grid { padding-right: 88px; } .section-rail[data-active='contacto'] ol::after { height: 238px; } }
@media (min-width: 75rem) and (max-height: 480px) { .whatsapp-floating { right: 84px; } }
@media (max-width: 74.999rem) { .contact-section { padding-top: 64px; } .contact-grid { grid-template-columns: 1fr; gap: 48px; } .contact-information h2 { max-width: 24ch; } .contact-information > p:not(.contact-label) { max-width: 64ch; } .contact-form { border-left: 0; padding: 32px 0 0; border-top: 1px solid #d9e0e8; } }
@media (max-width: 47.999rem) { .contact-section { padding-bottom: 96px; } .contact-information h2 { font-size: 1.875rem; } .contact-grid { gap: 40px; } .contact-form-row { grid-template-columns: 1fr; gap: 24px; } .contact-field select { font-size: .9375rem; padding-right: 38px; background-position: right 12px center; } .contact-submit { width: 100%; } .whatsapp-floating { width: 44px; height: 44px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); } .whatsapp-floating svg { width: 21px; height: 21px; } }

/* Progressive styling of the actual native picker, with the existing native fallback. */
@supports (appearance: base-select) {
  .contact-field select, .contact-field select::picker(select) { appearance: base-select; }
  .contact-field select { height: 56px; align-items: center; }
  .contact-field select::picker-icon { display: none; }
  .contact-field select::picker(select) { inline-size: anchor-size(width); max-inline-size: calc(100vw - 32px); border: 1px solid #9eafc2; border-radius: 6px; padding: 6px; background: #fff; color: #0B2D5B; font: 400 1rem/1.5 var(--font-family); box-shadow: none; }
  .contact-field select option { min-height: 44px; padding: 10px 12px; border-radius: 3px; white-space: normal; line-height: 1.5; cursor: pointer; }
  .contact-field select option[value=''] { display: none; }
  .contact-field select option:hover, .contact-field select option:focus-visible { background: #edf2f8; color: #0B2D5B; outline: 1px solid #0B2D5B; outline-offset: -1px; }
  .contact-field select option:checked { font-weight: 600; }
  .contact-field select option::checkmark { color: #0B2D5B; }
}
@media (forced-colors: active) { .contact-field select, .contact-field select::picker(select) { appearance: auto; } }

@media (max-width: 74.999rem) { .contact-details::before { opacity: .16; } }
@media (max-width: 47.999rem) { .contact-details::before { opacity: .12; } .contact-details { margin-top: 36px; gap: 28px; } .contact-micro-label { font-size: .625rem; letter-spacing: .08em; } }

.contact-commercial-scope { margin: 0; font-size: .8125rem; font-weight: 400; color: #46556a; line-height: 1.8; }
.contact-development-label { display: inline-block; font-size: .625rem; font-weight: 600; letter-spacing: .08em; margin-right: 8px; }
html[data-environment='production'] [data-development-only] { display: none; }

/* Anti-abuse controls are technical only and occupy no space while idle. */
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-turnstile { margin: 0; min-height: 0; }

/* Confirmation only: the frozen form layout is unaffected while closed. */
html.contact-confirmation-open { overflow: hidden; }
.contact-confirmation { width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 40px 44px; border: 1px solid #d9e0e8; border-radius: 6px; background: #fff; color: #0B2D5B; box-shadow: 0 12px 40px rgb(11 45 91 / .12); font: 400 1rem/1.7 var(--font-family); text-align: center; overflow-y: auto; }
.contact-confirmation::backdrop { background: rgb(11 45 91 / .25); }
.contact-confirmation[open] { animation: contact-confirmation-enter 140ms ease-out; }
.contact-confirmation-dismiss { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; color: #0B2D5B; font: 400 28px/1 var(--font-family); cursor: pointer; }
.contact-confirmation-dismiss:hover { background: #f4f7fb; }
.contact-confirmation-dismiss:focus-visible { outline: 2px solid #0B2D5B; outline-offset: 2px; }
.contact-confirmation-check { display: block; color: #006847; margin: 0 auto 20px; }
.contact-confirmation h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.35; letter-spacing: .025em; margin: 0; }
.contact-confirmation-signature { width: 96px; height: 4px; display: flex; margin: 18px auto 24px; border: 1px solid #d9e0e8; }
.contact-confirmation-signature span { flex: 1; background: #FFFFFF; }
.contact-confirmation-signature span:first-child { background: #006847; }
.contact-confirmation-signature span:last-child { background: #CE1126; }
.contact-confirmation p { font-size: .9375rem; font-weight: 400; line-height: 1.8; max-width: 38ch; margin: 0 auto 28px; }
.contact-confirmation-close { min-width: 144px; min-height: 44px; }
@keyframes contact-confirmation-enter { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 47.999rem) { .contact-confirmation { padding: 36px 24px 28px; } .contact-confirmation h2 { font-size: 1.25rem; } .contact-confirmation-close { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .contact-confirmation[open] { animation: none; } }
