/* =======================================================================
 *  Sergio Velosa — Estilos del modal de captación de leads por WhatsApp
 *  Color de marca: #FFBA00
 * ======================================================================= */

:root {
  --sv-brand: #FFBA00;
  --sv-brand-dark: #e0a300;
  --sv-ink: #181818;
  --sv-muted: #6b6b6b;
  --sv-line: #e6e6e6;
  --sv-wa: #25d366;
}

#sv-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 20, 20, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .18s ease;
}

#sv-lead-overlay.sv-show {
  display: flex;
  opacity: 1;
}

body.sv-lead-noscroll {
  overflow: hidden;
}

.sv-lead-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  color: var(--sv-ink);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: 26px 24px 20px;
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

#sv-lead-overlay.sv-show .sv-lead-box {
  transform: translateY(0) scale(1);
}

.sv-lead-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--sv-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.sv-lead-close:hover {
  background: #f2f2f2;
  color: var(--sv-ink);
}

.sv-lead-header {
  margin: 0 0 14px;
  padding-right: 24px;
}

.sv-lead-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sv-ink);
}

.sv-lead-sub {
  margin: 0;
  font-size: 14px;
  color: var(--sv-muted);
  line-height: 1.45;
}

.sv-lead-form {
  display: block;
}

.sv-lead-label {
  display: block;
  margin: 12px 0 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-ink);
}

.sv-lead-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--sv-ink);
  background: #fff;
  border: 1.5px solid var(--sv-line);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}

.sv-lead-input:focus {
  border-color: var(--sv-brand);
  box-shadow: 0 0 0 3px rgba(255, 186, 0, .22);
}

select.sv-lead-input {
  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='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.sv-lead-textarea {
  resize: vertical;
  min-height: 64px;
}

/* Honeypot: fuera de vista pero "rellenable" por bots */
.sv-lead-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sv-lead-error {
  margin: 10px 0 0;
  min-height: 0;
  font-size: 13px;
  color: #c0392b;
  font-weight: 600;
}
.sv-lead-error:empty {
  margin: 0;
}

.sv-lead-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--sv-ink);
  background: var(--sv-brand);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.sv-lead-submit:hover {
  background: var(--sv-brand-dark);
}
.sv-lead-submit:active {
  transform: translateY(1px);
}
.sv-lead-submit:disabled {
  opacity: .7;
  cursor: default;
}

.sv-lead-wa-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23181818'><path d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2zm5.8 14.14c-.24.68-1.42 1.31-1.95 1.35-.5.05-.5.4-3.15-.66-2.66-1.06-4.3-3.78-4.43-3.96-.13-.18-1.05-1.4-1.05-2.67 0-1.27.66-1.9.9-2.16.24-.26.53-.32.7-.32.18 0 .35 0 .5.01.16.01.38-.06.59.45.24.58.8 2 .87 2.14.07.14.12.31.02.5-.09.18-.14.29-.27.45-.14.16-.29.36-.41.48-.14.14-.28.29-.12.57.16.28.71 1.17 1.53 1.9 1.05.94 1.94 1.23 2.22 1.37.28.14.44.12.6-.07.18-.21.69-.8.87-1.08.18-.28.36-.23.6-.14.24.09 1.55.73 1.81.86.27.14.44.21.51.32.07.11.07.63-.17 1.31z'/></svg>");
}

.sv-lead-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--sv-muted);
  text-align: center;
}

@media (max-width: 480px) {
  .sv-lead-box {
    padding: 22px 18px 16px;
    border-radius: 14px;
  }
  .sv-lead-title { font-size: 19px; }
}
