/* Clon de caixabank.es/particular/planes-de-pensiones — entorno de demostración.
   Tipografía y colores tomados de la página real (Open Sans / Rubik, #007eae). */

:root {
  --blue: #007eae;
  --blue-dark: #004f70;
  --blue-deep: #00151c;
  --blue-soft: #e6f4f9;
  --blue-band: #eaf6fb;
  --yellow: #f4c53d;
  --ink: #1a1a1a;
  --ink-2: #333333;
  --ink-3: #404040;
  --muted: #666666;
  --line: #d3d7da;
  --paper: #ffffff;
  --grey: #efefef;
  --focus-ring: 0 0 0 4px rgba(0, 126, 174, 0.35);
  --max: 1180px;
  --sticky: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-2);
  font-weight: 700;
}
h2 {
  font-size: 32px;
  line-height: 1.2;
}
h3 {
  font-size: 20px;
  line-height: 1.2;
}
p {
  margin: 0 0 12px;
}
a {
  color: var(--blue);
}
img {
  max-width: 100%;
  height: auto;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  border-radius: 999px;
  padding: 10px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn--outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}
.btn:hover {
  filter: brightness(1.06);
}
.btn--sm {
  padding: 7px 16px;
  font-size: 14px;
}
.link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

/* ── Demo banner ─────────────────────────────────────── */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #1a1a1a;
  color: #fff;
  font-size: 12.5px;
  padding: 6px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  letter-spacing: .01em;
}
.demo-banner b {
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}
.demo-banner a {
  color: #9fd6ec;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  margin-right: 22px;
  padding: 8px 0;
}
.topbar nav a.is-active {
  font-weight: 600;
  border-bottom: 3px solid var(--blue);
}
.topbar .stock {
  color: var(--ink-3);
}
.topbar .stock b {
  color: #1a7f37;
  font-weight: 500;
}
.topbar .lang {
  margin-left: 18px;
  color: #3f464b;
}
.mainbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue-dark);
}
.logo svg {
  width: 38px;
  height: 38px;
}
.logo span {
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.3px;
  color: #004a67;
}
.login {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login input {
  font: 14px "Open Sans", sans-serif;
  font-style: italic;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 148px;
}
.login .btn {
  padding: 8px 18px;
}
.login-links {
  font-size: 12.5px;
  text-align: right;
  margin-top: 4px;
}
.login-links a {
  margin-left: 10px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font-family: "Rubik", sans-serif;
}
.navbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  margin-right: 28px;
}
.navbar .search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.site-header.is-compact .topbar,
.site-header.is-compact .login-links {
  display: none;
}

/* ── Legal strip (as on the real page, above the hero) ─ */
.legal-strip {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink-3);
  padding: 14px 0;
}
.legal-strip p {
  margin: 0 0 3px;
}
.risk-scale {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.risk-scale i {
  width: 20px;
  height: 20px;
  border: 1px solid #333;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.risk-scale i.on {
  background: #333;
  color: #fff;
}
.risk-scale small {
  font-size: 9px;
  color: var(--muted);
  width: 70px;
}

/* ── Sub-nav (sticky) ────────────────────────────────── */
.subnav {
  position: sticky;
  top: 28px;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.subnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  border-bottom: 3px solid transparent;
}
.subnav a img {
  width: 40px;
  height: 40px;
}
.subnav a.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--blue-deep);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}
.slide.is-active {
  opacity: 1;
}
.slide--a {
  background: radial-gradient(900px 500px at 20% 30%, #2a6f8f 0%, transparent 60%),
    radial-gradient(700px 400px at 85% 80%, #0b3b52 0%, transparent 55%),
    linear-gradient(135deg, #0d2f3f, #05161f);
}
.slide--b {
  background: radial-gradient(800px 500px at 75% 20%, #1d7f9f 0%, transparent 60%),
    radial-gradient(600px 400px at 15% 85%, #0a3648 0%, transparent 55%),
    linear-gradient(135deg, #0a2a3a, #061a24);
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='40' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.8;
}
.slide h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  max-width: 720px;
  position: relative;
}
.slide p {
  position: relative;
  font-size: 15px;
  margin: 12px 0 18px;
}
.slide .nri {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 20px;
}
.hero .prev,
.hero .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-2);
}
.hero .prev {
  left: 24px;
}
.hero .next {
  right: 24px;
}
.hero .dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero .dot.is-active {
  background: #fff;
}

/* ── Sections ────────────────────────────────────────── */
.section {
  padding: 64px 0;
}
.section--tight {
  padding: 40px 0;
}
.section--band {
  background: var(--blue-band);
  position: relative;
}
.section--band::before,
.section--band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: #fff;
}
.section--band::before {
  top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.section--band::after {
  bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.section--band .wrap {
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two.two--rev > :first-child {
  order: 2;
}
.figure {
  border-radius: 8px;
  height: 320px;
  position: relative;
  overflow: hidden;
}
.figure--a {
  background: linear-gradient(160deg, #cfe9f3, #7fbfd8 55%, #3d8fb1);
}
.figure--b {
  background: linear-gradient(160deg, #f7e7b8, #e9c665 55%, #c99a2a);
}
.figure--c {
  background: linear-gradient(160deg, #d7efe4, #8fcdb1 55%, #3f9c78);
}
.figure::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%;
  height: 90%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.figure::before {
  content: "";
  position: absolute;
  inset: 12% auto auto 8%;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.figure .tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.prose p {
  font-size: 15.5px;
  line-height: 1.6;
}
.prose b {
  color: var(--ink);
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
.icon-item img {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
}
.icon-item h4 {
  font-size: 15px;
  margin-bottom: 8px;
}
.icon-item p {
  font-size: 14px;
  color: var(--ink-3);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: grid;
  grid-template-columns: 44% 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow .15s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}
.card .figure {
  height: 150px;
  border-radius: 0;
}
.card__body {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.card h3 {
  font-size: 17px;
}
.card p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
}

/* ── Tools (calculator, simulator, catalogue) ────────── */
.tool {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.tool__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.tool h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.tool .lead {
  color: var(--ink-3);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  font: 16px "Open Sans", sans-serif;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}
.previa-typing {
  border-color: var(--blue) !important;
  box-shadow: var(--focus-ring) !important;
  background: #f2fafd !important;
}
.result {
  background: var(--blue-soft);
  border-radius: 10px;
  padding: 22px;
}
.result.is-empty .result__body {
  display: none;
}
.result.is-empty .result__hint {
  display: block;
}
.result__hint {
  display: none;
  color: var(--muted);
  font-size: 14px;
}
.figure-big {
  font-size: 40px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
  margin: 6px 0 4px;
}
.figure-big small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  display: block;
  margin-top: 6px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 6px;
}
.facts div {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
}
.facts dt {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--ink);
}
.note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
.note--warn {
  color: #8a5a00;
  background: #fff6d6;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}
.chart {
  width: 100%;
  height: auto;
  margin-top: 8px;
}
.chart .bar {
  fill: #8fcbe1;
}
.chart .bar--last {
  fill: var(--blue);
}
.chart .lbl {
  font: 11px "Open Sans", sans-serif;
  fill: var(--muted);
}
.chart .val {
  font: 11px "Open Sans", sans-serif;
  font-weight: 700;
  fill: var(--blue-dark);
}
.previa-flash {
  animation: flash 1.2s ease-out;
}
@keyframes flash {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 126, 174, 0.55);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(0, 126, 174, 0);
  }
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.filters .count {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 12px;
  white-space: nowrap;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  transition: box-shadow .2s;
}
.plan__head h4 {
  font-size: 15.5px;
}
.plan__cat {
  font-size: 12px;
  color: var(--muted);
}
.plan dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.plan dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.plan dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 600;
}
.risk {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.risk i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #e1e6ea;
}
.risk i.on {
  background: var(--blue);
}
.risk b {
  margin-left: 6px;
  font-size: 12px;
}
.plans .empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

/* ── Promo box (traspaso) ────────────────────────────── */
.promo {
  background: #fff;
  border: 2px solid var(--yellow);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 18px 0;
}
.promo h4 {
  font-size: 18px;
  color: var(--ink);
}
.promo .big {
  font-size: 36px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
  margin: 6px 0;
}
.promo ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
}
.promo .until {
  font-size: 13px;
  color: var(--muted);
}

/* ── Related links / FAQ ─────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.links-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  min-height: 84px;
  background: #fff;
}
.links-grid a:hover {
  border-color: var(--blue);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 14px;
  font-size: 24px;
  color: var(--blue);
  font-weight: 300;
}
.faq details[open] summary::after {
  content: "−";
}
.faq summary h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}
.faq .faq__a {
  padding: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 900px;
}

/* ── Contact band ────────────────────────────────────── */
.contact {
  background: var(--blue-dark);
  color: #fff;
}
.contact h2 {
  color: #fff;
}
.contact p {
  color: #d7ecf4;
}
.contact .ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.contact .btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--grey);
  padding: 40px 0 28px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}
.footer h2 {
  font-size: 15px;
  margin-bottom: 10px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li {
  margin-bottom: 6px;
}
.footer a {
  color: var(--ink-3);
  text-decoration: none;
}
.footer .legal {
  font-size: 11.5px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footer .legal p {
  margin-bottom: 6px;
}

/* ── Avatar → page: focus, pulse ─────────────────────── */
html.previa-dim body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 28, 0.55);
  z-index: 40;
  pointer-events: none;
  animation: fadein .3s;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.previa-focus {
  position: relative;
  z-index: 45;
  box-shadow: 0 0 0 6px rgba(244, 197, 61, 0.9), 0 20px 60px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  background: #fff;
}
.tool.previa-focus,
.promo.previa-focus {
  padding: 28px;
}
.section.previa-focus {
  background: #fff;
}
.section--band.previa-focus {
  background: var(--blue-band);
}
.previa-pulse {
  animation: pulse 1.4s ease-in-out infinite;
  position: relative;
  z-index: 46;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 197, 61, 0.9);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(244, 197, 61, 0);
    transform: scale(1.04);
  }
}

/* ── Question drawer + say bar ───────────────────────── */
.drawer-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483001;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 13px "Rubik", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 2147483002;
  transform: translateX(-105%);
  transition: transform .25s;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}
.drawer.is-open {
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 {
  font-size: 16px;
}
.drawer__head button {
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
}
.drawer__body {
  overflow: auto;
  padding: 8px 18px 24px;
}
.drawer__body h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 22px 0 8px;
}
.drawer .q {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.drawer .q--refuse {
  border-style: dashed;
}
.drawer .q__say {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: 14.5px "Open Sans", sans-serif;
  color: var(--ink);
  padding: 11px 14px;
  cursor: pointer;
}
.drawer .q__say:hover {
  background: var(--blue-soft);
}
.drawer .q details {
  border-top: 1px solid var(--line);
}
.drawer .q summary {
  font-size: 12px;
  color: var(--muted);
  padding: 9px 14px;
  cursor: pointer;
  list-style: none;
}
.drawer .q summary::before {
  content: "+ ";
}
.drawer .q details[open] summary::before {
  content: "− ";
}
.drawer .q p {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.drawer__hint {
  font-size: 13px;
  color: var(--ink-3);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0 4px;
}
.saybar {
  position: fixed;
  left: 16px;
  bottom: 66px;
  z-index: 2147483001;
  max-width: min(420px, calc(100% - 120px));
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
}
.saybar[hidden] {
  display: none;
}
.saybar.is-show {
  opacity: 1;
  transform: none;
}
.saybar__label {
  display: block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9fd6ec;
}
.saybar__text {
  font-size: 15px;
  line-height: 1.4;
}
.saybar__close {
  background: none;
  border: 0;
  color: #9fd6ec;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  padding: 0 2px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .cards,
  .cols-3,
  .links-grid,
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .tool__grid,
  .two,
  .cols-2 {
    grid-template-columns: 1fr;
  }
  .two.two--rev > :first-child {
    order: 0;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .legal-strip {
    grid-template-columns: 1fr;
  }
  .login input {
    display: none;
  }
  .navbar nav a {
    margin-right: 16px;
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .mainbar {
    height: 60px;
  }
  .logo svg {
    width: 30px;
    height: 30px;
  }
  .logo span {
    font-size: 19px;
  }
  .login .btn--outline,
  .login-links {
    display: none;
  }
  .login .btn {
    padding: 7px 14px;
    font-size: 13px;
  }
  .legal-strip {
    display: none;
  }
  .navbar {
    height: 44px;
  }
  .demo-banner {
    font-size: 11.5px;
    padding: 5px 12px;
  }
  .demo-banner span {
    display: none;
  }
  .demo-banner::after {
    content: "Clon de la página para probar el asistente. No es la web de CaixaBank.";
  }
  .subnav {
    top: 26px;
  }
  .subnav a img {
    width: 32px;
    height: 32px;
  }
  .tool {
    padding: 18px;
  }
  .figure-big {
    font-size: 32px;
  }
  h2 {
    font-size: 24px;
  }
  .slide h2 {
    font-size: 24px;
  }
  .hero {
    height: 340px;
  }
  .cards,
  .cols-3,
  .links-grid,
  .footer .cols,
  .filters,
  .facts {
    grid-template-columns: 1fr;
  }
  .subnav a span {
    display: none;
  }
  .subnav a {
    padding: 10px 14px;
  }
  .topbar nav a {
    margin-right: 12px;
  }
  .topbar .stock {
    display: none;
  }
  .navbar nav {
    display: none;
  }
  .section {
    padding: 40px 0;
  }
  .figure {
    height: 200px;
  }
  .saybar {
    left: 12px;
    right: 12px;
    bottom: auto;
    top: calc(40px + env(safe-area-inset-top));
    max-width: none;
  }
}

/* ── Demo modal ──────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 2147483003; background: rgba(0, 21, 28, .55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadein .15s; }
.modal__box { background: #fff; border-radius: 14px; padding: 26px 26px 22px; max-width: 460px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal__kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.modal__title { font-size: 22px; margin-bottom: 8px; }
.modal__text { font-size: 15px; color: var(--ink-3); line-height: 1.55; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
html.has-modal { overflow: hidden; }

/* ── In-page views (plan sheet, flows) ───────────────── */
.view { position: fixed; top: 30px; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--paper); overflow: auto; animation: viewin .22s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.has-view { overflow: hidden; }
.view__bar { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; }
.view__back { background: none; border: 0; font: 600 15px "Rubik", sans-serif; color: var(--blue); cursor: pointer; padding: 6px 0; }
.view__kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.view__body { padding-top: 32px; padding-bottom: 80px; }
.sheet__head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-bottom: 24px; }
.sheet__head h1 { font-size: 30px; line-height: 1.15; }
.sheet__cat { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.sheet__risk { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.sheet__risk .risk i { width: 16px; height: 16px; }
.sheet__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.sheet__box { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: #fff; }
.sheet__box h3 { font-size: 16px; margin-bottom: 10px; }
.sheet__box p { font-size: 14.5px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.returns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 4px; }
.returns div { background: var(--blue-soft); border-radius: 8px; padding: 10px 8px; text-align: center; }
.returns b { display: block; font-size: 17px; color: var(--blue-dark); }
.returns span { font-size: 11.5px; color: var(--muted); }
.returns b.neg { color: #b42318; }
.sheet__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.sheet__legal { font-size: 12px; color: var(--muted); margin-top: 22px; line-height: 1.5; }
.flow { max-width: 640px; margin: 0 auto; }
.flow h1 { font-size: 28px; margin-bottom: 6px; }
.flow__lead { color: var(--ink-3); margin-bottom: 22px; }
.flow__steps { display: flex; gap: 8px; margin-bottom: 22px; font-size: 12.5px; color: var(--muted); }
.flow__steps span { flex: 1; border-top: 3px solid var(--line); padding-top: 6px; }
.flow__steps span.on { border-top-color: var(--blue); color: var(--blue); font-weight: 600; }
.flow__form { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; }
.flow__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow__ok { background: #e8f6ee; border: 1px solid #b9e2c8; color: #1a5c33; border-radius: 10px; padding: 16px 18px; margin-top: 16px; font-size: 15px; }
.flow__note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .view { top: 26px; } .sheet__grid, .sheet__head, .flow__row, .returns { grid-template-columns: 1fr; } .returns { grid-template-columns: repeat(2, 1fr); } .view__bar { padding: 10px 16px; } .view__kicker { display: none; } }
