/* ============================================================================
 * v15.227 — prospecto-capture.css
 * Estilos del FAB de captura + modal. Especificidad alta para no chocar
 * con CSS global del proyecto.
 * ============================================================================ */

/* ============== FAB (Floating Action Button) ============== */
button.fcs-prospecto-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99000;
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 24px rgba(22,163,74,0.45), 0 2px 6px rgba(0,0,0,0.25);
  transition: all 180ms;
  -webkit-tap-highlight-color: transparent;
}
button.fcs-prospecto-fab * { color: #ffffff !important; }
button.fcs-prospecto-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(22,163,74,0.55), 0 4px 10px rgba(0,0,0,0.30);
  filter: brightness(1.07);
}
button.fcs-prospecto-fab:active { transform: translateY(0) scale(0.98); }
button.fcs-prospecto-fab .fcs-fab-icon { font-size: 18px; line-height: 1; }
@media (max-width: 480px) {
  button.fcs-prospecto-fab {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 13px;
  }
  button.fcs-prospecto-fab .fcs-fab-label { display: inline; }
}
/* En el CRM hay un PWA install banner u otros widgets — bajar un poco si es necesario */
body.fcs-pwa-installing button.fcs-prospecto-fab { bottom: 90px; }

/* ============== Modal overlay ============== */
.fcs-pc-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100050;
  animation: fcsPcIn 180ms ease-out;
  padding: 0;
}
@keyframes fcsPcIn { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) {
  .fcs-pc-overlay { align-items: center; padding: 24px; }
}

.fcs-pc-overlay .fcs-pc-card {
  background: #0e131c !important;
  color: #ffffff !important;
  width: 100%;
  max-width: 560px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  animation: fcsPcCardIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.08);
}
@keyframes fcsPcCardIn { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 640px) {
  .fcs-pc-overlay .fcs-pc-card { border-radius: 18px; }
}

.fcs-pc-overlay .fcs-pc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(22,163,74,0.20), rgba(5,150,105,0.10));
}
.fcs-pc-overlay .fcs-pc-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff !important;
}
.fcs-pc-overlay .fcs-pc-close {
  background: rgba(255,255,255,0.10) !important;
  border: none;
  color: #ffffff !important;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.fcs-pc-overlay .fcs-pc-close:hover { background: rgba(255,255,255,0.22) !important; }

.fcs-pc-overlay .fcs-pc-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
  color: #ffffff !important;
}

.fcs-pc-overlay .fcs-pc-hint {
  background: rgba(22,163,74,0.10);
  border: 1px solid rgba(22,163,74,0.30);
  color: #ffffff !important;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.fcs-pc-overlay .fcs-pc-hint b { color: #6ee7b7 !important; }
.fcs-pc-overlay .fcs-pc-hint-small {
  font-size: 11px;
  color: rgba(255,255,255,0.55) !important;
  margin-top: 5px;
  line-height: 1.4;
}

.fcs-pc-overlay .fcs-pc-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85) !important;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fcs-pc-overlay .fcs-pc-section-label:first-of-type { margin-top: 0; }
.fcs-pc-overlay .fcs-pc-req {
  font-size: 10px;
  font-weight: 600;
  color: #fca5a5 !important;
  text-transform: none;
  letter-spacing: 0;
}

.fcs-pc-overlay .fcs-pc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .fcs-pc-overlay .fcs-pc-grid-2 { grid-template-columns: 1fr; }
}

.fcs-pc-overlay .fcs-pc-field {
  display: flex;
  flex-direction: column;
}
.fcs-pc-overlay .fcs-pc-field label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.65) !important;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fcs-pc-overlay .fcs-pc-input {
  width: 100%;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  color: #ffffff !important;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.fcs-pc-overlay .fcs-pc-input::placeholder { color: rgba(255,255,255,0.40) !important; }
.fcs-pc-overlay .fcs-pc-input:focus {
  outline: none;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(110,231,183,0.20);
}
.fcs-pc-overlay .fcs-pc-input::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }
.fcs-pc-overlay select.fcs-pc-input { cursor: pointer; }
.fcs-pc-overlay select.fcs-pc-input option { background: #0e131c; color: #ffffff; }
.fcs-pc-overlay textarea.fcs-pc-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.fcs-pc-overlay .fcs-pc-status {
  min-height: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 0;
  text-align: center;
  color: rgba(255,255,255,0.65) !important;
}
.fcs-pc-overlay .fcs-pc-status-ok { color: #6ee7b7 !important; }
.fcs-pc-overlay .fcs-pc-status-err { color: #fca5a5 !important; }
.fcs-pc-overlay .fcs-pc-status-loading { color: #93c5fd !important; }

.fcs-pc-overlay .fcs-pc-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.fcs-pc-overlay .fcs-pc-btn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 150ms;
  color: #ffffff !important;
  font-family: inherit;
}
.fcs-pc-overlay .fcs-pc-btn:disabled { opacity: 0.6; cursor: wait; }
.fcs-pc-overlay .fcs-pc-btn-secondary {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.24);
}
.fcs-pc-overlay .fcs-pc-btn-secondary,
.fcs-pc-overlay .fcs-pc-btn-secondary * { color: #ffffff !important; }
.fcs-pc-overlay .fcs-pc-btn-secondary:hover { background: rgba(255,255,255,0.22) !important; }
.fcs-pc-overlay .fcs-pc-btn-primary {
  background: linear-gradient(135deg, #16a34a, #059669) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(22,163,74,0.40);
}
.fcs-pc-overlay .fcs-pc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22,163,74,0.55);
  filter: brightness(1.08);
  color: #ffffff !important;
}

/* ============== Toast de éxito ============== */
.fcs-pc-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #16a34a, #059669);
  color: #ffffff !important;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(110,231,183,0.4);
  opacity: 0;
  transition: opacity 220ms, transform 220ms;
  pointer-events: none;
  max-width: 90vw;
}
.fcs-pc-toast b { color: #ffffff !important; }
.fcs-pc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================================
 * v15.228 — Botón "Nuevo prospecto" inline (en list-header del CRM)
 * ============================================================================ */
button.fcs-btn-prospecto-inline {
  background: linear-gradient(135deg, #16a34a, #059669) !important;
  color: #ffffff !important;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 150ms;
  box-shadow: 0 2px 6px rgba(22,163,74,0.30);
  margin-left: auto;  /* empuja a la derecha junto al botón exportar */
}
button.fcs-btn-prospecto-inline * { color: #ffffff !important; }
button.fcs-btn-prospecto-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,163,74,0.45);
  filter: brightness(1.08);
}
button.fcs-btn-prospecto-inline:active { transform: translateY(0); }
@media (max-width: 480px) {
  button.fcs-btn-prospecto-inline { padding: 9px 12px; font-size: 12px; }
}

/* ════════ PLATINUM: captura de prospecto — oscuro→claro (append-only, look) ════════
   El texto blanco de los botones verdes/FAB se respeta (tienen su propio color). */
.fcs-pc-overlay .fcs-pc-card { background:#ffffff !important; color:#0f172a !important; border:1px solid #e8edf2 !important; box-shadow:0 -10px 40px rgba(15,23,42,.18) !important; }
@media (min-width:600px){ .fcs-pc-overlay .fcs-pc-card { box-shadow:0 24px 60px rgba(15,23,42,.20) !important; } }
.fcs-pc-overlay .fcs-pc-header { border-bottom:1px solid #eef2f7 !important; background:linear-gradient(135deg, rgba(16,185,129,.12), rgba(5,150,105,.06)) !important; }
.fcs-pc-overlay .fcs-pc-title { color:#0f172a !important; font-family:"DM Serif Display", Georgia, serif !important; }
.fcs-pc-overlay .fcs-pc-close { background:#f1f5f9 !important; color:#334155 !important; }
.fcs-pc-overlay .fcs-pc-close:hover { background:#e9eef4 !important; }
.fcs-pc-overlay .fcs-pc-hint { color:#166534 !important; }
.fcs-pc-overlay .fcs-pc-hint b { color:#059669 !important; }
.fcs-pc-overlay .fcs-pc-hint-small { color:#64748b !important; }
.fcs-pc-overlay .fcs-pc-section-label { color:#334155 !important; }
.fcs-pc-overlay .fcs-pc-field label { color:#64748b !important; text-transform:uppercase !important; letter-spacing:.4px !important; font-size:10.5px !important; font-weight:700 !important; }
.fcs-pc-overlay .fcs-pc-input, .fcs-pc-overlay textarea.fcs-pc-textarea { background:#ffffff !important; border:1px solid #e2e8f0 !important; color:#0f172a !important; border-radius:10px !important; }
.fcs-pc-overlay .fcs-pc-input::placeholder { color:#94a3b8 !important; }
.fcs-pc-overlay .fcs-pc-input:focus, .fcs-pc-overlay textarea.fcs-pc-textarea:focus { border-color:#059669 !important; box-shadow:0 0 0 3px rgba(16,185,129,.18) !important; }
.fcs-pc-overlay .fcs-pc-input::-webkit-calendar-picker-indicator { filter:none !important; }
.fcs-pc-overlay select.fcs-pc-input option { background:#ffffff !important; color:#0f172a !important; }
.fcs-pc-overlay .fcs-pc-status-ok { color:#059669 !important; }
.fcs-pc-overlay .fcs-pc-status-err { color:#dc2626 !important; }
.fcs-pc-overlay .fcs-pc-status-loading { color:#2563eb !important; }
.fcs-pc-overlay .fcs-pc-btn { border-radius:12px !important; }
.fcs-pc-overlay .fcs-pc-btn-secondary { background:#f1f5f9 !important; border:1px solid #e2e8f0 !important; }
.fcs-pc-overlay .fcs-pc-btn-secondary, .fcs-pc-overlay .fcs-pc-btn-secondary * { color:#334155 !important; }
.fcs-pc-overlay .fcs-pc-btn-secondary:hover { background:#e9eef4 !important; }
.fcs-pc-overlay .fcs-pc-btn-primary { background:linear-gradient(135deg,#10b981,#059669) !important; }
/* ════════ FIN PLATINUM captura ════════ */
