:root {
  --primary-color: #2563eb;
  --ps-primary: #2b5cff;
  --ps-primary-hover: #1f4df2;
  --ps-text-on-primary: #ffffff;
  --ps-text-main: #0F172A;
  --ps-text-secondary: rgba(15,23,42,.72);
  --ps-border: rgba(15,23,42,.10);
  --ps-bg-page: #F8FAFC;
  --ps-cta-bg: #0F172A;
  --ps-cta-hover: #1E293B;
  --ps-muted: #64748b;
  --ps-radius-pill: 999px;
  --ps-shadow: 0 10px 24px rgba(43, 92, 255, 0.28);
  --ps-shadow-hover: 0 14px 30px rgba(43, 92, 255, 0.36);
  --ps-gap-xs: 0.3rem;
  --ps-gap-sm: 0.5rem;
  --ps-header-offset-desktop: 86px;
  --ps-header-offset-mobile: 64px;
}

.ps-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.ps-header-inner {
  min-height: 68px;
  padding: 0 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ps-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}

.ps-brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.ps-brand-text {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
}

.ps-logo {
  display: block;
  max-height: 40px !important;
  width: auto;
}

.ps-brand-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.ps-brand-subtitle {
  display: none;
}

.ps-brand .brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ps-brand .brand-text-mobile {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
}

.ps-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ps-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  line-height: 1.1;
}

.ps-nav a:hover {
  color: #0f172a;
  background: rgba(43, 92, 255, 0.07);
}

.ps-header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ps-blog-link {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  white-space: nowrap;
}

.ps-blog-link:hover {
  color: #0f172a;
  background: rgba(43, 92, 255, 0.07);
}

.ps-cta-primary,
a.ps-cta-primary {
  display: inline-block;
  background-color: var(--primary-color, #2563eb);
  color: #ffffff;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  border: none;
  white-space: nowrap;
  line-height: 1.2;
}

.ps-cta-primary:hover,
a.ps-cta-primary:hover {
  background-color: #1e4fd1;
  transform: translateY(-1px);
}

.ps-cta-primary:active,
a.ps-cta-primary:active {
  transform: translateY(0);
  opacity: 0.95;
}

.ps-cta-primary:focus-visible,
.ps-cta-secondary:focus-visible,
.ps-sticky-cta:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

.ps-cta-primary,
.ps-cta-primary:hover,
.ps-cta-primary:visited {
  text-decoration: none !important;
  color: #ffffff !important;
}

.ps-cta-secondary,
a.ps-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border-radius: var(--ps-radius-pill);
  border: 1px solid #d1d9e6;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.ps-trustline {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ps-muted);
}

.ps-model-block {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ps-muted);
}

.ps-model-title {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.ps-model-desc {
  color: var(--ps-muted);
}

.ps-iei-link {
  color: inherit;
  text-decoration: none;
}

.ps-iei-link:hover {
  text-decoration: underline;
}

.ps-iei-link:focus-visible {
  outline: 3px solid rgba(43, 92, 255, 0.25);
  outline-offset: 2px;
  border-radius: 8px;
}

.ps-header-cta-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ps-gap-xs);
}

.ps-header .ps-trustline {
  display: none;
}

.ps-header-cta {
  min-width: 220px;
  text-align: center;
  padding: 10px 16px !important;
  line-height: 1.1;
}

.ps-cta-inline-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ps-gap-sm);
}

.ps-sticky-bar {
  display: none;
}

@media (max-width: 1024px) {
  .ps-header-inner {
    padding: 0 14px !important;
  }

  .ps-blog-link {
    display: none;
  }
}

@media (max-width: 860px) {
  .ps-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .ps-header {
    position: sticky !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
  }

  .ps-header-inner {
    min-height: 56px !important;
    padding: 0 12px !important;
    gap: 0.5rem !important;
  }

  .ps-logo {
    max-height: 34px !important;
  }

  .home-page .ps-logo {
    max-height: 48px !important;
    margin-bottom: 6px;
  }

  .ps-brand .brand-text {
    display: none !important;
  }

  .ps-brand .brand-text-mobile {
    display: flex !important;
  }

  .ps-header-cta-wrap {
    display: none;
  }

  body.ps-has-sticky {
    padding-bottom: 112px;
  }

  .ps-sticky-bar {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 0.45rem 0.45rem 0.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe3f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
    z-index: 95;
  }

  .ps-sticky-hidden {
    display: none;
  }

  .ps-sticky-cta {
    display: block;
    width: 100%;
    min-height: 48px;
    font-size: 0.92rem;
    text-align: center;
  }

  .ps-sticky-bar .ps-trustline {
    text-align: center;
    font-size: 0.71rem;
  }

  body.home-page.ps-has-sticky {
    padding-bottom: 24px;
  }

  body.home-page.ps-has-sticky.ps-sticky-visible {
    padding-bottom: 96px;
  }

  .home-page .ps-sticky-bar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 8px 12px 10px;
    border-radius: 0;
    background: #ffffff;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
  }

  .home-page .ps-sticky-bar.is-visible {
    display: flex;
  }

  .home-page .ps-sticky-cta {
    min-height: 44px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: none !important;
  }

  .home-page .ps-sticky-bar .ps-trustline {
    display: block;
    text-align: center;
    font-size: 0.72rem;
  }

  .ps-cta-mid,
  .ps-cta-mid + .ps-trustline {
    display: none !important;
  }
}

.ps-cta-primary,
.ps-cta-primary:visited,
.ps-cta-primary:hover,
.ps-cta-primary:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #2563eb !important;
  color: #ffffff !important;
  padding: 14px 22px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
}

.ps-cta-primary:hover {
  background: #1e4fd1 !important;
}

a.ps-cta-primary {
  text-decoration: none !important;
}

.hero-relevance-trigger {
  font-size: 14px;
  color: #475569;
  margin: 10px 0 14px 0;
  line-height: 1.4;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-relevance-trigger {
    max-width: 520px;
  }
}

/* ------------------------------
   Funnel: paginas dentro del flujo (sin CTA redundante)
-------------------------------- */
body.ps-mode-inflow .ps-header-cta-wrap { display: none !important; }
body.ps-mode-inflow .ps-sticky-bar { display: none !important; }
body.ps-mode-inflow .ps-header-actions { gap: .75rem; }
body.ps-mode-inflow .ps-blog-link { display: none !important; }

/* ------------------------------
   Evaluador: contraste + layout fluido
-------------------------------- */
.ps-evaluador-wrap { max-width: 980px; margin: 0 auto; }
.ps-evaluador-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  padding: 18px;
}

.ps-evaluador-field { display: grid; gap: 6px; margin-bottom: 14px; }
.ps-evaluador-field label { font-weight: 800; color: #0f172a; }

.ps-evaluador-field input,
.ps-evaluador-field select,
.ps-evaluador-field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.20);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}

.ps-evaluador-field input:focus,
.ps-evaluador-field select:focus,
.ps-evaluador-field textarea:focus {
  border-color: rgba(43,92,255,.75);
  box-shadow: 0 0 0 4px rgba(43,92,255,.14);
}

.ps-evaluador-hint { color: rgba(15,23,42,.62); font-size: .86rem; line-height: 1.35; }

.ps-evaluador-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .ps-evaluador-grid { grid-template-columns: 1fr; } }

/* Help colapsable por pregunta (reduce "muro de texto") */
.ps-qhelp{
  margin-top: 6px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.65);
  border-radius: 12px;
  padding: 8px 10px;
}

.ps-qhelp summary{
  cursor: pointer;
  list-style: none;
  font-size: .82rem;
  font-weight: 800;
  color: rgba(15,23,42,0.62);
  letter-spacing: -0.01em;
}

.ps-qhelp summary::-webkit-details-marker{ display:none; }

.ps-qhelp summary::after{
  content:"+";
  float:right;
  font-weight: 900;
  color: rgba(15,23,42,0.45);
}

.ps-qhelp[open] summary::after{ content:"-"; }

.ps-qhelp-body{
  margin-top: 8px;
  font-size: .86rem;
  line-height: 1.35;
  color: rgba(15,23,42,0.68);
}

/* Reduccion de ruido visual dentro del evaluador */
body.ps-mode-inflow .evaluador-fieldset{
  box-shadow: 0 6px 16px rgba(15,23,42,0.03) !important;
  border-color: rgba(15,23,42,0.08) !important;
}
body.ps-mode-inflow .evaluador-field{ gap: .35rem !important; }
body.ps-mode-inflow .evaluador-field label{ line-height: 1.25; }

/* ------------------------------
   Stepbar sticky dentro del evaluador
-------------------------------- */
.ps-stepbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 auto 14px;
  max-width: 980px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

/* Funnel: sticky siempre visible, por encima del header + contenido */
body.ps-mode-inflow #ps-progress { display: contents; }
body.ps-mode-inflow #ps-progress,
body.ps-mode-inflow .ps-evaluador-wrap,
body.ps-mode-inflow #evaluador-punto-seguro{
  overflow: visible !important;
}
body.ps-mode-inflow .ps-stepbar{
  position: sticky !important;
  top: var(--ps-header-offset-desktop) !important;
  z-index: 999 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px);
  margin-bottom: 14px;
}
@media (max-width: 768px){
  body.ps-mode-inflow .ps-stepbar{ top: var(--ps-header-offset-mobile) !important; }
}

/* Utilities */
.ps-hidden { display: none !important; }

/* Intent card (resultado -> plazo) */
.ps-intent-card{
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  position: relative;
  overflow: hidden;
}

/* “Destaque” sobrio: acento lateral */
.ps-intent-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 4px;
  background: rgba(43,92,255,.9);
  opacity: .9;
}

/* Head */
.ps-intent-head h2{
  font-size: 1.05rem;
  margin: 0 0 6px 0;
}
.ps-intent-head .muted{
  margin: 0 0 12px 0;
}

/* Form */
.ps-intent-form{
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.ps-label-strong{
  font-weight: 800;
  color: #0f172a;
}

/* Select coherente */
.ps-select{
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.20);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}
.ps-select:focus{
  border-color: rgba(43,92,255,.75);
  box-shadow: 0 0 0 4px rgba(43,92,255,.14);
}

/* Mobile: mas respiracion + boton full width si tu sistema no lo hace */
@media (max-width: 768px){
  .ps-intent-card{ padding: 16px; }
  .ps-intent-card .actions .btn{ width: 100%; min-height: 52px; border-radius: 12px; }
}

/* ------------------------------
   Evaluador: selector premium de tipo (vivienda/comercio)
-------------------------------- */
.ps-start { margin-top: 12px; }

.ps-start-title {
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 10px;
}

.ps-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ps-type-btn {
  width: 100%;
  text-align: left;
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  font: inherit;
}

.ps-type-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.ps-type-btn.ps-active {
  border: 2px solid rgba(37, 99, 235, 0.85);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.14);
}

.ps-type-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.ps-type-name {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
}

.ps-type-desc {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

.ps-start-trustline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.65);
  font-size: 13px;
}

.ps-start-trustline span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.7);
}

/* Scroll alignment when showing the form after type selection */
#formulario-vivienda,
#formulario-comercio {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  .ps-type-grid { grid-template-columns: 1fr; }
  .ps-type-btn { padding: 16px 14px; }
  #formulario-vivienda,
  #formulario-comercio {
    scroll-margin-top: 90px;
  }
}

/* ===== Enlaces externos (nueva pestaña) – Indicador profesional ===== */

a[data-external="1"]::after {
  content: "↗";
  display: inline-block;
  margin-left: .28rem;
  font-size: .85em;
  opacity: .6;
  transform: translateY(-0.05em);
  transition: opacity .15s ease, transform .15s ease;
}

a[data-external="1"]:hover::after {
  opacity: .9;
}

/* =======================================================
   FAQ / Details Global Style – Punto Seguro (Premium)
   ======================================================= */

details.ps-faq,
.ps-faq details,
section.faq details,
details.faq {
  border: 1px solid rgba(15,23,42,0.10);
  background: #ffffff;
  border-radius: 16px;
  padding: 1.05rem 1.2rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.04);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

details.ps-faq + details.ps-faq,
.ps-faq details + details,
section.faq details + details,
details.faq + details.faq {
  margin-top: .9rem;
}

details.ps-faq summary,
.ps-faq details summary,
section.faq details summary,
details.faq summary {
  position: relative;
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-secondary);
  letter-spacing: -0.01em;
  list-style: none;
  padding-right: 2.2rem;
}

details.ps-faq summary::-webkit-details-marker,
.ps-faq details summary::-webkit-details-marker,
section.faq details summary::-webkit-details-marker,
details.faq summary::-webkit-details-marker {
  display: none;
}

/* Indicador + / – */
details.ps-faq summary::after,
.ps-faq details summary::after,
section.faq details summary::after,
details.faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(15,23,42,0.55);
  transition: transform .18s ease, color .18s ease, opacity .18s ease;
  opacity: .9;
}

details.ps-faq[open] summary::after,
.ps-faq details[open] summary::after,
section.faq details[open] summary::after,
details.faq[open] summary::after {
  content: "–";
  color: rgba(15,23,42,0.75);
}

/* Hover sutil */
details.ps-faq:hover,
.ps-faq details:hover,
section.faq details:hover,
details.faq:hover {
  border-color: rgba(43,92,255,0.18);
  box-shadow: 0 14px 36px rgba(15,23,42,0.06);
  transform: translateY(-1px);
}

details.ps-faq:hover summary,
.ps-faq details:hover summary,
section.faq details:hover summary,
details.faq:hover summary {
  color: var(--brand-primary);
}

/* Separador interno al abrir */
details.ps-faq[open] summary,
.ps-faq details[open] summary,
section.faq details[open] summary,
details.faq[open] summary {
  padding-bottom: .7rem;
  margin-bottom: .75rem;
  border-bottom: 1px dashed rgba(15,23,42,0.12);
}

/* Animación suave */
details.ps-faq > *:not(summary),
.ps-faq details > *:not(summary),
section.faq details > *:not(summary),
details.faq > *:not(summary) {
  margin-top: .7rem;
  animation: psFaqFade .18s ease;
}

@keyframes psFaqFade {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Accesibilidad */
details.ps-faq summary:focus-visible,
.ps-faq details summary:focus-visible,
section.faq details summary:focus-visible,
details.faq summary:focus-visible {
  outline: 2px solid rgba(43,92,255,0.35);
  outline-offset: 3px;
}

.ps-premium-block{
  margin-top: 16px;
  padding: 18px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
}

.ps-premium-kicker{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(15,23,42,.55);
  margin-bottom: 8px;
}

.ps-premium-title{
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.ps-premium-text{
  margin: 0;
  color: rgba(15,23,42,.72);
  line-height: 1.45;
}

.ps-premium-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ps-premium-pill{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.20);
  background: rgba(15,23,42,.06);
  font-weight: 900;
  color: #0F172A;
}

.ps-premium-deadline{
  color: rgba(15,23,42,.72);
}

.ps-premium-microcta{
  margin-top: 10px;
  color: rgba(15,23,42,.78);
  font-weight: 700;
}

.ps-premium-coherence{
  margin-top: 8px;
  margin-bottom: 0;
  font-size: .9rem;
  line-height: 1.4;
  color: rgba(15,23,42,.62);
}

.ps-driver-list{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}

.ps-driver{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(15,23,42,.14);
  background: rgba(255,255,255,.7);
}

.ps-driver-title{
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 3px;
}

.ps-driver-detail{
  color: rgba(15,23,42,.70);
  line-height: 1.4;
  font-size: .92rem;
}

.chip.ps-chip-key{
  background: rgba(43,92,255,.08);
  border: 1px solid rgba(43,92,255,.30);
  color: #1E3A8A;
}

body.ps-mode-inflow .badge-low{
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.18);
  color: #0F172A;
}

body.ps-mode-inflow .badge-medium{
  background: rgba(43,92,255,.10);
  border: 1px solid rgba(43,92,255,.28);
  color: #1E3A8A;
}

body.ps-mode-inflow .badge-high{
  background: rgba(30,58,138,.12);
  border: 1px solid rgba(30,58,138,.30);
  color: #1E3A8A;
}

body.ps-mode-inflow .actions.actions-result {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 8px;
}

body.ps-mode-inflow .ps-cta-primary-wrap {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

body.ps-mode-inflow #cta-request {
  min-width: 430px;
  background: var(--ps-cta-bg);
  border-color: var(--ps-cta-bg);
  color: #fff;
  box-shadow: none;
}

body.ps-mode-inflow #cta-request:hover {
  background: var(--ps-cta-hover);
  border-color: var(--ps-cta-hover);
}

body.ps-mode-inflow #cta-keep {
  background: #fff;
  border: 1px solid rgba(15,23,42,.20);
  color: #0f172a;
  box-shadow: none;
}

body.ps-mode-inflow .ps-cta-primary-note {
  margin: 0;
  font-size: .79rem;
  line-height: 1.35;
  color: rgba(15,23,42,.58);
}

body.ps-mode-inflow .iei-cta-trust {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  body.ps-mode-inflow .actions.actions-result {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  body.ps-mode-inflow #cta-request,
  body.ps-mode-inflow #cta-keep {
    width: 100%;
    min-width: 0;
  }
}

/* Premium micro-interactions (CTA) */
#cta-request{
  background: var(--ps-cta-bg);
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

#cta-request:hover{
  background: var(--ps-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  filter: brightness(1.02);
}

#cta-request:active{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

#cta-request:focus-visible{
  outline: none;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.12),
    0 0 0 3px rgba(43, 92, 255, 0.18);
}

/* Secondary CTA: sutil, sin competir */
#cta-keep{
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

#cta-keep:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#cta-keep:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.14);
}

/* Respeto a accesibilidad */
@media (prefers-reduced-motion: reduce){
  #cta-request, #cta-keep{
    transition: none !important;
    transform: none !important;
  }
}

.ps-value-bullets { display:grid; gap:10px; margin-top:12px; padding-left: 0; margin-bottom: 0; }
.ps-value-bullets li { list-style:none; padding-left:0; color: rgba(15,23,42,.80); font-weight:600; }
.ps-value-bullets li::before { content:"•"; margin-right:10px; color: rgba(15,23,42,.35); }

.ps-mock-result{
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
}
.ps-mock-row{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; }
.ps-mock-score{ font-size: 2rem; font-weight: 900; color:#0F172A; }
.ps-mock-badge{ padding:6px 10px; border-radius:999px; border:1px solid rgba(146,64,14,.25); background: rgba(146,64,14,.08); font-weight:800; color:#92400E; }
.ps-mock-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.ps-mock-chip{ padding:6px 10px; border-radius:999px; border:1px solid rgba(43,92,255,.28); background: rgba(43,92,255,.06); font-weight:700; color:#1E3A8A; font-size:.9rem; }
.ps-mock-cta{
  margin-top:12px;
  width:100%;
  border-radius:999px;
  padding:12px 14px;
  font-weight:900;
  background:#0F172A;
  color:#fff;
  text-align:center;
  opacity:.95;
}
.ps-mock-cta[aria-disabled="true"]{ opacity:.7; }

.ps-preview-grid{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 18px;
  align-items: start;
  margin-top: 10px;
}

.ps-preview-figure{
  margin: 0;
}

.ps-preview-link{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
  max-width: 100%;
}

.ps-preview-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}

.ps-preview-link img{
  display: block;
  width: 100%;
  height: auto;
}

.ps-preview-copy{
  color: rgba(15,23,42,.78);
}

.ps-preview-kicker{
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(15,23,42,.55);
  margin-bottom: 10px;
}

.ps-preview-bullets{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.ps-preview-bullets li{
  line-height: 1.45;
}

.ps-preview-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.70);
}

.ps-inline-cta{
  display: inline-block;
  margin-top: 12px;
  font-weight: 900;
  color: #0F172A;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,23,42,.20);
}

.ps-inline-cta:hover{
  border-bottom-color: rgba(15,23,42,.45);
}

@media (max-width: 820px){
  .ps-preview-grid{
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  .ps-preview-link{ transition: none !important; transform:none !important; }
}

.ps-aside-preview{
  position: relative;
  background: rgba(15,23,42,.03);
  border: 1px dashed rgba(15,23,42,.18);
  box-shadow: none;
}

.ps-aside-preview::before{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.7);
  pointer-events: none;
}

.ps-aside-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(15,23,42,.55);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.12);
  padding: 6px 10px;
  border-radius: 999px;
  margin: 8px 0 0 0;
}

.ps-aside-preview .ps-preview-link{
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.ps-aside-preview .ps-preview-caption{
  color: rgba(15,23,42,.60);
}

.ps-modal{ position: fixed; inset: 0; display: none; z-index: 9999; }
.ps-modal[aria-hidden="false"]{ display: block; }

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

.ps-modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(15,23,42,.55);
}

.ps-modal-panel{
  position: relative;
  width: min(980px, calc(100% - 28px));
  height: min(86vh, 860px);
  margin: 7vh auto 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 30px 80px rgba(15,23,42,.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ps-modal-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  background: #fff;
}

.ps-modal-title{ font-weight: 900; color:#0F172A; }
.ps-modal-close{
  border: 1px solid rgba(15,23,42,.15);
  background: rgba(15,23,42,.04);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}

.ps-modal-body{ flex: 1; background: #F8FAFC; }
.ps-modal-frame{ width: 100%; height: 100%; border: 0; }

.ps-modal-footer{
  padding: 12px 16px;
  border-top: 1px solid rgba(15,23,42,.10);
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  background: #fff;
}

.ps-modal-note{ color: rgba(15,23,42,.70); font-size:.92rem; }
.ps-modal-cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0F172A;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.ps-modal-cta:hover{ background: #1E293B; }

@media (max-width: 720px){
  .ps-modal-panel{ height: 90vh; margin-top: 4vh; }
  .ps-modal-footer{ flex-direction: column; align-items: stretch; }
}

/* === Force CTA header /iei to match index.html brand button === */
.header .btn.btn-primary{
  background: #2b5cff !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 25px rgba(43,92,255,0.22) !important;
  font-weight: 700 !important;
}

.header .btn.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(43,92,255,0.26) !important;
}

.header .btn.btn-primary:active{
  transform: translateY(0);
  opacity: .95;
}

/* Proveedores premium */
.ps-header-minimal{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.ps-logo{
  height:32px;
  width:auto;
  margin-right:8px;
  vertical-align:middle;
}

.ps-hero-clean {
  background: #ffffff;
}

.ps-hero-clean .lead {
  font-size: 1.15rem;
}

.ps-hero-badges span{
  display:inline-block;
  margin-right:1rem;
  font-size:.9rem;
  color:#1f2937;
}

.ps-cta-premium{
  border:2px solid #2563eb;
}

.ps-b2b-hero .ps-b2b-bullets span{
  display:inline-block;
  margin-right:1rem;
  font-size:.92rem;
}

.ps-b2b-hero{
  background:#fff;
}

.ps-b2b-cta{
  border:2px solid #2563eb;
}

/* Forzar misma anchura que index */
.main .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Alinear header exactamente como index */
.ps-header .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

@media (max-width: 768px) {
  .ps-header .container {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }
}
