/* ==========================================================================
   PEDCOL - Modal de captura de leads de WhatsApp
   Color de marca: #c30000
   ========================================================================== */

.pdc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.2s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.pdc-modal-overlay.pdc-open {
  display: flex;
  opacity: 1;
}

.pdc-modal {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
  font-family: inherit;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.pdc-modal-overlay.pdc-open .pdc-modal {
  transform: translateY(0) scale(1);
}

.pdc-modal-header {
  background: #c30000;
  color: #ffffff;
  padding: 18px 22px;
  position: relative;
}

.pdc-modal-header h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  color: #ffffff;
  font-weight: 700;
}

.pdc-modal-header p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.pdc-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pdc-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.pdc-modal-body {
  padding: 20px 22px 22px;
  overflow-y: auto;
}

.pdc-field {
  margin-bottom: 14px;
}

.pdc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.pdc-field label .pdc-req {
  color: #c30000;
}

.pdc-field input,
.pdc-field select,
.pdc-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  color: #222;
  background: #fff;
  border: 1.5px solid #d9d9d9;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.pdc-field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.pdc-field textarea {
  resize: vertical;
  min-height: 74px;
}

.pdc-field input:focus,
.pdc-field select:focus,
.pdc-field textarea:focus {
  border-color: #c30000;
  box-shadow: 0 0 0 3px rgba(195, 0, 0, 0.12);
}

.pdc-field.pdc-error input,
.pdc-field.pdc-error select {
  border-color: #c30000;
  box-shadow: 0 0 0 3px rgba(195, 0, 0, 0.14);
}

/* Honeypot: oculto para humanos, visible para bots */
.pdc-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
}

.pdc-submit {
  width: 100%;
  border: none;
  background: #25d366;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  padding: 13px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.15s ease, transform 0.05s ease;
  margin-top: 4px;
}

.pdc-submit:hover {
  background: #1fb457;
}

.pdc-submit:active {
  transform: scale(0.99);
}

.pdc-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.pdc-submit svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  flex-shrink: 0;
}

.pdc-nota {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #777;
  text-align: center;
}

@media (max-width: 480px) {
  .pdc-modal-header h3 { font-size: 17.5px; }
  .pdc-modal-body { padding: 18px 18px 20px; }
}

/* ==========================================================================
   Botón flotante de WhatsApp (abre el modal) + ocultar el widget antiguo
   ========================================================================== */

/* Oculta el widget de chat czmChatSupport (se reemplaza por el modal) */
#example,
.czm-button,
.czm-popup,
.czm-speech-bubble,
.czm-fixed,
[class*="czm-chat-support"],
[class^="czm-"] { display: none !important; }

.pdc-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
  animation: pdc-fab-pulse 2.4s infinite;
}

.pdc-fab:hover { transform: scale(1.07); }

.pdc-fab svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

@keyframes pdc-fab-pulse {
  0%   { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 480px) {
  .pdc-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .pdc-fab svg { width: 30px; height: 30px; }
}
