/* Contacto solamente. Ancho y h1 se heredan del portal. */
.contact-success-open { overflow: hidden; scrollbar-gutter: stable; }
.contact-success-dialog { width: calc(100% - 32px); max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 32px; border: 1px solid #d7d7d7; border-radius: 14px; background: #fff; color: #333; box-shadow: 0 18px 64px rgba(0,0,0,.2); text-align: center; }
.contact-success-dialog:not([open]) { display: none; }
.contact-success-dialog::backdrop { background: rgba(22,22,22,.48); }
.contact-success-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid #dedede; border-radius: 50%; background: #f3f3f3; color: #444; }
.contact-success-dialog h2 { margin: 0 0 12px; color: #333; font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.contact-success-dialog p { margin: 0 0 24px; color: #555; font-size: .95rem; line-height: 1.65; overflow-wrap: anywhere; }
.contact-success-dialog .contact-success-test-note { color: #777; font-size: .78rem; }
.contact-success-accept { min-width: 140px; min-height: 44px; padding: 10px 24px; border: 1px solid #353535; border-radius: 6px; background: #353535; color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background-color .16s ease, box-shadow .16s ease; }
.contact-success-accept:hover { background: #202020; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.contact-success-accept:focus-visible { outline: 2px solid #555; outline-offset: 4px; }
.contact-success-fallback { position: static; margin: 24px auto; }
.contact-success-noscript { margin: 24px; color: #444; }
@media (max-width: 575.98px) { .contact-success-dialog { padding: 28px 24px; } }
@media (prefers-reduced-motion: reduce) { .contact-success-accept { transition: none; } }
.container.contact-page { min-height: 0; }
.contact-page [hidden] { display: none !important; }
.contact-page .contact-intro { margin: 0 0 24px; color: #555; line-height: 1.65; }
.contact-page .contact-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; gap: 24px; }
.contact-page .contact-card,
.contact-page .contact-info { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dedede; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.035); }
.contact-page .contact-info { overflow: hidden; }
.contact-page .contact-panel-heading { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #e3e3e3; border-radius: 10px 10px 0 0; background: #f7f7f7; }
.contact-page .contact-panel-heading > i { width: 20px; color: #666; font-size: 18px; text-align: center; }
.contact-page .contact-section-title { margin: 0; color: #333; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.contact-page .contact-form { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 24px; }
.contact-page .contact-fields-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.contact-page .form-group { min-width: 0; margin-bottom: 22px; }
.contact-page .contact-card label { margin-bottom: 8px; color: #444; font-size: .94rem; font-weight: 600; }
.contact-page .form-control { width: 100%; min-height: 44px; border: 1px solid #d2d2d2; border-radius: 6px; background: #fafafa; color: #333; font-size: .94rem; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.contact-page .contact-message-field { display: flex; flex-direction: column; flex: 1; }
.contact-page textarea.form-control { flex: 1; height: auto; min-height: 220px; padding: 12px; line-height: 1.6; resize: vertical; }
.contact-page .form-control:hover:not(:focus) { border-color: #8b8b8b; background: #fff; box-shadow: 0 0 0 2px rgba(64,64,64,.08); }
.contact-page .form-control:focus { border-color: #777; background: #fff; box-shadow: 0 0 0 3px rgba(64,64,64,.12); }
.contact-page .contact-form-actions { display: flex; justify-content: flex-start; }
.contact-page .contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-page .contact-notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #999; border-left: 4px solid #555; border-radius: 5px; background: #f5f5f5; color: #333; line-height: 1.6; overflow-wrap: anywhere; }
.contact-page .contact-test-note { color: #666; font-size: .8rem; }
.contact-page .contact-security { min-width: 0; margin: 0 0 20px; }
.contact-page .contact-security p { margin: 0 0 10px; color: #666; font-size: .82rem; line-height: 1.5; }
.contact-page #contact-challenge { width: 100%; max-width: 400px; min-height: 65px; margin-bottom: 8px; }
.contact-page #contact-challenge-status { margin-bottom: 0; }
.contact-page .contact-retry { margin-top: 8px; padding: 6px 10px; border: 1px solid #bbb; border-radius: 5px; background: #fff; color: #444; font-size: .82rem; cursor: pointer; }
.contact-page .contact-retry:hover { border-color: #666; background: #f5f5f5; }
.contact-page .contact-submit:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.contact-page .contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border: 1px solid #353535; border-radius: 6px; background: #353535; color: #fff; font-size: .94rem; font-weight: 600; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.contact-page .contact-submit:hover { border-color: #202020; background: #202020; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page .contact-map:focus-visible { outline: 2px solid #555; outline-offset: 3px; }
.contact-page .contact-info-body { padding: 22px 24px; }
.contact-page .contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; color: #555; font-size: .94rem; line-height: 1.65; overflow-wrap: anywhere; }
.contact-page .contact-item:last-child { margin-bottom: 0; }
.contact-page .contact-item > i { flex: 0 0 20px; margin-top: 5px; color: #777; text-align: center; }
.contact-page .contact-item strong { color: #333; font-weight: 600; }
.contact-page .contact-phones { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; margin-top: 4px; }
.contact-page .contact-phones a { color: #555; white-space: nowrap; text-decoration: none; text-underline-offset: 3px; }
.contact-page .contact-phones a:hover { color: #111; text-decoration: underline; }
.contact-page .contact-map-wrapper { position: relative; margin-top: auto; border-top: 1px solid #e3e3e3; background: #f3f3f3; }
.contact-page .contact-map { position: relative; z-index: 0; width: 100%; height: 260px; background: #ededed; font-family: inherit; }
.contact-page .contact-map-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 24px; color: #666; font-size: .9rem; text-align: center; }
/* La cartografía conserva sus colores originales; la interfaz utiliza tonos neutros. */
.contact-page .contact-map .leaflet-control-attribution { max-width: calc(100% - 8px); padding: 2px 5px; background: rgba(255,255,255,.94); color: #444; font-size: 10px; line-height: 1.5; }
.contact-page .contact-map .leaflet-control-attribution a { color: #444; text-decoration: underline; }
.contact-page .contact-map .leaflet-bar { overflow: hidden; border: 1px solid #d2d2d2; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.contact-page .contact-map .leaflet-bar a { display: block; width: 40px; height: 40px; line-height: 40px; background: #fff; color: #333; font-size: 22px; }
.contact-page .contact-map .leaflet-bar a:hover { background: #f1f1f1; }
.contact-page .contact-map .leaflet-bar a.leaflet-disabled { color: #aaa; }
.contact-page .contact-map-center { position: absolute; z-index: 500; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid #d2d2d2; border-radius: 6px; background: #fff; color: #444; box-shadow: 0 2px 6px rgba(0,0,0,.08); cursor: pointer; }
.contact-page .contact-map-center:hover { background: #f1f1f1; color: #111; }
.contact-page .contact-map .contact-pin { border: 0; background: transparent; }
.contact-page .contact-pin svg { display: block; width: 38px; height: 48px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.contact-page .contact-map .contact-map-label { border: 1px solid #d2d2d2; border-radius: 4px; background: #fff; color: #333; box-shadow: 0 1px 5px rgba(0,0,0,.08); font-family: inherit; font-size: 12px; font-weight: 600; }
.contact-page .contact-map-label.leaflet-tooltip-right:before { border-right-color: #d2d2d2; }
.contact-page .contact-map .leaflet-popup-content { margin: 14px 18px; color: #444; font-size: 13px; line-height: 1.6; }
.contact-page .contact-map .leaflet-popup-content strong { display: block; margin-bottom: 4px; color: #333; }
.contact-page .contact-map-status { margin: 0; padding: 12px 24px; background: #f7f7f7; color: #555; font-size: .85rem; line-height: 1.5; }
.contact-page .contact-map-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 24px; border-top: 1px solid #e5e5e5; background: #fafafa; }
.contact-page .contact-map-action > span { color: #666; font-size: .8rem; }
.contact-page .contact-map-action > span i { margin-right: 4px; }
.contact-page .contact-map-action a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid #ccc; border-radius: 5px; background: #fff; color: #444; font-size: .85rem; font-weight: 600; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.contact-page .contact-map-action a:hover { border-color: #999; background: #eee; color: #222; }
@media (max-width: 991.98px) {
  .contact-page .contact-layout { grid-template-columns: minmax(0,1fr); align-items: start; }
  .contact-page .contact-map { height: 280px; }
}
@media (max-width: 575.98px) {
  .contact-page .contact-intro { margin-bottom: 20px; }
  .contact-page .contact-layout { gap: 20px; }
  .contact-page .contact-panel-heading { padding: 16px 20px; }
  .contact-page .contact-form,
  .contact-page .contact-info-body { padding: 20px; }
  .contact-page .contact-fields-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .contact-page textarea.form-control { min-height: 180px; }
  .contact-page .contact-submit { width: 100%; }
  .contact-page .contact-map { height: 260px; }
  .contact-page .contact-map-action { padding: 12px 20px; }
  .contact-page .contact-map-action a { min-height: 44px; }
  .contact-page .contact-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
  .contact-page .contact-map-center { width: 44px; height: 44px; }
  .contact-page .contact-map-status { padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-page .contact-submit,
  .contact-page .form-control,
  .contact-page .contact-map-action a { transition: none; }
}
