/* ── PuenteFluio ── componente de conversión contextual ───────────────────── */

.pf-wrap {
  background: rgba(11, 57, 55, 0.5);
  border: 1px solid rgba(158, 221, 183, 0.22);
  border-top: 3px solid #9EDDB7;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
  position: relative;
}

.pf-header {
  margin-bottom: 14px;
}

.pf-tag {
  display: inline-block;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(158, 221, 183, 0.12);
  border: 1px solid rgba(158, 221, 183, 0.3);
  color: #9EDDB7;
  padding: 3px 10px;
  border-radius: 100px;
}

.pf-diag {
  font-size: .88rem;
  font-weight: 600;
  color: #edecea;
  line-height: 1.65;
  margin-bottom: 10px;
}

.pf-insight {
  font-size: .82rem;
  color: #9ba3af;
  line-height: 1.7;
  margin-bottom: 24px;
}

.pf-insight strong {
  color: #9EDDB7;
  font-weight: 700;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */

.pf-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .15s;
  line-height: 1;
}

.pf-btn-wa:hover {
  background: #1ebe5b;
  transform: translateY(-1px);
  color: #fff;
}

.pf-btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid rgba(158, 221, 183, 0.32);
  color: #9EDDB7;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s, background .18s, transform .15s;
  line-height: 1;
}

.pf-btn-call:hover {
  border-color: rgba(158, 221, 183, 0.6);
  background: rgba(158, 221, 183, 0.07);
  transform: translateY(-1px);
}

.pf-disclaimer {
  font-size: .67rem;
  color: #4b5563;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
}

/* ── Modal — overlay ─────────────────────────────────────────────────────── */

.pf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.pf-modal-overlay.pf-modal-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal — caja ────────────────────────────────────────────────────────── */

.pf-modal-box {
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 460px;
  transform: translateY(14px);
  transition: transform .22s;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.pf-modal-overlay.pf-modal-visible .pf-modal-box {
  transform: translateY(0);
}

.pf-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #edecea;
  margin-bottom: 6px;
  font-family: inherit;
}

.pf-modal-sub {
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ── Campos del modal ────────────────────────────────────────────────────── */

.pf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.pf-field-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ba3af;
}

.pf-field-inp {
  background: #13151a;
  border: 1.5px solid #252830;
  border-radius: 10px;
  padding: 12px 14px;
  color: #edecea;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}

.pf-field-inp:focus {
  border-color: #9EDDB7;
  box-shadow: 0 0 0 3px rgba(158, 221, 183, 0.1);
}

.pf-field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.pf-field-err {
  font-size: .72rem;
  color: #e05c44;
  min-height: 16px;
  line-height: 1.4;
}

/* ── Acciones del modal ──────────────────────────────────────────────────── */

.pf-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.pf-modal-submit {
  padding: 13px;
  border-radius: 10px;
  background: #0B3937;
  border: 1.5px solid #9EDDB7;
  color: #9EDDB7;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, transform .15s;
}

.pf-modal-submit:hover {
  background: rgba(11, 57, 55, 0.85);
  transform: translateY(-1px);
}

.pf-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pf-modal-cancel {
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: color .18s;
  display: block;
  width: 100%;
  text-align: center;
}

.pf-modal-cancel:hover {
  color: #edecea;
}

/* ── Estado de éxito ─────────────────────────────────────────────────────── */

.pf-modal-success {
  text-align: center;
  padding: 8px 0;
}

.pf-success-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (min-width: 600px) {
  .pf-actions {
    flex-direction: row;
  }

  .pf-btn-wa,
  .pf-btn-call {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .pf-wrap {
    padding: 20px 18px;
  }

  .pf-modal-box {
    padding: 24px 18px;
  }
}
