/* =========================================================
   Hero Campaign – Banner + Form overlay
   ========================================================= */

.butn-bottom-15 {
  padding-bottom: 15px !important;
}
.service-block .details {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-block .butn-bottom-15 {
  margin-top: auto;
}

/* Hero: texto encima del banner */
#hero-campaign .hero-text-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(18px, 4vw, 64px);
  padding-top: clamp(36px, 10vh, 120px);
  z-index: 3;
}
#hero-campaign .hero-text {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}
#hero-campaign .hero-text-line {
  line-height: 1.02;
  margin: 0;
}
#hero-campaign .hero-text-line--1 {
  font-size: clamp(26px, 3.6vw, 56px);
}
#hero-campaign .hero-text-line--2 {
  font-size: clamp(24px, 3.4vw, 52px);
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2a3a;
  padding: 0.1em 0.25em;
  margin: 0.18em 0;
}
#hero-campaign .hero-text-line--3 {
  font-size: clamp(28px, 4.2vw, 66px);
}

/* Texto del hero en una sola linea (solo movil) */
#hero-campaign .hero-text-line--mobile {
  display: none;
}

/* Hero: formulario overlay (derecha) – DESKTOP */
#hero-campaign .hero-form-overlay {
  position: absolute;
  right: clamp(14px, 3vw, 48px);
  left: auto;
  top: clamp(96px, 16vh, 170px);
  width: min(520px, calc(100% - 2 * clamp(14px, 3vw, 48px)));
  z-index: 4;
  pointer-events: auto;
}
#hero-campaign .hero-form-card {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}
#hero-campaign .hero-form-title {
  color: #fff;
  font-weight: 800;
  margin: 0 0 6px 0;
  font-size: 22px;
  line-height: 1.1;
}
#hero-campaign .hero-form-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.35;
}
#hero-campaign .hero-form-card .row {
  margin-left: -6px;
  margin-right: -6px;
}
#hero-campaign .hero-form-card [class*="col-"] {
  padding-left: 6px;
  padding-right: 6px;
}
/* Espaciado entre campos */
#hero-campaign .hero-form-card .row > [class*="col-"] {
  margin-bottom: 10px;
}
#hero-campaign .hero-form-card .row > [class*="col-"]:last-child {
  margin-bottom: 0;
}

/* Inputs y textareas */
#hero-campaign .hero-form-card input,
#hero-campaign .hero-form-card textarea,
#hero-campaign .hero-form-card select {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  height: 42px;
  font-size: 16px;
  line-height: 42px;
  padding: 0 14px;
  box-sizing: border-box;
}
#hero-campaign .hero-form-card textarea {
  border-radius: 16px;
  height: auto;
  min-height: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.25;
}
#hero-campaign .hero-form-card input::placeholder,
#hero-campaign .hero-form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

/* Select nativo estilizado (sin plugin rd-mailform) */
#hero-campaign .hero-form-card select.form-control {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: 999px !important;
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 38px 0 14px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.85)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 18px 18px !important;
  cursor: pointer;
}
/* Opciones dentro del select (fondo oscuro cuando se abre el dropdown nativo) */
#hero-campaign .hero-form-card select.form-control option {
  background: #1a1a1a;
  color: #fff;
  padding: 8px 14px;
}

#hero-campaign .hero-form-card .butn {
  width: 100%;
}

/* reCAPTCHA escalado para caber en el formulario del hero */
#hero-campaign #recaptcha-contacto-hero {
  transform: scale(0.86);
  transform-origin: 0 0;
}

/* =========================================================
   MOBILE / TABLET (<=992px)
   El formulario sale del overlay y fluye debajo de la imagen
   para que el texto del hero sea visible sobre el banner.
   ========================================================= */
@media (max-width: 992px) {
  /* La seccion deja de ser solo la imagen; el form va abajo */
  #hero-campaign {
    display: flex;
    flex-direction: column;
  }
  #hero-campaign > picture {
    position: relative;
    flex-shrink: 0;
  }

  /* Texto del hero: mas grande en movil, posicion arriba-izquierda */
  #hero-campaign .hero-text-overlay {
    padding-top: clamp(80px, 12vh, 120px);
  }
  #hero-campaign .hero-text-line--1 {
    font-size: clamp(36px, 10vw, 60px);
  }
  #hero-campaign .hero-text-line--2 {
    font-size: clamp(34px, 9.5vw, 56px);
  }
  #hero-campaign .hero-text-line--3 {
    font-size: clamp(38px, 11vw, 68px);
  }

  /* Formulario: ya no es absolute, fluye debajo de la imagen */
  #hero-campaign .hero-form-overlay {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: 4;
  }
  #hero-campaign .hero-form-card {
    border-radius: 0;
    padding: 16px 14px 14px;
    border: none;
    background: rgba(0, 0, 0, 0.75);
  }
  #hero-campaign .hero-form-subtitle {
    margin-bottom: 10px;
  }
  #hero-campaign #recaptcha-contacto-hero {
    transform: scale(0.78);
    transform-origin: center top;
  }
}

/* Pantallas muy pequenas: ajustes finos */
@media (max-width: 480px) {
  #hero-campaign .hero-form-card {
    padding: 12px 10px 10px;
  }
  #hero-campaign .hero-form-card .row > [class*="col-"] {
    margin-bottom: 8px;
  }
  #hero-campaign .hero-form-card input,
  #hero-campaign .hero-form-card textarea,
  #hero-campaign .hero-form-card select {
    height: 38px;
    line-height: 38px;
    font-size: 14px;
  }
  #hero-campaign .hero-form-card select.form-control {
    height: 38px !important;
    line-height: 38px !important;
    font-size: 14px !important;
  }
  #hero-campaign .hero-form-card textarea {
    height: auto;
    min-height: 60px;
  }
  #hero-campaign #recaptcha-contacto-hero {
    transform: scale(0.72);
    transform-origin: center top;
  }
}
