/* Modal de contacto reutilizable, compatible con comparador y Próximamente. */
body.ss-contact-open { overflow: hidden; }
.ss-contact-overlay {
  position: fixed; inset: 0; z-index: 99999; padding: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 36, 45, .72); backdrop-filter: blur(6px);
}
.ss-contact-modal {
  width: min(100%, 560px); max-height: min(94vh, 900px); overflow: auto;
  background: #fff; color: #173b42; padding: clamp(20px, 4vw, 32px);
  border-radius: 24px; box-shadow: 0 30px 85px rgba(9, 28, 39, .27);
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
}
.ss-contact-modal [hidden] { display: none !important; }
.ss-contact-modal * { box-sizing: border-box; }
.ss-contact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ss-contact-title { font-size: clamp(23px, 4.5vw, 30px); line-height: 1.16; margin: 0; color: #153b41; letter-spacing: -.035em; }
.ss-contact-close { flex: none; width: 35px; height: 35px; border: 1px solid #d5e6e2; background: #f3f8f6; color: #365b5e; border-radius: 50%; font-size: 23px; cursor: pointer; }
.ss-contact-intro { font-size: 15px; line-height: 1.6; margin: 13px 0 8px; color: #405c63; }
.ss-contact-recipient { font-size: 12px; line-height: 1.55; color: #2d7064; margin: 0 0 18px; }
.ss-contact-form { display: grid; gap: 13px; }
.ss-contact-methods { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ss-contact-legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: #244a4d; }
.ss-contact-option {
  border: 1px solid #d0e3df; border-radius: 13px; padding: 12px 14px; background: #f9fbfa;
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
}
.ss-contact-option:has(input:checked) { background: #eef9f5; border-color: #48a891; box-shadow: inset 0 0 0 1px #48a891; }
.ss-contact-option input { margin-top: 4px; accent-color: #16816d; }
.ss-contact-option strong { display: block; font-size: 14px; color: #183e41; }
.ss-contact-option small { display: block; font-size: 12px; line-height: 1.45; color: #647a7e; margin-top: 3px; }
.ss-contact-fields { display: grid; gap: 11px; background: #f4f9f7; padding: 16px; border-radius: 14px; }
.ss-contact-field { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
.ss-contact-field input, .ss-contact-field select {
  width: 100%; padding: 12px 13px; min-height: 46px; border: 1px solid #bed7d0;
  border-radius: 10px; outline-offset: 3px; background: white; color: #173b42;
  font: inherit; font-weight: 500;
}
.ss-contact-copy { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer; }
.ss-contact-copy input, .ss-contact-consent input { width: 18px; height: 18px; accent-color: #16816d; flex: none; }
.ss-contact-helper { color: #5a7477; font-size: 12px; line-height: 1.6; margin: 0; }
.ss-contact-consent { display: flex; gap: 11px; align-items: flex-start; padding: 14px; background: #edf7f3; border-radius: 12px; font-size: 13px; line-height: 1.55; cursor: pointer; }
.ss-contact-policy, .ss-contact-download { color: #167463; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ss-contact-download { display: inline-block; font-size: 13px; font-weight: 600; }
.ss-contact-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.ss-contact-primary, .ss-contact-secondary {
  border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 700; min-height: 44px;
}
.ss-contact-primary { background: #dc6b4e; color: #fff; }
.ss-contact-primary:hover:not(:disabled) { background: #c9583c; }
.ss-contact-primary:disabled { opacity: .52; cursor: not-allowed; }
.ss-contact-secondary { background: #eef3f2; color: #375961; }
.ss-contact-error { color: #aa3333; font-size: 13px; line-height: 1.4; margin: 0; }
.ss-contact-error:empty { display: none; }
.ss-contact-success { margin: 2px 0; color: #15735f; }
@media (max-width: 520px) {
  .ss-contact-overlay { padding: 8px; align-items: flex-end; }
  .ss-contact-modal { border-radius: 22px 22px 10px 10px; max-height: 95dvh; }
  .ss-contact-actions > button { flex: 1; }
}

/* Acceso rápido a WhatsApp: no evita el formulario previo ni el consentimiento. */
.ss-wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 10000;
  display: grid; place-items: center; width: 60px; height: 60px;
  border: 0; border-radius: 50%; padding: 0; color: #fff;
  background: #22c55e; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 7px 20px rgba(7, 79, 51, .28), 0 0 0 3px rgba(255, 255, 255, .95);
  transition: transform .18s ease, background-color .18s ease;
}
.ss-wa-float svg { display: block; width: 32px; height: 32px; fill: currentColor; }
.ss-wa-float:hover { transform: translateY(-3px); background: #16a34a; }
.ss-wa-float:focus-visible { outline: 3px solid #155e75; outline-offset: 5px; }
body.ss-contact-open .ss-wa-float { visibility: hidden; }
@media (max-width: 520px) {
  .ss-wa-float { width: 56px; height: 56px; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ss-wa-float svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .ss-wa-float { transition: none; } }
