/* ==========================================================
   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; }

/* ==========================================================
   Página "Ahorre en su suministro eléctrico" (ahorro.html / savings.html)
   ========================================================== */
.be-cf input[type=file] { padding: 9px 11px; background: #f7fafd; }
.be-ah-title { font-family: var(--heading-font, "Poppins", sans-serif); font-size: 32px; font-weight: 600; color: var(--heading-color, #2c4964); margin: 0 0 12px; }
.be-ah-title span { color: var(--accent-color, #1977cc); }
.be-ah-lead { font-size: 17px; color: #5d6b78; margin: 0; }
.be-step { background: #fff; border-radius: 12px; padding: 26px 22px; text-align: center; height: 100%; box-shadow: 0 8px 24px rgba(20, 45, 75, .08); }
.be-step i { font-size: 38px; color: var(--accent-color, #1977cc); display: block; margin-bottom: 10px; }
.be-step h4 { font-family: var(--heading-font, "Poppins", sans-serif); font-size: 18px; font-weight: 600; color: var(--heading-color, #2c4964); margin: 0 0 8px; }
.be-step p { font-size: 15px; color: #5d6b78; margin: 0; }
.be-ah-banner { text-align: center; }
.be-ah-banner h2 { font-family: var(--heading-font, "Poppins", sans-serif); font-size: 28px; font-weight: 600; color: var(--heading-color, #2c4964); margin: 0 0 10px; }
.be-ah-banner h2 span { color: var(--accent-color, #1977cc); }
.be-ah-banner p { font-size: 16.5px; color: #5d6b78; margin: 0 0 22px; }
.be-ah-banner .be-ah-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.be-ah-banner .be-ah-btn { display: inline-block; padding: 12px 26px; border-radius: 50px; font-weight: 500; text-decoration: none; background: var(--accent-color, #1977cc); color: #fff; border: 2px solid var(--accent-color, #1977cc); }
.be-ah-banner .be-ah-btn.alt { background: transparent; color: var(--accent-color, #1977cc); }
.be-ah-banner .be-ah-btn:hover { opacity: .88; }
@media (max-width: 575px) { .be-ah-title { font-size: 24px; } .be-ah-banner h2 { font-size: 22px; } }

/* Separaciones: el mapa (iframe) no deja franja blanca debajo y el bloque azul de inicio queda pegado a la sección siguiente */
.map iframe { display: block; width: 100%; max-width: 100%; }
.aboutt.section { padding-bottom: 0; background-color: #f1f7fc; }

/* Página de ahorros: los dos formularios con el mismo tamaño y alineación */
#ahorro-formularios .container > .row > [class*="col-"] { display: flex; }
#ahorro-formularios .be-cf { width: 100%; display: flex; flex-direction: column; }
#ahorro-formularios .be-cf-fields { display: flex; flex-direction: column; flex: 1 1 auto; }
#ahorro-formularios .be-cf-sub { min-height: 46px; }
#ahorro-formularios .be-cf-privacy { margin-top: auto; padding-top: 14px; }
#ahorro-formularios .be-cf input[type=file] { height: 46px; padding: 8px 11px; font-size: 14px; }
@media (max-width: 991px) { #ahorro-formularios .be-cf-sub { min-height: 0; } }

/* Insignia: sección EcoVadis (mismo diseño que PRIME) */
.ecovadis-badge { background: #fff; }
.ecovadis-badge .ev-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 6px; }
.ecovadis-badge .ev-tile { background: color-mix(in srgb, var(--accent-color, #1977cc), #fff 92%); border-radius: 10px; padding: 14px 8px; text-align: center; }
.ecovadis-badge .ev-num { display: block; font-family: var(--heading-font, "Poppins", sans-serif); font-size: 26px; font-weight: 700; color: var(--accent-color, #1977cc); line-height: 1.1; }
.ecovadis-badge .ev-num small { font-size: 13px; font-weight: 500; color: #6b7a89; }
.ecovadis-badge .ev-lbl { display: block; font-size: 12.5px; color: var(--heading-color, #2c4964); margin-top: 6px; line-height: 1.25; }
.ecovadis-badge .ev-hl-title { font-size: 17px; font-weight: 700; margin: 22px 0 8px; color: var(--heading-color, #2c4964); }
.ecovadis-badge .ev-hl { padding-left: 20px; margin: 0; }
.ecovadis-badge .ev-hl li { margin-bottom: 6px; }
@media (max-width: 767px) { .ecovadis-badge .ev-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Insignias: la de EcoVadis llena todo su lienzo, la de PRIME deja margen; se ajusta para que los círculos midan igual */
.prime-badge.ecovadis-badge .badge-btn img { width: 319px; }
#ecovadisModal img { width: 142px; }
