/* Method, portfolio preview and first-contact invitation. */
#metodo, #proyectos, #servicios, #contacto, #novedades, #consulta { scroll-margin-top: 110px; }
.site-header .nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #f7f5f1; border: 0;
  padding: 11px 17px; border-radius: 3px;
  transition: background .2s ease;
}
.site-header .nav-cta:hover { background: #234c7b; }
.method-visual { padding: 68px 5vw 76px; }
.method-visual .section-heading { margin-bottom: 32px; }
.method-visual .section-heading h2 { font-size: clamp(32px, 3.6vw, 52px); }
.method-cards {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; padding: 0; margin: 0;
}
.method-cards li {
  display: flex; flex-direction: column; position: relative;
  padding: clamp(24px, 2.5vw, 38px); min-height: 295px;
  aspect-ratio: 1.18; background: #eee9df;
  transition: transform .25s ease; border-radius: 3px;
}
.method-cards li:nth-child(2) { background: #e1eaf1; }
.method-cards li:nth-child(3) { background: #e0e9de; }
.method-cards li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -18px; width: 18px;
  height: 1px; background: #92a69c;
}
.method-number { font-size: 17px; font-weight: 600; color: #4c6b56; margin-bottom: auto; padding-bottom: 30px; }
.method-cards h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; margin: 0 0 15px; }
.method-cards p { font-size: 17px; line-height: 1.6; margin: 0; color: #344456; }
.project-preview {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px); align-items: center; background: #e9e9e1;
}
.preview-photo { overflow: hidden; }
.preview-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.preview-copy h2 { font-size: clamp(34px, 4vw, 60px); margin-bottom: 18px; }
.preview-copy p:not(.eyebrow) { color: #435362; max-width: 40ch; line-height: 1.7; }
.preview-copy .preview-location { font-size: 15px; }
.contact.contact-invitation {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 6vw; align-items: center;
  background: #0f1b2a; color: #f7f5f1;
}
.contact-invitation .eyebrow { color: #a7bea9; }
.contact-invitation h2 { color: #f7f5f1; font-size: clamp(36px, 4.2vw, 62px); }
.contact-invitation > div > p:not(.eyebrow) { line-height: 1.7; max-width: 45ch; color: #d2d9dd; }
.contact-invitation .button.primary { display: inline-flex; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.35; min-height: 70px; padding: 18px 28px; gap: 28px; align-items: center; justify-content: center; background: #a7bea9; color: #0f1b2a; border-color: #a7bea9; }
.contact-invitation-actions { min-width: 0; }
.contact-invitation-actions > p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; margin: 30px 0 14px; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 16px 26px; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.contact-direct a { border-bottom: 1px solid #71847d; overflow-wrap: anywhere; }
#project-contact-dialog {
  width: min(660px, calc(100% - 28px)); max-height: calc(100svh - 36px);
  padding: 44px; border: 0; border-radius: 4px; background: #f4f2ed; color: #0f1b2a;
  overflow-y: auto; overscroll-behavior: contain;
}
#project-contact-dialog::backdrop { background: rgba(15,27,42,.65); backdrop-filter: blur(4px); }
#project-contact-dialog h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; max-width: 90%; }
#project-contact-dialog .eyebrow { margin-bottom: 18px; }
#project-contact-intro { color: #53616a; line-height: 1.6; }
.contact-dialog-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: #0f1b2a; font-size: 32px; cursor: pointer; }
.contact-options { border: 0; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.contact-options legend { font-weight: 600; padding: 0 0 14px; }
.contact-options label { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid #bac7c3; background: #fffdf9; cursor: pointer; border-radius: 3px; }
.contact-options label:has(input:checked) { background: #e1e9df; border-color: #5f7d67; }
.contact-options input { accent-color: #2d5c94; width: 18px; height: 18px; flex-shrink: 0; }
.contact-note-label { display: block; font-weight: 600; margin-bottom: 10px; }
.contact-note-label span { color: #53616a; font-weight: 400; }
#project-note { width: 100%; padding: 14px; border: 1px solid #bac7c3; border-radius: 3px; font: inherit; font-size: 16px; color: #0f1b2a; background: #fffdf9; resize: vertical; }
.contact-handoff-note { color: #53616a; font-size: 14px; line-height: 1.6; margin: 16px 0 22px; }
.contact-continue { font: inherit; cursor: pointer; width: 100%; }
#project-contact-dialog :focus-visible { outline: 2px solid #2d5c94; outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .method-cards li:hover { transform: translateY(-3px); }
}
@media (max-width: 850px) {
  .method-cards { grid-template-columns: 1fr; gap: 14px; }
  .method-cards li { aspect-ratio: auto; min-height: 245px; padding: 26px; }
  .method-cards li:not(:last-child)::after { top: auto; bottom: -14px; left: 50%; right: auto; width: 1px; height: 14px; }
  .method-number { padding-bottom: 24px; }
  .method-visual { padding: 54px 6vw 60px; }
  .project-preview, .contact.contact-invitation { grid-template-columns: 1fr; gap: 28px; }
  .project-preview { padding: 54px 6vw; }
  .preview-photo img { aspect-ratio: 3/2; }
  .contact-invitation .button { width: 100%; }
  #project-contact-dialog { padding: 42px 24px 28px; }
}
@media (max-width: 520px) {
  .site-header .nav-cta { padding: 10px 11px; gap: 5px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .method-cards li, .site-header .nav-cta { transition: none; }
}

body:has(#project-contact-dialog[open]) { overflow: hidden; }

/* Shared two-step project inquiry. */
#project-contact-dialog [hidden] { display: none !important; }
#project-contact-dialog .contact-options-compact { gap: 8px; }
#project-contact-dialog .contact-options-compact label { padding: 11px 14px; }
#project-contact-dialog .contact-fields { display: grid; gap: 18px; }
#contact-company-fields { display: grid; gap: 18px; }
.contact-fields > label, #contact-company-fields > label { display: grid; gap: 8px; font-size: 16px; font-weight: 600; }
.contact-fields input:not([type=radio]) { width: 100%; min-height: 48px; border: 1px solid #9aafa5; border-radius: 3px; background: #fffdf9; padding: 12px; font: inherit; font-weight: 400; }
.contact-fields label > span { font-weight: 400; }
.contact-fields .contact-options { margin: 2px 0; }
.contact-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; font-size: 14px; line-height: 1.6; }
.contact-consent input { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; accent-color: #2d5c94; }
.contact-consent a, .privacy-link { text-decoration: underline; text-underline-offset: 3px; }
.contact-form-actions { display: flex; gap: 20px; align-items: center; }
.contact-form-actions .contact-continue { flex: 1; }
.contact-back { border: 0; background: transparent; color: #2d5c94; padding: 12px 0; font: inherit; cursor: pointer; }
.contact-required-note, .privacy-link { font-size: 13px; }
#project-contact-dialog .contact-continue { margin-top: 22px; gap: 18px; }
.contact-form-actions .contact-continue { margin-top: 0 !important; }
.contact-form-status:not(:empty) { margin: 18px 0 0; padding: 14px; border-left: 3px solid #2d5c94; background: #e1eaf1; line-height: 1.6; }
.contact-reference { color: #53616a; font-size: 12px; overflow-wrap: anywhere; }
#contact-success h3 { font-size: 27px; line-height: 1.25; }
#contact-success p { line-height: 1.6; }
#project-contact-dialog button:disabled { opacity: .65; cursor: wait; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 520px) { .contact-form-actions { align-items: stretch; flex-direction: column-reverse; gap: 6px; } .contact-back { text-align: left; } }
