/* Bonjour V2 — Refinamientos aprobados 11-R02 */

/* --------------------------------------------------------------------------
   Tipografía: Helvetica, más aire y menos peso/compresión.
   -------------------------------------------------------------------------- */
:root {
  --bj-font-sans: Helvetica, Arial, sans-serif;
}

body.bonjour-v2,
body.bonjour-v2 button,
body.bonjour-v2 input,
body.bonjour-v2 textarea,
body.bonjour-v2 select {
  font-family: Helvetica, Arial, sans-serif !important;
  letter-spacing: normal;
}

.bonjour-v2 .bj-display {
  font-family: Helvetica, Arial, sans-serif !important;
  font-size: clamp(48px, 4.25vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.bonjour-v2 .bj-h2 {
  font-family: Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.022em;
  font-weight: 400;
}

.bonjour-v2 .bj-lead {
  font-family: Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.012em;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Hover: no desplazamientos y nunca underline.
   -------------------------------------------------------------------------- */
.bonjour-v2 a,
.bonjour-v2 button {
  text-decoration: none !important;
}

.bonjour-v2 a:hover,
.bonjour-v2 a:focus,
.bonjour-v2 button:hover,
.bonjour-v2 button:focus {
  text-decoration: none !important;
  transform: none !important;
}

.bonjour-v2 .bj-btn:hover,
.bonjour-v2 .bj-btn:focus {
  transform: none !important;
}

.bonjour-v2 .bj-btn--primary:hover,
.bonjour-v2 .bj-btn--primary:focus,
.bonjour-v2 .bj-btn--header-primary:hover,
.bonjour-v2 .bj-btn--header-primary:focus {
  background: linear-gradient(180deg, #147fdf 0%, #086dcc 100%);
}

.bonjour-v2 .bj-btn--header-ghost:hover,
.bonjour-v2 .bj-btn--header-ghost:focus {
  background: rgba(255,255,255,.13);
}

.bonjour-v2 .bj-btn--footer:hover,
.bonjour-v2 .bj-btn--footer:focus {
  background: #eaf4ff;
}

.bonjour-v2 .bj-nav-submenu a:hover,
.bonjour-v2 .bj-nav-submenu a:focus {
  transform: none !important;
}

.bonjour-v2 .bj-footer-column a:hover,
.bonjour-v2 .bj-footer-column a:focus {
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Hero: recurso real del /landings, centrado y visual limpio.
   -------------------------------------------------------------------------- */
.bonjour-v2 .bj-hero {
  background:
    linear-gradient(180deg, rgba(5,48,95,.015), rgba(5,48,95,.14)),
    linear-gradient(145deg, #174a86 0%, #0d447f 56%, #06376c 100%);
}

.bonjour-v2 .bj-hero::before {
  background: url("../brand/hero-wave-lines.webp") center center / cover no-repeat !important;
  opacity: .15;
}

.bj-v2-technical-preview {
  min-height: 790px;
  padding-top: calc(var(--bj-header-h) + 92px);
  padding-bottom: 86px;
  text-align: center;
}

.bj-v2-technical-preview__inner {
  width: min(calc(100% - (var(--bj-gutter) * 2)), 1160px);
  max-width: 1160px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bj-v2-technical-preview .bj-eyebrow {
  margin-inline: auto;
}

.bj-v2-technical-preview .bj-display {
  max-width: 1080px;
  margin: 31px auto 0;
  text-align: center;
}

.bj-v2-technical-preview .bj-lead {
  max-width: 1010px;
  margin: 32px auto 0;
  color: rgba(255,255,255,.92);
  text-align: center;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.52;
}

.bj-btn--hero-cta {
  min-width: 250px;
  min-height: 51px;
  margin-top: 42px;
  padding: 0 30px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255,255,255,.025);
  font-size: 16px;
  font-weight: 500;
  box-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.bj-btn--hero-cta:hover,
.bj-btn--hero-cta:focus {
  background: rgba(255,255,255,.14);
  border-color: #fff;
}

/* Curva dibujada: más parecida a la portada actual, con carga suave. */
.bonjour-v2 .bj-underline-draw {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.bonjour-v2 .bj-underline-draw::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: -0.18em;
  height: 20px;
  background:
    url("data:image/svg+xml,%3Csvg width='420' height='28' viewBox='0 0 420 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 20C98 7 205 5 310 8C358 9 391 13 414 19' stroke='%23168CFF' stroke-width='5.2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  opacity: .96;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 920ms cubic-bezier(.22,.76,.2,1);
}

.bonjour-v2 .bj-underline-draw.is-visible::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Header inicial: blanco sobre azul.
   -------------------------------------------------------------------------- */
.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-primary-nav > a,
.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-nav-services-toggle {
  color: rgba(255,255,255,.94) !important;
}

.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-primary-nav > a:hover,
.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-primary-nav > a:focus,
.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-nav-services-toggle:hover,
.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-nav-services-toggle:focus {
  color: #fff !important;
  opacity: .72;
}

.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-btn--header-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.80);
}

.bonjour-v2 .bj-site-header--on-dark:not(.is-stuck) .bj-btn--header-primary {
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Sticky: mucho más transparente, conservando legibilidad.
   -------------------------------------------------------------------------- */
.bonjour-v2 .bj-site-header.is-stuck .bj-header-shell {
  border-color: rgba(255,255,255,.50);
  background:
    linear-gradient(180deg, rgba(255,255,255,.46), rgba(232,241,251,.28));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.64),
    0 14px 44px rgba(4,27,58,.12);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  backdrop-filter: blur(24px) saturate(175%);
}

.bonjour-v2 .bj-site-header.is-stuck .bj-primary-nav > a,
.bonjour-v2 .bj-site-header.is-stuck .bj-nav-services-toggle {
  color: #17365b !important;
}

.bonjour-v2 .bj-site-header.is-stuck .bj-btn--header-ghost {
  color: #153d6f !important;
  background: rgba(255,255,255,.18);
}

/* --------------------------------------------------------------------------
   Footer: forzar el contraste contra reglas globales de Jupiter.
   -------------------------------------------------------------------------- */
.bonjour-v2 .bj-site-footer,
.bonjour-v2 .bj-site-footer p,
.bonjour-v2 .bj-site-footer span {
  color: rgba(255,255,255,.78);
}

.bonjour-v2 .bj-site-footer h2,
.bonjour-v2 .bj-site-footer .bj-footer-cta h2 {
  color: #fff !important;
}

.bonjour-v2 .bj-site-footer a {
  color: rgba(255,255,255,.88) !important;
}

.bonjour-v2 .bj-site-footer .bj-footer-column h2 {
  color: rgba(255,255,255,.58) !important;
}

.bonjour-v2 .bj-site-footer .bj-btn--footer {
  color: #073d75 !important;
}

/* --------------------------------------------------------------------------
   Popup propuesta — un solo motor visual.
   -------------------------------------------------------------------------- */
.bj-modal {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.bj-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bj-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,19,39,.46);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.bj-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(245,249,253,.78));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 34px 100px rgba(2,26,57,.28);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
}

.bj-modal-close {
  position: absolute;
  top: 19px;
  right: 19px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(12,50,91,.10);
  border-radius: 50%;
  color: #17365b;
  background: rgba(255,255,255,.62);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.bj-modal-close:hover,
.bj-modal-close:focus {
  background: #fff;
}

.bj-modal-heading {
  padding-right: 44px;
}

.bj-modal-heading h2 {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--bj-brand);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.bj-modal-heading p {
  max-width: 610px;
  margin: 20px 0 0;
  color: #5a6575;
  font-size: 17px;
  line-height: 1.55;
}

.bj-proposal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.bj-proposal-form label {
  display: block;
}

.bj-proposal-form label > span {
  display: block;
  margin: 0 0 8px;
  color: #26384f;
  font-size: 14px;
  font-weight: 500;
}

.bj-proposal-form input,
.bj-proposal-form textarea {
  width: 100%;
  border: 1px solid rgba(16,50,86,.13);
  border-radius: 15px;
  outline: none;
  color: #17273b;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.bj-proposal-form input {
  height: 52px;
  padding: 0 15px;
}

.bj-proposal-form textarea {
  min-height: 128px;
  padding: 14px 15px;
  resize: vertical;
}

.bj-proposal-form input:focus,
.bj-proposal-form textarea:focus {
  border-color: rgba(22,140,255,.54);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22,140,255,.08);
}

.bj-field-wide {
  grid-column: 1 / -1;
}

.bj-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 3px;
}

.bj-form-submit {
  flex: 0 0 auto;
}

.bj-form-actions small {
  color: #7a8491;
  font-size: 12px;
  line-height: 1.4;
}

body.bj-modal-open {
  overflow: hidden;
}

@media (max-width: 880px) {
  .bonjour-v2 .bj-display {
    font-size: clamp(43px, 11vw, 58px);
  }

  .bj-v2-technical-preview {
    min-height: 720px;
    padding-top: calc(var(--bj-header-h) + 88px);
  }

  .bj-v2-technical-preview .bj-lead {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .bj-proposal-form {
    grid-template-columns: 1fr;
  }

  .bj-field-wide {
    grid-column: auto;
  }

  .bj-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bj-form-submit {
    width: 100%;
  }

  .bj-modal {
    padding: 12px;
  }

  .bj-modal-dialog {
    border-radius: 25px;
  }
}

/* ==========================================================================
   BEGIN 11-R03 — refinamientos finales header / hero / popup
   ========================================================================== */

.bonjour-v2 .bj-hero::before {
  background-image: url("../brand/hero-wave-lines.webp") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  opacity: 1 !important;
}

@media (min-width: 1180px) {
  .bonjour-v2 .bj-v2-technical-preview .bj-display {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(49px, 3.65vw, 60px);
  }
}

.bonjour-v2 .bj-v2-technical-preview .bj-display {
  opacity: 0;
  transform: translateY(10px);
  animation: bjHeroTitleIn .62s cubic-bezier(.22,.72,.24,1) .10s forwards;
}

@keyframes bjHeroTitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bonjour-v2 .bj-v2-technical-preview .bj-underline-draw::after {
  bottom: -0.20em;
  height: 25px;
  background:
    url("data:image/svg+xml,%3Csvg width='430' height='32' viewBox='0 0 430 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 23C103 8 210 6 318 10C365 11 399 15 423 22' stroke='%23168CFF' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  transition-duration: 920ms;
  transition-delay: .54s;
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-dark .bj-header-shell {
  border-color: rgba(255,255,255,.30);
  background: rgba(8,56,106,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 14px 42px rgba(4,27,58,.13);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-dark .bj-brand-logo--light {
  opacity: 1 !important;
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-dark .bj-brand-logo--dark {
  opacity: 0 !important;
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-dark .bj-primary-nav > a,
.bonjour-v2 .bj-site-header.is-stuck.is-over-dark .bj-nav-services-toggle {
  color: rgba(255,255,255,.94) !important;
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-dark .bj-btn--header-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.06);
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-light .bj-header-shell {
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 14px 42px rgba(4,27,58,.10);
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-light .bj-brand-logo--light {
  opacity: 0 !important;
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-light .bj-brand-logo--dark {
  opacity: 1 !important;
}

.bonjour-v2 .bj-site-header.is-stuck.is-over-light .bj-primary-nav > a,
.bonjour-v2 .bj-site-header.is-stuck.is-over-light .bj-nav-services-toggle {
  color: #17365b !important;
}

.bonjour-v2 .bj-brand-logo {
  transition: opacity 150ms ease !important;
}

.bonjour-v2 .bj-site-footer .bj-footer-column h2 {
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: .16em !important;
  font-weight: 600 !important;
}

.bonjour-v2 .bj-modal {
  transition: none !important;
}

.bonjour-v2 .bj-modal-backdrop {
  background: rgba(3,21,43,.46);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.bonjour-v2 .bj-modal-dialog {
  width: min(100%, 860px);
  max-height: min(90vh, 790px);
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(21,61,105,.10);
  border-radius: 28px;
  background: #fff !important;
  box-shadow: 0 26px 80px rgba(2,27,59,.24);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.bonjour-v2 .bj-modal-media {
  position: relative;
  min-height: 100%;
  background:
    url("../brand/proposal-side.webp") center center / cover no-repeat;
}

.bonjour-v2 .bj-modal-media__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,47,92,.18), rgba(5,47,92,.68));
}

.bonjour-v2 .bj-modal-media__copy {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 26px;
  color: #fff;
}

.bonjour-v2 .bj-modal-media__copy span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 500;
}

.bonjour-v2 .bj-modal-media__copy strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.018em;
  font-weight: 500;
}

.bonjour-v2 .bj-modal-content {
  position: relative;
  padding: 36px 38px 34px;
  overflow-y: auto;
}

.bonjour-v2 .bj-modal-close {
  top: 17px;
  right: 17px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 300;
}

.bonjour-v2 .bj-modal-heading {
  padding-right: 28px;
}

.bonjour-v2 .bj-modal-heading h2 {
  margin-top: 19px;
  font-size: clamp(31px, 3vw, 40px);
  line-height: 1.07;
}

.bonjour-v2 .bj-modal-heading p {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.52;
}

.bonjour-v2 .bj-proposal-form {
  gap: 15px 16px;
  margin-top: 26px;
}

.bonjour-v2 .bj-proposal-form label > span {
  margin-bottom: 7px;
  font-size: 13px;
}

.bonjour-v2 .bj-proposal-form input {
  height: 48px;
}

.bonjour-v2 .bj-proposal-form textarea {
  min-height: 108px;
}

.bonjour-v2 .bj-phone-field {
  position: relative;
}

.bonjour-v2 .bj-phone-country {
  position: absolute;
  z-index: 2;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.bonjour-v2 .bj-phone-field input {
  padding-left: 44px;
}

.bonjour-v2 .bj-field-hint {
  display: block;
  margin-top: 6px;
  color: #7a8491;
  font-size: 11px;
  line-height: 1.3;
}

.bonjour-v2 .bj-form-actions {
  margin-top: 0;
}

.bonjour-v2 .bj-form-actions [data-bj-form-status]:empty {
  display: none;
}

@media (max-width: 760px) {
  .bonjour-v2 .bj-modal-dialog {
    width: min(100%, 560px);
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .bonjour-v2 .bj-modal-media {
    display: none;
  }

  .bonjour-v2 .bj-modal-content {
    padding: 30px 24px 26px;
  }
}

/* ==========================================================================
   END 11-R03
   ========================================================================== */

/* ==========================================================================
   BEGIN 11-R04 — popup más apaisado + sticky glass más fino
   ========================================================================== */

/* Sticky dark: gradiente glass con más relieve y un poco más transparente. */
.bonjour-v2 .bj-site-header.is-stuck.is-over-dark .bj-header-shell {
  border-color: rgba(255,255,255,.30);
  background:
    linear-gradient(
      135deg,
      rgba(112, 164, 235, .22) 0%,
      rgba(58, 120, 208, .18) 42%,
      rgba(17, 74, 146, .12) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 14px 38px rgba(4,27,58,.11);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

/* Popup más ancho y horizontal. */
.bonjour-v2 .bj-modal-dialog {
  width: min(100%, 980px) !important;
  max-height: min(88vh, 760px);
  grid-template-columns: 348px minmax(0, 1fr);
}

.bonjour-v2 .bj-modal-media {
  min-height: 100%;
}

.bonjour-v2 .bj-modal-content {
  padding: 34px 38px 30px;
}

/* Reducir espacio entre la primera fila y Email. */
.bonjour-v2 .bj-proposal-form {
  gap: 11px 16px;
  margin-top: 22px;
  align-items: start;
}

.bonjour-v2 .bj-proposal-form input,
.bonjour-v2 .bj-proposal-form textarea {
  margin-top: 0;
}

.bonjour-v2 .bj-proposal-form label > span {
  margin-bottom: 6px;
}

.bonjour-v2 .bj-field-message textarea {
  min-height: 116px;
  padding-top: 15px;
}

.bonjour-v2 .bj-field-message textarea::placeholder {
  color: #6f7986;
}

.bonjour-v2 .bj-field-message > span {
  display: none;
}

.bonjour-v2 .bj-form-actions {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .bonjour-v2 .bj-modal-dialog {
    width: min(100%, 760px) !important;
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .bonjour-v2 .bj-modal-dialog {
    width: min(100%, 560px) !important;
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   END 11-R04
   ========================================================================== */
