/* JSS Asistente y Consultas — todos los estilos llevan prefijo para evitar conflictos con Bricks */
.jss-asistente-overlay[hidden], .jss-asistente-ventana [hidden] { display:none !important; }
body.jss-asistente-open { overflow:hidden; }
.jss-asistente-trigger { font-family:inherit; border:0; cursor:pointer; }
.jss-asistente-flotante { position:fixed; z-index:100003; right:22px; bottom:22px; display:inline-flex; justify-content:center; align-items:center; gap:10px; background:#10395A; color:#fff; border-radius:40px; padding:14px 20px; font-size:15px; font-weight:600; box-shadow:0 7px 24px rgba(10,31,51,.24); transition:background .2s,transform .2s; }
.jss-asistente-flotante:hover { background:#256CA4; transform:translateY(-2px); }
.jss-asistente-flotante svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.jss-asistente-inline { border-radius:8px; padding:14px 20px; background:#10395A; color:#fff; font-weight:600; }
.jss-asistente-inline:hover { background:#256CA4; }
.jss-asistente-overlay { position:fixed; z-index:100010; inset:0; display:flex; justify-content:center; align-items:center; padding:18px; background:rgba(9,25,38,.7); }
.jss-asistente-ventana { --jss-main:#10395A; --jss-hover:#256CA4; --jss-border:#dfe6ec; position:relative; box-sizing:border-box; width:min(100%,570px); max-height:calc(100dvh - 36px); overflow-y:auto; background:#fff; color:#263747; border-radius:15px; padding:27px; box-shadow:0 16px 60px rgba(0,0,0,.2); font-family:inherit; }
.jss-asistente-ventana.jss-asistente-energy { --jss-main:#477F22; --jss-hover:#559D24; --jss-border:#dae8d5; }
.jss-asistente-ventana *, .jss-asistente-ventana *::before, .jss-asistente-ventana *::after {box-sizing:border-box;}
.jss-asistente-header { display:flex; justify-content:space-between; align-items:start; gap:16px; margin-bottom:23px; }
.jss-asistente-header strong { display:block; color:var(--jss-main); font-size:18px; letter-spacing:.04em; }
.jss-asistente-header small { display:block; margin-top:3px; color:#71808d; font-size:12px; }
.jss-asistente-close { background:transparent; color:#5a6977; border:0; width:36px; height:36px; font-size:30px; line-height:1; cursor:pointer; }
.jss-asistente-progress { height:5px; border-radius:10px; background:#e9eff3; overflow:hidden; }
#jss-asistente-bar { width:0; height:100%; border-radius:10px; background:var(--jss-hover); transition:width .2s ease; }
.jss-asistente-count { margin:18px 0 9px; color:#778594; font-size:12px; }
#jss-asistente-pregunta { margin:0 0 10px; font-size:clamp(21px,4vw,25px); font-weight:650; color:var(--jss-main); line-height:1.3; }
.jss-asistente-help { margin:0 0 18px; color:#627485; font-size:14px; line-height:1.5; }
.jss-asistente-choices { display:flex; flex-direction:column; gap:9px; }
.jss-asistente-option { width:100%; min-height:52px; display:flex; align-items:center; gap:12px; border:1px solid var(--jss-border); border-radius:9px; padding:12px 14px; text-align:left; font:inherit; font-size:15px; font-weight:400; line-height:1.35; color:#263747; background:#fff; cursor:pointer; }
.jss-asistente-option:hover, .jss-asistente-option[aria-pressed=true] { background:#f2f7fb; border-color:var(--jss-hover); }
.jss-asistente-energy .jss-asistente-option:hover, .jss-asistente-energy .jss-asistente-option[aria-pressed=true] { background:#f3f9ef; }
.jss-asistente-option-copy { flex:1; min-width:0; }
.jss-asistente-option-copy strong { display:block; font-weight:600; }
.jss-asistente-option-copy small { display:block; color:#71808d; margin-top:3px; font-size:12px; }
.jss-asistente-option-icon { display:flex; justify-content:center; align-items:center; flex-shrink:0; width:40px; height:40px; border-radius:9px; background:#e9f1f7; color:#10395A; font-size:21px; }
.jss-asistente-option-icon.jss-energy-icon { background:#edf6e8; color:#477f22; }
.jss-option-chevron {font-size:25px; color:#8794a0;}
.jss-asistente-input { width:100%; padding:13px 14px; min-height:50px; border:1px solid #cbd7e0; border-radius:9px; background:#fff; color:#263747; font:inherit; font-size:16px; }
textarea.jss-asistente-input { min-height:110px; resize:vertical; }
.jss-asistente-summary { padding:16px; background:#f5f7f8; border-radius:9px; color:#2f3f4a; white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.8; }
.jss-asistente-energy .jss-asistente-summary { background:#f3f9ef; }
.jss-asistente-consent { margin-top:17px; font-size:13px; line-height:1.6; color:#394a53; }
.jss-asistente-consent-label { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.jss-asistente-consent-label input { margin-top:4px; width:18px; height:18px; flex-shrink:0; accent-color:var(--jss-main); }
.jss-asistente-consent-label a { color:var(--jss-main); text-decoration:underline; }
.jss-asistente-error { color:#b42318; font-size:13px; margin:10px 0 0; }
.jss-asistente-actions { display:flex; align-items:center; gap:10px; margin-top:20px; }
.jss-asistente-back { min-height:44px; border:0; background:transparent; color:var(--jss-main); padding:10px; cursor:pointer; font:inherit; font-size:14px; }
.jss-asistente-next, .jss-asistente-send { flex:1; min-height:49px; border:0; border-radius:8px; padding:12px 17px; background:var(--jss-main); color:#fff; font:inherit; font-size:14px; font-weight:600; cursor:pointer; text-align:center; }
.jss-asistente-next:hover {background:var(--jss-hover);}
.jss-asistente-send {background:#207d50;}
.jss-asistente-send:hover {background:#17633e;}
.jss-asistente-send:disabled {opacity:.55;cursor:wait;}
.jss-asistente-status { font-size:13px; margin:10px 0 0; color:#20633f; }
.jss-asistente-fallback {text-decoration:underline; color:inherit;}
.jss-asistente-footnote { margin:19px 0 0; padding-top:13px; border-top:1px solid #e5ebef; font-size:12px; line-height:1.5; color:#798794; }
.jss-asistente-ventana button:focus-visible, .jss-asistente-ventana a:focus-visible, .jss-asistente-ventana input:focus-visible, .jss-asistente-trigger:focus-visible {outline:3px solid #66addb; outline-offset:2px;}
/* Botón en móvil: cerca del borde inferior en páginas normales.
   En fichas individuales de inmuebles deja espacio para la barra de contacto. */
@media(max-width:767px) {
  .jss-asistente-flotante {
    bottom:calc(16px + env(safe-area-inset-bottom));
    right:16px;
    padding:11px 14px;
    font-size:13px;
  }
  body.single-inmuebles .jss-asistente-flotante {
    bottom:calc(79px + env(safe-area-inset-bottom));
  }
  .jss-asistente-flotante svg {width:20px;height:20px;}
  .jss-asistente-overlay {padding:10px;}
  .jss-asistente-ventana {padding:20px 16px;max-height:calc(100dvh - 20px);}
}
@media (prefers-reduced-motion:reduce) { .jss-asistente-flotante,#jss-asistente-bar {transition:none;} }

/* v1.1.0: archivo PDF opcional e integración directa en contenido */
.jss-asistente-file-field {display:flex;flex-direction:column;gap:8px;align-items:flex-start;}
.jss-asistente-input.jss-asistente-file {padding:12px;cursor:pointer;height:auto;min-height:52px;}
.jss-asistente-file-note {margin:0;font-size:13px;line-height:1.5;color:#59716b;overflow-wrap:anywhere;}
.jss-energetica-embed {width:100%;max-width:650px;max-height:none;overflow:visible;box-shadow:0 5px 24px rgba(15,38,30,.08);border:1px solid #dae8d5;margin:0 auto;}
.jss-energetica-embed .jss-embed-question {margin:0 0 10px;font-size:clamp(21px,4vw,25px);font-weight:650;color:var(--jss-main);line-height:1.3;}
.jss-energetica-embed .jss-embed-progress-bar {height:100%;width:0;border-radius:10px;background:var(--jss-hover);transition:width .2s ease;}
.jss-energetica-embed [hidden] {display:none !important;}
.jss-energetica-embed .jss-asistente-option {justify-content:flex-start;}
@media(max-width:767px) { .jss-energetica-embed {max-height:none;padding:20px 16px;} }

/* v1.1.1 — logotipos corporativos originales en ambos asistentes */
.jss-asistente-ventana .jss-asistente-identidad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.jss-asistente-ventana .jss-asistente-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 272px);
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}
.jss-asistente-ventana .jss-asistente-logo-mi {
  display: none;
  max-width: min(100%, 250px);
}
.jss-asistente-ventana.jss-asistente-energy .jss-asistente-logo-jss {
  display: none;
}
.jss-asistente-ventana.jss-asistente-energy .jss-asistente-logo-mi,
.jss-energetica-embed .jss-asistente-logo-mi {
  display: block;
}
.jss-asistente-ventana .jss-asistente-identidad small {
  display: block;
  margin-top: 7px;
  color: #71808d;
  font-size: 12px;
}
@media (max-width: 420px) {
  .jss-asistente-ventana .jss-asistente-logo {
    max-width: min(100%, 235px);
    max-height: 70px;
  }
  .jss-asistente-ventana .jss-asistente-logo-mi {
    max-width: min(100%, 220px);
  }
}

/* v1.1.3 — formulario independiente de tasación, [jss_tasacion] */
.jss-tasacion-seccion {
  --jss-valor-azul:#02337F;
  display:grid;
  grid-template-columns:minmax(0, .85fr) minmax(0, 1fr);
  max-width:1120px;
  width:100%;
  margin:0 auto;
  overflow:hidden;
  border-radius:16px;
  border:1px solid #dce6f1;
  box-shadow:0 10px 34px rgba(2,51,127,.09);
  background:#fff;
  color:#253b58;
  font-family:inherit;
}
.jss-tasacion-seccion *, .jss-tasacion-seccion *::before, .jss-tasacion-seccion *::after {box-sizing:border-box;}
.jss-tasacion-presentacion {
  background:linear-gradient(140deg,#02337F 0%,#174e8b 100%);
  padding:clamp(28px,4vw,48px) clamp(24px,3.5vw,44px);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.jss-tasacion-kicker {font-family:Arial,sans-serif;font-size:11px;letter-spacing:.16em;font-weight:700;color:#ffda55;margin-bottom:18px;}
.jss-tasacion-presentacion h2 {color:#fff;font-family:Georgia,serif;font-size:clamp(27px,3.2vw,38px);line-height:1.17;margin:0 0 18px;}
.jss-tasacion-presentacion > p {color:#e7effc;font-size:15px;line-height:1.75;margin:0;}
.jss-tasacion-ventajas {display:flex;flex-direction:column;gap:13px;margin-top:32px;}
.jss-tasacion-ventajas p {display:flex;align-items:start;gap:11px;color:#eef4ff;margin:0;font-size:13px;line-height:1.5;}
.jss-tasacion-ventajas span {font-size:16px;color:#ffda55;font-weight:700;line-height:1.1;}
.jss-tasacion-embed.jss-asistente-ventana {
  --jss-main:#02337F;
  --jss-hover:#1757A0;
  --jss-border:#dae4ef;
  width:100%;max-width:none;max-height:none;
  border:0;border-radius:0;box-shadow:none;
  padding:clamp(24px,3vw,36px);
  overflow:visible;
}
.jss-tasacion-embed .jss-embed-question {font-size:clamp(20px,2.5vw,24px);font-weight:650;line-height:1.35;color:var(--jss-main);margin:0 0 10px;}
.jss-tasacion-embed .jss-embed-progress-bar {width:0;height:100%;border-radius:10px;background:var(--jss-hover);transition:width .2s ease;}
.jss-tasacion-embed [hidden] {display:none !important;}
.jss-tasacion-embed .jss-asistente-option {justify-content:flex-start;}
.jss-tasacion-embed .jss-asistente-send {background:var(--jss-main);}
.jss-tasacion-embed .jss-asistente-send:hover {background:var(--jss-hover);}
@media (max-width:767px){
  .jss-tasacion-seccion {grid-template-columns:1fr;}
  .jss-tasacion-presentacion {padding:28px 23px;}
  .jss-tasacion-ventajas {margin-top:22px;gap:8px;}
  .jss-tasacion-embed.jss-asistente-ventana {padding:23px 20px;}
}
@media (prefers-reduced-motion:reduce){.jss-tasacion-embed .jss-embed-progress-bar{transition:none;}}
