.csnh-home-engagement {
  --csnh-home-navy: var(--aff-brand-900, #08264a);
  --csnh-home-deep: #061b34;
  --csnh-home-blue: var(--aff-brand, #2f80ed);
  --csnh-home-gold: var(--aff-accent, #f9b233);
  --csnh-home-ink: var(--aff-ink, #172033);
  --csnh-home-muted: var(--aff-muted, #64748b);
  --csnh-home-line: #d9e5f2;
  max-width: 78rem;
  margin: clamp(2rem, 5vw, 4.5rem) auto;
  color: var(--csnh-home-ink);
}

/* On Herramientas the same modules are the full starting point for the page,
 * so they use the page width and sit directly below the tools hero. */
.csnh-home-engagement--tools {
  max-width: none;
  margin: 0 0 1.8rem;
  scroll-margin-top: 1.5rem;
}

.csnh-home-engagement--tools .csnh-home-engagement__intro {
  margin-bottom: 1.15rem;
}

.csnh-home-engagement__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.45rem;
}

.csnh-home-engagement__eyebrow,
.csnh-home-card__kicker {
  margin: 0 0 .45rem;
  color: var(--csnh-home-gold);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.3;
}

.csnh-home-engagement__intro h2 {
  max-width: 42rem;
  margin: 0;
  color: var(--csnh-home-navy);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  letter-spacing: -.035em;
  line-height: 1.03;
}

.csnh-home-engagement__lead {
  max-width: 47rem;
  margin: .85rem 0 0;
  color: var(--csnh-home-muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.6;
}

.csnh-home-engagement__signals {
  display: grid;
  flex: 0 0 auto;
  gap: .5rem;
  padding: .85rem 1rem;
  border: 1px solid var(--csnh-home-line);
  border-radius: 14px;
  background: #f7faff;
  color: #52647d;
  font-size: .82rem;
  font-weight: 750;
}

.csnh-home-engagement__signals span { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.csnh-home-engagement__signals b { color: var(--csnh-home-blue); font-size: .95rem; }

.csnh-home-engagement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  gap: 1.25rem;
}

.csnh-home-quiz,
.csnh-home-payout {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 17px 38px rgba(8, 38, 74, .12);
}

.csnh-home-quiz {
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 92% 4%, rgba(249, 178, 51, .26), transparent 13rem),
    radial-gradient(circle at 2% 94%, rgba(47, 128, 237, .28), transparent 17rem),
    linear-gradient(140deg, var(--csnh-home-deep), var(--csnh-home-navy));
  color: #fff;
}

.csnh-home-card__glow {
  position: absolute;
  top: -5rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 1.2rem rgba(255, 255, 255, .035), 0 0 0 2.4rem rgba(255, 255, 255, .025);
  pointer-events: none;
}

.csnh-home-card__header {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.csnh-home-card__header h3 {
  max-width: 32rem;
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -.025em;
  line-height: 1.08;
}

.csnh-home-card__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 1.85rem;
  padding: .26rem .62rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.csnh-home-card__badge--light { border-color: #c8d8eb; color: #52647d; }
.csnh-home-card__lead { position: relative; margin: .75rem 0 1.15rem; color: #c9dcf1; line-height: 1.55; }

.csnh-home-quiz__toolbar {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.csnh-home-quiz__toolbar label {
  display: grid;
  min-width: min(100%, 14rem);
  gap: .35rem;
  color: #dbeaff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.csnh-home-quiz__toolbar select {
  min-height: 2.55rem;
  padding: .45rem .7rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
}

.csnh-home-quiz__toolbar option { background: var(--csnh-home-navy); color: #fff; }
.csnh-home-quiz__toolbar select:focus-visible { box-shadow: 0 0 0 3px rgba(249, 178, 51, .55); }
.csnh-home-quiz__step { padding-bottom: .55rem; color: #a9c3df; font-size: .78rem; font-weight: 850; letter-spacing: .07em; white-space: nowrap; }
.csnh-home-quiz__step i { padding: 0 .18rem; color: var(--csnh-home-gold); font-style: normal; }

.csnh-home-quiz__progress { position: relative; height: .3rem; margin: 1rem 0 1.15rem; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.csnh-home-quiz__progress span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--csnh-home-gold), #ffd982); transition: width .25s ease; }

.csnh-home-quiz__question { position: relative; min-height: 13.5rem; }
.csnh-home-quiz__question h4 { margin: 0 0 .32rem; color: #fff; font-size: 1.14rem; line-height: 1.25; }
.csnh-home-quiz__question > p { margin: 0 0 .8rem; color: #a9c3df; font-size: .84rem; line-height: 1.45; }

.csnh-home-quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
.csnh-home-quiz__option {
  display: grid;
  min-height: 4.35rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  padding: .7rem .75rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .075);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.csnh-home-quiz__option:hover,
.csnh-home-quiz__option:focus-visible { border-color: rgba(249, 178, 51, .85); background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }
.csnh-home-quiz__option.is-selected { border-color: var(--csnh-home-gold); background: rgba(249, 178, 51, .17); box-shadow: inset 0 0 0 1px rgba(249, 178, 51, .25); }
.csnh-home-quiz__option-icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 9px; background: rgba(249, 178, 51, .16); color: #ffe19a; font-size: 1.05rem; }
.csnh-home-quiz__option strong { display: block; color: #fff; font-size: .84rem; line-height: 1.2; }
.csnh-home-quiz__option small { display: block; margin-top: .22rem; color: #aac5df; font-size: .7rem; line-height: 1.25; }

.csnh-home-quiz__actions { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1rem; }
.csnh-home-button { display: inline-flex; min-height: 2.6rem; align-items: center; justify-content: center; gap: .45rem; padding: .52rem .85rem; border-radius: 9px; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 900; line-height: 1.2; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.csnh-home-button:hover, .csnh-home-button:focus-visible { transform: translateY(-2px); text-decoration: none; }
.csnh-home-button:focus-visible { outline: 3px solid var(--csnh-home-gold); outline-offset: 2px; }
.csnh-home-button--primary { border: 1px solid var(--csnh-home-gold); background: var(--csnh-home-gold); color: var(--csnh-home-navy); }
.csnh-home-button--primary:hover, .csnh-home-button--primary:focus-visible { border-color: #ffd67c; background: #ffd67c; color: var(--csnh-home-navy); }
.csnh-home-button--primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.csnh-home-button--ghost { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #dcecff; }
.csnh-home-button--ghost:hover, .csnh-home-button--ghost:focus-visible { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); color: #fff; }
.csnh-home-button--dark { border: 1px solid var(--csnh-home-navy); background: var(--csnh-home-navy); color: #fff; }
.csnh-home-button--dark:hover, .csnh-home-button--dark:focus-visible { border-color: var(--csnh-home-blue); background: var(--csnh-home-blue); color: #fff; }
.csnh-home-card__fineprint { position: relative; margin: 1rem 0 0; color: #91acd0; font-size: .7rem; line-height: 1.45; }

.csnh-home-quiz__result { position: relative; min-height: 13.5rem; padding: 1rem; border: 1px solid rgba(249, 178, 51, .45); border-radius: 14px; background: rgba(255, 255, 255, .08); }
.csnh-home-quiz__result-kicker { margin: 0 0 .35rem; color: #ffe19a; font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.csnh-home-quiz__result h4 { margin: 0; color: #fff; font-size: 1.35rem; }
.csnh-home-quiz__result p { margin: .55rem 0 .7rem; color: #c9dcf1; font-size: .84rem; line-height: 1.5; }
.csnh-home-quiz__checks { display: grid; gap: .35rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.csnh-home-quiz__checks li { color: #e7f2ff; font-size: .78rem; line-height: 1.35; }
.csnh-home-quiz__checks li::before { margin-right: .4rem; color: var(--csnh-home-gold); content: "✓"; font-weight: 900; }
.csnh-home-quiz__result .csnh-home-button { margin-top: .15rem; }

.csnh-home-payout {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--csnh-home-line);
  background: linear-gradient(160deg, #fff, #f7faff);
}

.csnh-home-payout__stripe { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--csnh-home-gold), #f5d47b 44%, var(--csnh-home-blue)); }
.csnh-home-payout .csnh-home-card__header h3 { color: var(--csnh-home-navy); }
.csnh-home-payout .csnh-home-card__kicker { color: #c08008; }
.csnh-home-payout .csnh-home-card__lead { color: var(--csnh-home-muted); }

.csnh-home-payout__stats { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: .55rem; margin: 1.05rem 0; }
.csnh-home-payout__stats div { min-width: 0; padding: .72rem .75rem; border: 1px solid #e0eaf5; border-radius: 11px; background: #fff; }
.csnh-home-payout__stats strong { display: block; overflow: hidden; color: var(--csnh-home-navy); font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.csnh-home-payout__stats span { display: block; margin-top: .28rem; color: #70819a; font-size: .68rem; font-weight: 800; line-height: 1.2; }

.csnh-home-payout__empty { display: flex; align-items: center; gap: .85rem; min-height: 7.3rem; padding: 1rem; border: 1px dashed #b8cde4; border-radius: 14px; background: rgba(238, 246, 255, .72); }
.csnh-home-payout__empty-icon { display: grid; width: 2.65rem; height: 2.65rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e4f0ff; color: var(--csnh-home-blue); font-size: 1.25rem; font-weight: 900; }
.csnh-home-payout__empty strong { display: block; color: var(--csnh-home-navy); font-size: .9rem; }
.csnh-home-payout__empty p { margin: .3rem 0 0; color: var(--csnh-home-muted); font-size: .77rem; line-height: 1.45; }

.csnh-home-payout__table-wrap { overflow-x: auto; border: 1px solid #e0eaf5; border-radius: 13px; background: #fff; }
.csnh-home-payout__table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.csnh-home-payout__table th, .csnh-home-payout__table td { padding: .68rem .72rem; border-bottom: 1px solid #edf2f8; text-align: left; vertical-align: middle; }
.csnh-home-payout__table thead th { color: #72839b; font-size: .65rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.csnh-home-payout__table tbody tr:last-child th, .csnh-home-payout__table tbody tr:last-child td { border-bottom: 0; }
.csnh-home-payout__table tbody th { color: var(--csnh-home-navy); font-weight: 850; }
.csnh-home-payout__table td { color: var(--csnh-home-muted); }
.csnh-home-payout__table td strong, .csnh-home-payout__table td small { display: block; }
.csnh-home-payout__table td strong { color: #238154; }
.csnh-home-payout__table td small { margin-top: .15rem; font-size: .67rem; }
.csnh-home-payout__table td a { display: block; margin-top: .28rem; color: var(--csnh-home-blue); font-size: .64rem; font-weight: 850; line-height: 1.25; text-decoration: underline; text-underline-offset: .12em; }

.csnh-home-payout__method { margin-top: .9rem; border: 1px solid #dce7f3; border-radius: 11px; background: #fff; }
.csnh-home-payout__method summary { display: flex; align-items: center; justify-content: space-between; padding: .7rem .8rem; color: var(--csnh-home-navy); cursor: pointer; font-size: .78rem; font-weight: 900; list-style: none; }
.csnh-home-payout__method summary::-webkit-details-marker { display: none; }
.csnh-home-payout__method summary span { color: var(--csnh-home-blue); font-size: 1rem; }
.csnh-home-payout__method[open] summary span { transform: rotate(180deg); }
.csnh-home-payout__method > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; padding: .75rem .8rem .85rem; border-top: 1px solid #e5edf6; }
.csnh-home-payout__method > div span { color: var(--csnh-home-muted); font-size: .7rem; line-height: 1.35; }
.csnh-home-payout__method b { display: block; margin-bottom: .15rem; color: var(--csnh-home-blue); font-size: .68rem; }

.csnh-home-payout__footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1rem; }
.csnh-home-payout__footer > span { color: #7d8da3; font-size: .7rem; text-align: right; }
.csnh-home-payout .csnh-home-card__fineprint { color: #8291a6; }

.csnh-home-engagement a:focus-visible,
.csnh-home-engagement button:focus-visible,
.csnh-home-engagement summary:focus-visible { outline: 3px solid var(--csnh-home-gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .csnh-home-engagement__intro { align-items: start; flex-direction: column; gap: 1rem; }
  .csnh-home-engagement__signals { grid-template-columns: repeat(3, auto); }
  .csnh-home-engagement__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .csnh-home-engagement { margin-top: 2rem; margin-bottom: 2rem; }
  .csnh-home-engagement__signals { grid-template-columns: 1fr; width: 100%; box-sizing: border-box; }
  .csnh-home-card__header { gap: .55rem; }
  .csnh-home-card__badge { font-size: .6rem; }
  .csnh-home-quiz__options { grid-template-columns: 1fr; }
  .csnh-home-quiz__question { min-height: 19rem; }
  .csnh-home-quiz__result { min-height: 19rem; }
  .csnh-home-payout__stats { grid-template-columns: repeat(2, 1fr); }
  .csnh-home-payout__stats div:last-child { grid-column: 1 / -1; }
  .csnh-home-payout__method > div { grid-template-columns: 1fr; }
  .csnh-home-payout__footer { align-items: start; flex-direction: column; }
  .csnh-home-payout__footer > span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .csnh-home-engagement *, .csnh-home-engagement *::before, .csnh-home-engagement *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
