/* ==========================================================================
   New Era — formulario de consulta dentro de la portada (Home y soluciones)
   Texto a un lado, formulario al otro; se ve sin pulsar ningún botón.
   ========================================================================== */

/* ---------- Tarjeta del formulario ---------- */
.ne-hform {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 460px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(15, 23, 42, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
  color: var(--ne-white);
  font-family: var(--ne-font);
  text-align: left;
}
.ne-hform__title { margin: 0 0 4px; font-family: var(--ne-font); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--ne-white); }
.ne-hform__subtitle { margin: 0 0 20px; font-size: 14px; line-height: 21px; color: var(--ne-sky); }
.ne-hform__form { margin: 0; }
.ne-hform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }

.ne-hform .ne-consult__field { margin: 0 0 12px; }
.ne-hform .ne-consult__field label { margin-bottom: 4px; font-size: 13px; font-weight: 500; line-height: 19px; color: rgba(255, 255, 255, .92); }
.ne-hform .ne-consult__field input,
.ne-hform .ne-consult__field textarea {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--ne-white);
  font: 14px/21px var(--ne-font);
}
.ne-hform .ne-consult__field textarea { min-height: 84px; padding: 12px 16px; resize: vertical; }
.ne-hform .ne-consult__field ::placeholder { color: rgba(255, 255, 255, .6); }
.ne-hform .ne-consult__field input:focus,
.ne-hform .ne-consult__field textarea:focus { border-color: var(--ne-sky); background: rgba(255, 255, 255, .12); outline: 2px solid rgba(129, 210, 244, .55); outline-offset: 0; }

.ne-hform .ne-consult__terms { margin: 4px 0 0; font-size: 12.5px; line-height: 18px; color: rgba(255, 255, 255, .9); }
.ne-hform .ne-consult__terms input { accent-color: var(--ne-blue); }
.ne-hform .ne-consult__terms a { color: var(--ne-sky); }
.ne-hform .ne-consult__error { margin: 12px 0 0; }

.ne-hform .ne-consult__submit { display: block; width: 100%; min-height: 52px; margin-top: 16px; background: var(--ne-blue-dark); font-size: 15px; }
.ne-hform .ne-consult__submit:hover { background: #18688f; }
.ne-hform .ne-consult__submit:focus-visible { outline: 2px solid var(--ne-sky); outline-offset: 2px; }
.ne-hform .ne-consult__submit:disabled { background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .6); }
.ne-hform.is-sending .ne-consult__submit { opacity: .7; cursor: progress; }
.ne-hform__call { margin: 14px 0 0; font-size: 13px; line-height: 19px; text-align: center; color: rgba(255, 255, 255, .85); }
.ne-hform__call a { color: var(--ne-white); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Con el formulario a la vista, los botones que abrían la ventana sobran en la portada */
.ne-has-form .ne-hero__actions,
.ne-has-form .ne-pbanner__actions,
.ne-has-form .ne-hbanner__actions { display: none; }

/* ---------- Home: carrusel con la tarjeta a la derecha ---------- */
.ne-hero.ne-has-form { min-height: 780px; }
.ne-hero.ne-has-form .ne-hero__text { max-width: 500px; }
.ne-hform--home {
  position: absolute;
  top: calc((100% + var(--ne-header-h)) / 2);
  right: var(--ne-gutter);
  z-index: 3;
  transform: translateY(-50%);
}

/* ---------- Soluciones: banner con foto de fondo ---------- */
.ne-hbanner.ne-has-form,
.ne-pbanner.ne-has-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  column-gap: 56px;
  min-height: 620px;
  padding-top: 72px;
  padding-bottom: 72px;
  padding-left: var(--ne-pad);
  padding-right: var(--ne-pad);
  overflow: hidden;
  background: var(--ne-teal);
}
.ne-hbanner.ne-has-form::after,
.ne-pbanner.ne-has-form::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(13, 61, 74, .94) 0%, rgba(13, 61, 74, .74) 50%, rgba(13, 61, 74, .42) 100%);
  pointer-events: none;
}
.ne-hbanner.ne-has-form .ne-hform,
.ne-pbanner.ne-has-form .ne-hform { justify-self: end; z-index: 2; }

/* Banner blanco con imagen al lado (Home Automation, Smart Lighting…): la foto pasa al fondo */
.ne-pbanner.ne-has-form .ne-pbanner__img { position: absolute !important; inset: 0; z-index: 0; margin: 0 !important; }
.ne-pbanner.ne-has-form .ne-pbanner__img img { width: 100%; height: 100% !important; border-radius: 0; object-fit: cover; }
.ne-pbanner.ne-has-form .ne-pbanner__text { position: relative; z-index: 2; max-width: 640px; padding: 0; }
.ne-pbanner.ne-has-form .ne-pbanner__eyebrow { color: var(--ne-sky); }
.ne-pbanner.ne-has-form .ne-pbanner__title { color: var(--ne-white); }
.ne-pbanner.ne-has-form .ne-pbanner__title mark { background: none !important; color: var(--ne-sky) !important; -webkit-text-fill-color: currentColor; }
.ne-pbanner.ne-has-form .ne-pbanner__desc { color: rgba(255, 255, 255, .92); }

/* Banner con foto de fondo (Network, Structured Wiring, Commercial, Audio & Theater) */
.ne-hbanner.ne-has-form .ne-hbanner__text { max-width: 640px; }
.ne-hbanner__desc { margin: 16px 0 0 !important; font-size: 18px; line-height: 30px; color: rgba(255, 255, 255, .92); }

/* ---------- Tablet y móvil: el texto arriba y el formulario debajo ---------- */
@media (max-width: 1099px) {
  .ne-hero.ne-has-form { min-height: 0; padding-top: 640px; }
  .ne-hero.ne-has-form .ne-hero__slide { bottom: auto; height: 640px; }
  .ne-hero.ne-has-form .ne-hero__nav { top: 540px; bottom: auto; }
  .ne-hform--home { position: relative; top: auto; right: auto; width: calc(100% - 32px); max-width: 560px; margin: 0 auto 40px; transform: none; }
}

@media (max-width: 991px) {
  .ne-hbanner.ne-has-form,
  .ne-pbanner.ne-has-form { grid-template-columns: minmax(0, 1fr); row-gap: 32px; min-height: 0; padding-top: 56px; padding-bottom: 48px; }
  .ne-hbanner.ne-has-form .ne-hform,
  .ne-pbanner.ne-has-form .ne-hform { justify-self: stretch; max-width: 560px; }
  .ne-hbanner.ne-has-form::after,
  .ne-pbanner.ne-has-form::after { background: linear-gradient(180deg, rgba(13, 61, 74, .9) 0%, rgba(13, 61, 74, .78) 100%); }
}

@media (max-width: 767px) {
  .ne-hero.ne-has-form { padding-top: 600px; }
  .ne-hero.ne-has-form .ne-hero__slide { height: 600px; }
  .ne-hero.ne-has-form .ne-hero__nav { top: 500px; }
  .ne-hform { padding: 24px 20px; border-radius: 20px; }
  .ne-hform__row { grid-template-columns: minmax(0, 1fr); }
  .ne-hbanner__desc { font-size: 16px; line-height: 24px; }
}
