
/* ══════════════════════════════════════════
   WHATSAPP FAB — STRIPPER A DOMICILIO
   Botón flotante de contacto WhatsApp/Llamada
   ══════════════════════════════════════════ */
:root {
  --sad-primary: #C2185B;
  --sad-primary-dark: #880E4F;
  --sad-primary-light: #F8BBD0;
  --sad-accent: #e91e63;
  --sad-wa: #25D366;
  --sad-wa-dark: #128C7E;
}

/* ── FAB button ─────────────────────────── */
#sad-fab {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (min-width: 768px) {
  #sad-fab {
    bottom: 24px;
    right: 24px;
  }
}

/* Action buttons (call + wa) shown when open */
#sad-fab-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
#sad-fab.open #sad-fab-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sad-fab-action {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
}
.sad-fab-action-label {
  background: #fff;
  color: #1a1a2e;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  white-space: nowrap;
  letter-spacing: .01em;
}
.sad-fab-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.sad-fab-action:hover .sad-fab-action-icon {
  transform: scale(1.1);
}
.sad-fab-call .sad-fab-action-icon {
  background: linear-gradient(135deg, #ea580c, #f97316);
}
.sad-fab-wa .sad-fab-action-icon {
  background: linear-gradient(135deg, var(--sad-wa-dark), var(--sad-wa));
}

/* Main toggle button */
#sad-fab-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sad-primary-dark), var(--sad-primary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(194,24,91,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  flex-shrink: 0;
}
#sad-fab-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(194,24,91,.5);
}
#sad-fab-toggle svg {
  transition: transform .25s ease, opacity .25s ease;
  position: absolute;
}
#sad-fab-toggle .icon-open { opacity: 1; transform: rotate(0deg) scale(1); }
#sad-fab-toggle .icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
#sad-fab.open #sad-fab-toggle .icon-open { opacity: 0; transform: rotate(90deg) scale(.6); }
#sad-fab.open #sad-fab-toggle .icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Pulse ring animation */
#sad-fab-toggle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--sad-primary);
  animation: sadFabPulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes sadFabPulse {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* ── OVERLAY / MODAL ─────────────────────── */
#sad-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 710;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
#sad-overlay.on { display: flex; }

/* ── CARD ─────────────────────────────────── */
#sad-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: sadCardIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sadCardIn {
  from { transform: scale(.88) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── HEADER ──────────────────────────────── */
#sad-header {
  background: linear-gradient(135deg, var(--sad-primary-dark) 0%, var(--sad-primary) 60%, var(--sad-accent) 100%);
  border-radius: 20px 20px 0 0;
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}
#sad-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
#sad-header-text { flex: 1; }
#sad-header-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 2px;
  letter-spacing: -.01em;
}
#sad-header-sub {
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  margin: 0;
}
#sad-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
#sad-close:hover { background: rgba(255,255,255,.35); }

/* ── BODY / FORM ─────────────────────────── */
#sad-body { padding: 20px 20px 24px; }

.sad-field {
  margin-bottom: 14px;
}
.sad-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.sad-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: .92rem;
  color: #1a1a2e;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  outline: none;
}
.sad-input:focus {
  border-color: var(--sad-primary);
  box-shadow: 0 0 0 3px rgba(194,24,91,.1);
  background: #fff;
}
.sad-input.error { border-color: #DC2626; }

/* Date display */
#sad-date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color .15s;
}
#sad-date-wrap:hover { border-color: var(--sad-primary); }
#sad-date-display {
  flex: 1;
  font-size: .92rem;
  color: #9ca3af;
}
#sad-date-display.set { color: #1a1a2e; font-weight: 500; }
#sad-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Services checkboxes */
#sad-services-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
@media (max-width: 360px) {
  #sad-services-wrap { grid-template-columns: 1fr; }
}
.sad-svc {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  font-size: .8rem;
  color: #374151;
  font-weight: 500;
}
.sad-svc:hover { border-color: var(--sad-primary-light); background: #FDF2F8; }
.sad-chk {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
  background: #fff;
}
.sad-svc input[type=checkbox] {
  display: none;
}
.sad-svc input:checked ~ .sad-chk {
  background: var(--sad-primary);
  border-color: var(--sad-primary);
}
.sad-svc input:checked ~ .sad-chk::after {
  content: '';
  width: 8px;
  height: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateY(-1px);
}
.sad-svc input:checked + .sad-chk {
  background: var(--sad-primary);
  border-color: var(--sad-primary);
}
.sad-svc:has(input:checked) {
  border-color: var(--sad-primary-light);
  background: #FDF2F8;
  color: var(--sad-primary-dark);
  font-weight: 600;
}

/* Note */
#sad-note {
  resize: vertical;
  min-height: 70px;
  max-height: 140px;
}

/* Submit button */
#sad-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--sad-wa-dark), var(--sad-wa));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  letter-spacing: .01em;
  margin-top: 18px;
}
#sad-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
}
#sad-submit:active { transform: translateY(0); }
#sad-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Success message */
#sad-success {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  text-align: center;
  gap: 12px;
}
#sad-success.on { display: flex; }
#sad-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sad-wa-dark), var(--sad-wa));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
#sad-success h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}
#sad-success p {
  font-size: .85rem;
  color: #6b7280;
  margin: 0;
}

/* Google Places autocomplete */
.pac-container {
  border-radius: 10px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.15) !important;
  border: 1.5px solid #e5e7eb !important;
  margin-top: 4px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  z-index: 720 !important;
}
.pac-item {
  padding: 9px 14px !important;
  font-size: .875rem !important;
  cursor: pointer !important;
  border-top: 1px solid #f3f4f6 !important;
  color: #374151 !important;
}
.pac-item:hover, .pac-item-selected {
  background: #FDF2F8 !important;
}
.pac-item-query { color: var(--sad-primary-dark) !important; font-weight: 600 !important; }
.pac-matched { color: var(--sad-primary) !important; font-weight: 700 !important; }

/* Divider */
.sad-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 16px 0;
}

/* Trust badges */
#sad-trust {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.sad-trust-badge {
  font-size: .68rem;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 3px 9px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ajuste móvil para no tapar footer */
@media (max-width: 768px) {
  #sad-fab {
    bottom: 100px !important;
    right: 12px !important;
  }
}

/* ========================================
   FIX CRÍTICO: Posición botón WhatsApp móvil
   ======================================== */

/* Desktop: posición normal */
#sad-fab {
  bottom: 90px;
  right: 16px;
}

/* Tablet y móvil: mucho más arriba para no tapar footer */
@media (max-width: 768px) {
  #sad-fab {
    bottom: 80px !important;
    right: 16px !important;
    z-index: 700 !important;
  }
  
  /* Footer debe estar siempre encima */
  .bottom-nav {
    z-index: 900 !important;
  }
}

/* Móvil pequeño: aún más arriba */
@media (max-width: 640px) {
  #sad-fab {
    bottom: 90px !important;
    right: 12px !important;
  }
}

