/* ==========================================================
   Blue Energy – Formulario de contacto
   ========================================================== */
.be-cf {
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  border-top: 4px solid var(--accent-color, #1977cc);
  box-shadow: 0 20px 50px rgba(20, 45, 75, .18);
  padding: 30px 30px 26px;
  position: relative;
}
.be-cf h3 {
  font-family: var(--heading-font, "Poppins", sans-serif);
  font-size: 24px; font-weight: 600; color: var(--heading-color, #2c4964);
  margin: 0 0 6px;
}
.be-cf .be-cf-sub { color: #6b7a89; font-size: 15px; margin: 0 0 20px; }
.be-cf label { display: block; font-size: 13px; font-weight: 500; color: #44515e; margin-bottom: 5px; }
.be-cf label .req { color: #c0392b; }
.be-cf input, .be-cf select, .be-cf textarea {
  width: 100%; border: 1px solid #d5e1ec; border-radius: 8px; background: #fff;
  padding: 11px 13px; font-size: 15px; color: #33414e; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.be-cf textarea { min-height: 96px; resize: vertical; }
.be-cf input:focus, .be-cf select:focus, .be-cf textarea:focus {
  outline: none; border-color: var(--accent-color, #1977cc); box-shadow: 0 0 0 3px rgba(25, 119, 204, .15);
}
.be-cf .is-invalid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12) !important; }
.be-cf .be-cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.be-cf .be-cf-privacy { font-size: 12.5px; color: #6b7a89; margin: 14px 0 16px; }
.be-cf .be-cf-btn {
  width: 100%; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent-color, #1977cc); color: #fff;
  font-family: var(--heading-font, "Poppins", sans-serif); font-size: 16px; letter-spacing: .5px;
  padding: 13px 20px; transition: background .2s ease, transform .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.be-cf .be-cf-btn:hover { background: color-mix(in srgb, var(--accent-color, #1977cc), #000 15%); }
.be-cf .be-cf-btn:disabled { opacity: .7; cursor: default; }
.be-cf .be-cf-spin {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: be-cf-spin .8s linear infinite; display: none;
}
.be-cf.is-sending .be-cf-spin { display: inline-block; }
.be-cf .be-cf-status { font-size: 14px; margin-top: 12px; display: none; border-radius: 8px; padding: 10px 12px; }
.be-cf .be-cf-status.error { display: block; background: #fdecea; color: #a93226; }

/* Mensaje de éxito */
.be-cf .be-cf-done { display: none; text-align: center; padding: 30px 6px 18px; }
.be-cf.is-done .be-cf-fields { display: none; }
.be-cf.is-done .be-cf-done { display: block; animation: be-cf-in .4s ease; }
.be-cf .be-cf-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: #e8f6ee; color: #1e8e4e; display: flex; align-items: center; justify-content: center;
}
.be-cf .be-cf-check svg { width: 32px; height: 32px; }
.be-cf .be-cf-done h4 { font-family: var(--heading-font, "Poppins", sans-serif); color: var(--heading-color, #2c4964); font-size: 21px; margin: 0 0 8px; }
.be-cf .be-cf-done p { color: #5d6b78; font-size: 15px; margin: 0; }

@keyframes be-cf-spin { to { transform: rotate(360deg); } }
@keyframes be-cf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 575px) {
  .be-cf { padding: 24px 18px 20px; }
  .be-cf h3 { font-size: 21px; }
}

#formulario-contacto, #contact-form { scroll-margin-top: 110px; }
