/* ============================================================
   REPARACIONES Y CONSTRUCCIONES - Modal de leads por WhatsApp
   css/rc-lead-modal.css
   Color de marca: #f7931e
   ============================================================ */

:root {
  --rcm-brand: #f7931e;
  --rcm-brand-dark: #d97a08;
  --rcm-ink: #1f2d30;
  --rcm-wa: #25d366;
}

/* Overlay */
#rcm-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 22, 24, 0.62);
  padding: 16px;
  -webkit-backface-visibility: hidden;
}
#rcm-overlay.rcm-open { display: flex; }

/* Caja del modal */
.rcm-box {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--rcm-ink);
  animation: rcm-pop .18s ease-out;
  max-height: 94vh;
  overflow-y: auto;
}
@keyframes rcm-pop {
  from { transform: translateY(14px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Encabezado */
.rcm-head {
  background: var(--rcm-brand);
  color: #fff;
  padding: 18px 20px 16px;
  position: relative;
}
.rcm-head h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}
.rcm-head p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .95;
  color: #fff;
}
.rcm-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}
.rcm-close:hover { background: rgba(255, 255, 255, 0.34); }

/* Cuerpo / formulario */
.rcm-body { padding: 18px 20px 20px; }
.rcm-field { margin-bottom: 13px; }
.rcm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--rcm-ink);
}
.rcm-field .rcm-req { color: var(--rcm-brand); }

.rcm-input,
.rcm-select,
.rcm-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d7dde0;
  border-radius: 10px;
  font-size: 15px;
  color: var(--rcm-ink);
  background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.rcm-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2d30' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.rcm-textarea { min-height: 74px; resize: vertical; }
.rcm-input:focus,
.rcm-select:focus,
.rcm-textarea:focus {
  outline: none;
  border-color: var(--rcm-brand);
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.15);
}
.rcm-input.rcm-error,
.rcm-select.rcm-error {
  border-color: #e23b3b;
  box-shadow: 0 0 0 3px rgba(226, 59, 59, 0.14);
}

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

/* Boton enviar */
.rcm-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--rcm-wa);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  transition: filter .15s, opacity .15s;
  font-family: inherit;
}
.rcm-submit:hover { filter: brightness(.95); }
.rcm-submit:disabled { opacity: .7; cursor: default; }
.rcm-submit svg { width: 20px; height: 20px; fill: #fff; }

.rcm-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: #6b7679;
  text-align: center;
  line-height: 1.45;
}

/* Spinner */
.rcm-spin {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rcm-rot .7s linear infinite;
  display: none;
}
.rcm-loading .rcm-spin { display: inline-block; }
.rcm-loading .rcm-submit-label,
.rcm-loading .rcm-submit svg { display: none; }
@keyframes rcm-rot { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .rcm-box { max-width: 100%; border-radius: 14px; }
  .rcm-head h3 { font-size: 17px; }
}

/* reCAPTCHA heredado: ya no aplica (los formularios van por WhatsApp) */
.g-recaptcha,
#g-recaptcha-error { display: none !important; }
