/* Contact page layout — scoped to /contacto/ */
.contact-page-content { padding-bottom: clamp(3rem, 7vw, 6rem); }
.contact-hero { min-height: 440px; }
.contact-hero .hero-copy { padding-top: clamp(2.5rem, 4vw, 4.3rem); padding-bottom: clamp(2.5rem, 4vw, 4.3rem); }
.contact-hero h1 { max-width: 680px; font-size: clamp(2.55rem, 4.4vw, 4.15rem); }
.contact-hero .hero-photo { min-height: 390px; }
.contact-intro { grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); align-items: stretch; gap: clamp(1rem, 2.2vw, 1.6rem); padding: clamp(2rem, 4vw, 3.5rem) 0; }
.contact-form, .contact-details { min-width: 0; }
.contact-form { border-top: 5px solid var(--brand-yellow); }
.contact-form h2, .contact-details h2 { margin: .55rem 0 .7rem; font-size: clamp(1.7rem, 2.5vw, 2.25rem); }
.contact-form > p, .contact-details > p { color: var(--muted); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1rem; }
.contact-fields > label { min-width: 0; margin: .7rem 0; }
.contact-fields label > span[aria-hidden="true"] { color: #7c1700; }
.contact-fields .optional-label { color: var(--muted); font-size: .78rem; font-weight: 500; }
.contact-fields .field-wide { grid-column: 1 / -1; }
.contact-fields input:focus, .contact-fields select:focus, .contact-fields textarea:focus, .response-channel input:focus-visible, .form-review-check input:focus-visible { outline: 3px solid #786f00; outline-offset: 2px; }
.form-privacy-note { margin: .65rem 0 1rem; padding: .85rem 1rem; border-left: 4px solid #897f00; border-radius: 6px; background: #fbf9dd; color: #36351e; font-size: .84rem; line-height: 1.5; }
.form-privacy-note-strong { margin: 1rem 0 1.25rem; padding: 1rem 1.2rem; }
.form-review-check { display: flex !important; align-items: center; gap: .7rem; margin: 1rem 0 !important; color: #30302d; font-size: .84rem !important; line-height: 1.5; }
.form-review-check input { width: 20px; height: 20px; min-height: 20px; flex: none; margin: 0; align-self: center; accent-color: #5e5900; }
.contact-form > .button, .pqrsf-form > .button { min-width: 190px; }
.form-note { min-height: 1.5em; }
.contact-details { border-top: 5px solid var(--brand-yellow); }
.contact-detail-list { display: grid; gap: .15rem; margin-top: 1.4rem; }
.contact-detail { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--brand-yellow); color: var(--brand-black); font-size: 1.2rem; font-weight: 800; }

.contact-detail h3 { margin: .05rem 0 .25rem; font-size: 1rem; letter-spacing: -.01em; }
.contact-detail p { margin: 0 0 .25rem; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.contact-detail a { font-size: .9rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-channels { grid-template-columns: 1fr; align-items: start; padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.contact-channels .section-heading { max-width: 760px; margin: 0 auto 1.8rem; text-align: center; }
.contact-channels .section-heading p { color: var(--muted); }
.contact-channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.contact-channel { display: flex; min-height: 245px; flex-direction: column; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 6px 22px rgb(17 17 17 / 4%); }
.channel-number { color: #706900; font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.contact-channel h3 { margin: .8rem 0 .55rem; font-size: 1.08rem; }
.contact-channel p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.location-section { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.8rem); align-items: stretch; padding: clamp(2.7rem, 5vw, 4.2rem) 0; border-block: 1px solid var(--line); background: transparent; }
.location-copy h2 { margin: .6rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.location-copy p, .location-copy address { color: #4e4e49; }
.location-copy address { margin: 1rem 0 1.4rem; font-style: normal; font-weight: 800; }
.location-copy h3 { margin: 1rem 0 .45rem; font-size: 1rem; letter-spacing: -.01em; }
.location-copy .location-note { font-size: .84rem; }
.map-frame { min-height: 360px; overflow: hidden; border: 1px solid #deded7; border-radius: 12px; background: #e8e8e2; box-shadow: 0 8px 24px rgb(17 17 17 / 8%); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
#pqrsf { scroll-margin-top: 110px; }
.pqrsf-section { margin: clamp(3rem, 7vw, 6rem) calc(-1 * var(--gutter)) 1.25rem; padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); background: #f7f6df; }
.pqrsf-intro { max-width: 850px; margin: 0 auto 1.8rem; text-align: center; }
.pqrsf-intro h2 { margin: .6rem 0 .9rem; font-size: clamp(1.8rem, 3vw, 2.75rem); }
.pqrsf-intro p { max-width: 780px; margin-inline: auto; color: #50504a; }
.pqrsf-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.pqrsf-types article { min-height: 165px; padding: 1.1rem; border: 1px solid rgb(17 17 17 / 9%); border-radius: 12px; background: #fff; }
.pqrsf-types article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--brand-yellow); font-weight: 800; }
.pqrsf-types h3 { margin: .75rem 0 .35rem; font-size: 1rem; }
.pqrsf-types p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.pqrsf-form-wrap { max-width: 980px; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2.3rem); border: 1px solid #e2e1d3; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgb(17 17 17 / 7%); }
.pqrsf-form-heading { margin-bottom: 1rem; }
.pqrsf-form-heading h3 { margin: .55rem 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.pqrsf-form-heading p { color: var(--muted); }
.pqrsf-form { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.response-channel { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; min-width: 0; margin: .7rem 0; padding: .75rem 0; border: 0; border-top: 1px solid var(--line); }
.response-channel legend { padding: 0 .5rem 0 0; font-size: .86rem; font-weight: 700; }
.response-channel label { display: inline-flex; align-items: center; gap: .45rem; margin: .25rem 0; font-weight: 500; }
.response-channel input { width: 18px; height: 18px; accent-color: #5e5900; }
.contact-faq { grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); padding: clamp(3rem, 6vw, 5rem) 0; }
.contact-faq .section-heading h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

@media (max-width: 1020px) {
  .contact-intro { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); }
  .contact-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pqrsf-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-faq { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .contact-hero { min-height: 0; }
  .contact-hero .hero-copy { min-height: 0; padding: 2rem 18px 2.2rem; }
  .contact-hero h1 { max-width: 620px; font-size: clamp(2.15rem, 8vw, 3rem); }
  .contact-hero .hero-photo { min-height: 240px; }
  .contact-intro { grid-template-columns: 1fr; padding: 1.5rem 0 2rem; }
  .contact-form, .contact-details { padding: 1.2rem; }
  .contact-channel-grid { grid-template-columns: 1fr; }
  .contact-channel { min-height: 0; text-align: center; align-items: center; }
  .contact-channel p { max-width: 34rem; }
  .location-section { grid-template-columns: 1fr; padding-block: 2.45rem; }
  .location-copy { text-align: left; }
  .location-copy address { text-align: left; }
  .location-copy .button { margin-inline: 0; }
  .map-frame, .map-frame iframe { min-height: 300px; }
  .pqrsf-section { margin-inline: -18px; padding: 2.6rem 18px; }
  .pqrsf-intro { text-align: center; }
  .pqrsf-types { grid-template-columns: 1fr; }
  .pqrsf-types article { min-height: 0; text-align: center; }
  .pqrsf-types article > span { margin-inline: auto; }
  .pqrsf-form-wrap { padding: 1.2rem; }
  .pqrsf-form-heading { text-align: center; }
  .contact-faq { grid-template-columns: 1fr; }
  .contact-faq .section-heading { text-align: center; }
  .contact-faq .section-heading { margin-inline: auto; text-align: center; }
  .contact-faq .section-content { width: 100%; text-align: left; }
}
@media (max-width: 520px) {
  .contact-fields { grid-template-columns: 1fr; }
  .contact-fields .field-wide { grid-column: auto; }
  .response-channel { display: grid; gap: .2rem; }
  .contact-form > .button, .pqrsf-form > .button { width: 100%; }
  .contact-detail { grid-template-columns: 38px minmax(0, 1fr); gap: .65rem; text-align: left; }
  .contact-icon { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-page-content *, .contact-page-content *::before, .contact-page-content *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 760px) { .contact-detail { text-align: left; } }
/* Overrides for high-specificity shared interior-page section rules. */
.hero.inner-hero.contact-hero { min-height: 440px; }
.hero.inner-hero.contact-hero .hero-copy,
.hero.inner-hero.contact-hero .hero-photo { min-height: 440px; }
.hero.inner-hero + .page-content > .contact-channels.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: 0;
  background: transparent;
}
.hero.inner-hero + .page-content > .contact-channels.section .section-heading,
.hero.inner-hero + .page-content > .contact-channels.section .contact-channel-grid {
  grid-column: 1;
  grid-row: auto;
}
.hero.inner-hero + .page-content > .contact-channels.section .section-heading { max-width: 760px; }
@media (max-width: 760px) {
  .hero.inner-hero.contact-hero { min-height: 0; }
  .hero.inner-hero.contact-hero .hero-copy { min-height: 0; }
  .hero.inner-hero.contact-hero .hero-photo { min-height: 240px; }
}
.field-error { display: block; margin-top: .3rem; color: #8b1a0a; font-size: .78rem; font-weight: 700; line-height: 1.4; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #8b1a0a !important; box-shadow: 0 0 0 2px rgb(139 26 10 / 12%); }

/* Contact updates: reuse the shared Nosotros hero and Home FAQ system. */
.contact-about-hero { scroll-margin-top: 90px; }
.contact-about-hero .about-photo-tag { left: -32px; bottom: 30px; }
.contact-about-hero .about-hero-stamp { right: -16px; }
.contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-fields .field-wide { grid-column: 1 / -1; }
.contact-icon, .contact-icon-wa { background: var(--brand-yellow); color: var(--brand-black); }
.contact-form > .button { min-width: 250px; }
.location-section { border-radius: 0; box-shadow: none; }
.location-copy { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.contact-faq.home-faq { display: block; width: auto; margin-inline: 0; padding-block: clamp(1.25rem, 2vw, 1.75rem); background: transparent; }
.contact-faq.home-faq .section-heading { max-width: 780px; margin: 0 auto 2rem; text-align: center; }
.contact-faq.home-faq .section-content { width: 100%; }
.contact-faq.home-faq .section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
@media (max-width: 760px) {
  .contact-about-hero { padding: 1rem 0 0; }
  .contact-about-hero .about-hero-copy { text-align: center; }
  .contact-about-hero .about-hero-copy .breadcrumbs { justify-content: center; }
  .contact-about-hero .about-photo-tag { left: 10px; bottom: 12px; max-width: calc(100% - 20px); }
  .contact-about-hero .about-hero-stamp { right: 8px; }
  .contact-fields { grid-template-columns: 1fr; }
  .contact-fields .field-wide { grid-column: auto; }
  .contact-form > .button { width: 100%; }
  .location-section { padding-block: 2.45rem; }
}

.contact-form-actions { display:flex; align-items:stretch; flex-direction:column; gap:.2rem; margin-top:.7rem; }
.contact-form-actions .form-review-check { flex:1; margin:.4rem 0 !important; }
.contact-form-actions .button { flex:none; width:100%; }
.pqrsf-submit { margin-top:.7rem; min-width:220px; }
#pqrsf-form-status:not([hidden]) { margin:.65rem 0 0; }
@media (max-width:760px) { .contact-form-actions .button, .pqrsf-submit { width:100%; } }

/* Mobile alignment for contact cards while keeping fields easy to fill. */
@media (max-width: 700px) {
  .contact-form, .contact-details, .contact-channel,
  .location-copy, .pqrsf-types article,
  .pqrsf-form-heading, .contact-faq .section-content { text-align: center; }
  .contact-details > p, .contact-form > p,
  .location-copy address { text-align: center; }
  .contact-detail { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .contact-icon { margin-inline: auto; }
  .contact-channel .text-link,
  .location-copy .button { justify-content: center; margin-inline: auto; }
  .contact-fields label, .contact-fields input,
  .contact-fields select, .contact-fields textarea,
  .response-channel, .form-review-check,
  .form-privacy-note, .field-error { text-align: left; }
  .contact-form-actions, .pqrsf-form { min-width: 0; }
  .pqrsf-submit { display: flex; max-width: 100%; margin-inline: auto; }
  .form-note, #pqrsf-form-status:not([hidden]) { text-align: center; }
}
