/* /contribuyente-especial/ — test de 30 segundos y guía. Móvil primero. */

.ac-ce {
  background: var(--ac-paper);
}

/* Portada --------------------------------------------------------------- */
.ac-ce-hero {
  padding: calc(var(--ac-header-h, 72px) + 18px) 0 clamp(28px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(154, 47, 99, 0.10), transparent 55%),
    var(--ac-paper);
}

.ac-ce-dateline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 10px 0 0;
  padding: 8px 0;
  border-top: 1px solid var(--ac-line-strong);
  border-bottom: 1px solid var(--ac-line);
  color: var(--ac-muted);
  font: 700 0.64rem/1.4 var(--ac-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-ce-dateline a {
  color: var(--ac-rose);
}

.ac-ce-hero__title {
  max-width: 22ch;
  margin: 22px auto 0;
  color: var(--ac-rose-ink);
  font: 400 clamp(1.9rem, 4.6vw, 3.2rem) / 1.06 var(--ac-serif);
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

.ac-ce-hero__title em {
  color: var(--ac-rose);
  font-style: italic;
}

.ac-ce-hero__lead {
  max-width: 52ch;
  margin: 12px auto 0;
  color: var(--ac-muted);
  text-align: center;
}

/* Dos cifras clave: lo primero que alguien busca. */
.ac-ce-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 20px auto 0;
}

.ac-ce-facts div {
  padding: 12px 14px;
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.7);
}

.ac-ce-facts dt {
  color: var(--ac-muted);
  font: 700 0.62rem/1.2 var(--ac-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-ce-facts dd {
  margin: 4px 0 0;
  color: var(--ac-rose-ink);
  font-size: 0.86rem;
  line-height: 1.3;
}

.ac-ce-facts strong {
  display: block;
  color: var(--ac-rose);
  font: 400 1.6rem/1.05 var(--ac-serif);
}

.ac-ce-facts .ac-ce-facts__bs {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--ac-line-strong);
  color: var(--ac-plum);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Tasa del euro del día, con un punto «en vivo». */
.ac-ce-rate {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--ac-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ac-ce-rate strong {
  color: var(--ac-rose-ink);
}

.ac-ce-rate__dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #2e9b5f;
  box-shadow: 0 0 0 0 rgba(46, 155, 95, 0.5);
  animation: ac-ce-live 2.4s ease-out infinite;
}

@keyframes ac-ce-live {
  0% { box-shadow: 0 0 0 0 rgba(46, 155, 95, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(46, 155, 95, 0); }
}

/* Tarjeta del test ------------------------------------------------------- */
.ac-ce-test {
  max-width: 720px;
  margin: 24px auto 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--ac-line);
  border-top: 4px solid var(--ac-rose);
  border-radius: 10px;
  background: var(--ac-white);
  box-shadow: 0 24px 50px -36px rgba(42, 15, 30, 0.55);
}

.ac-ce-noscript {
  margin: 0;
}

.ac-ce-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.ac-ce-progress span {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--ac-line);
  transition: background 0.3s ease;
}

.ac-ce-progress span.is-on {
  background: var(--ac-rose);
}

.ac-ce-step {
  margin: 0;
  padding: 0;
  border: 0;
}

.ac-ce-step legend {
  margin-bottom: 14px;
  color: var(--ac-rose-ink);
  font: 400 clamp(1.25rem, 2.6vw, 1.55rem) / 1.2 var(--ac-serif);
}

.ac-ce-step__n {
  display: block;
  margin-bottom: 4px;
  color: var(--ac-gold-text, var(--ac-muted));
  font: 700 0.66rem/1 var(--ac-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Opciones: botones grandes para el pulgar. */
.ac-ce-choices {
  display: grid;
  gap: 10px;
}

.ac-ce-choices label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1.5px solid var(--ac-line-strong);
  border-radius: 10px;
  background: var(--ac-paper);
  color: var(--ac-rose-ink);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}

.ac-ce-choices label:hover {
  border-color: var(--ac-rose);
}

.ac-ce-choices label:active {
  transform: scale(0.99);
}

.ac-ce-choices input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--ac-rose);
}

.ac-ce-choices label:has(input:checked) {
  border-color: var(--ac-rose);
  background: rgba(154, 47, 99, 0.1);
  box-shadow: inset 0 0 0 1px var(--ac-rose);
}

.ac-ce-fields {
  display: grid;
  gap: 14px;
}

.ac-ce-fields label {
  display: grid;
  gap: 6px;
  color: var(--ac-rose-ink);
  font-weight: 600;
  font-size: 0.94rem;
}

.ac-ce-fields input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--ac-line-strong);
  border-radius: 10px;
  background: var(--ac-paper);
  font: 600 1.1rem/1.2 var(--ac-sans);
  color: var(--ac-rose-ink);
}

.ac-ce-fields input:focus {
  border-color: var(--ac-rose);
  outline: 2px solid rgba(154, 47, 99, 0.25);
  outline-offset: 1px;
}

.ac-ce-fields small {
  color: var(--ac-muted);
  font-weight: 400;
}

/* Tasa ya cargada: se ve como dato, no como tarea. */
.ac-ce-fields__rate {
  padding: 12px 14px;
  border: 1px dashed var(--ac-line-strong);
  border-radius: 10px;
  background: rgba(46, 155, 95, 0.05);
}

.ac-ce-fields__prefix {
  position: relative;
  display: block;
}

.ac-ce-fields__prefix > span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--ac-muted);
  font: 600 1.1rem/1 var(--ac-sans);
  transform: translateY(-50%);
  pointer-events: none;
}

.ac-ce-fields__prefix input {
  padding-left: 48px;
  background: var(--ac-white);
}

.ac-ce-error {
  margin: 12px 0 0;
  color: #a3233d;
  font-weight: 600;
}

.ac-ce-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.ac-ce-nav .ac-ce-next {
  margin-left: auto;
}

.ac-ce-back,
.ac-ce-again {
  padding: 10px 6px;
  border: 0;
  background: none;
  color: var(--ac-muted);
  font: 600 0.92rem/1 var(--ac-sans);
  cursor: pointer;
}

/* Termómetro ------------------------------------------------------------ */
.ac-ce-meter {
  margin-bottom: 18px;
}

.ac-ce-meter__label {
  margin: 0 0 30px;
  color: var(--ac-rose-ink);
}

.ac-ce-meter__bar {
  position: relative;
  height: 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(154, 47, 99, 0.08), rgba(154, 47, 99, 0.18));
}

.ac-ce-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--ac-gold), var(--ac-rose));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ac-ce-meter__mark,
.ac-ce-meter__you {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 26px;
  background: var(--ac-plum);
  transform: translateX(-1px);
}

.ac-ce-meter__mark i,
.ac-ce-meter__you i {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ac-muted);
  font: 700 0.62rem/1 var(--ac-sans);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ac-ce-meter__you {
  top: -22px;
  height: 0;
  background: none;
  transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ac-ce-meter__you i {
  top: -2px;
  padding: 3px 7px;
  border-radius: 10px;
  background: var(--ac-rose);
  color: var(--ac-paper);
}

.ac-ce-meter__note {
  margin: 34px 0 0;
  color: var(--ac-muted);
  font-size: 0.86rem;
}

/* Veredicto ------------------------------------------------------------- */
.ac-ce-verdict {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--ac-line);
  background: var(--ac-paper);
  animation: ac-ce-pop 0.45s ease both;
}

.ac-ce-verdict--in {
  border-color: rgba(154, 47, 99, 0.45);
  background: linear-gradient(180deg, rgba(154, 47, 99, 0.08), var(--ac-paper));
}

.ac-ce-verdict--out {
  border-color: rgba(184, 137, 62, 0.55);
  background: linear-gradient(180deg, rgba(217, 178, 106, 0.16), var(--ac-paper));
}

.ac-ce-verdict__tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--ac-plum);
  color: var(--ac-paper);
  font: 700 0.66rem/1.2 var(--ac-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-ce-verdict__title {
  margin: 12px 0 6px;
  color: var(--ac-rose-ink);
  font: 400 clamp(1.3rem, 2.8vw, 1.7rem) / 1.18 var(--ac-serif);
}

.ac-ce-verdict__text {
  margin: 0;
}

.ac-ce-verdict__base,
.ac-ce-verdict__fine {
  margin: 10px 0 0;
  color: var(--ac-muted);
  font-size: 0.84rem;
}

.ac-ce-verdict__base a,
.ac-ce-verdict__fine a {
  color: var(--ac-rose);
}

.ac-ce-verdict__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 14px;
}

.ac-ce-share {
  padding: 10px 6px;
  color: var(--ac-rose);
  font: 700 0.92rem/1 var(--ac-sans);
}

/* Invitación a contratar: siempre presente, el bloque más visible. */
.ac-ce-hire {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(154, 47, 99, 0.5) 0%, rgba(42, 15, 30, 0) 60%),
    var(--ac-plum);
  color: rgba(247, 242, 232, 0.86);
  box-shadow: 0 22px 40px -30px rgba(42, 15, 30, 0.9);
}

.ac-ce-hire__kicker {
  margin: 0;
  color: var(--ac-gold-light);
  font: 700 0.62rem/1 var(--ac-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-ce-hire__title {
  margin: 0;
  color: var(--ac-paper);
  font: 400 clamp(1.2rem, 2.4vw, 1.45rem) / 1.2 var(--ac-serif);
}

.ac-ce-hire__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ac-ce-hire__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #0b2d18;
  font: 800 1rem/1.2 var(--ac-sans);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(37, 211, 102, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ac-ce-hire__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(37, 211, 102, 1);
}

.ac-ce-hire__alt {
  justify-self: center;
  color: var(--ac-gold-light);
  font-size: 0.86rem;
}

@keyframes ac-ce-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Índice de la página ---------------------------------------------------- */
.ac-ce-index {
  position: sticky;
  top: var(--ac-header-h, 72px);
  z-index: 5;
  border-top: 1px solid var(--ac-line);
  border-bottom: 1px solid var(--ac-line);
  background: rgba(247, 242, 232, 0.94);
  backdrop-filter: blur(6px);
}

.ac-ce-index .ac-container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-block: 10px;
  scrollbar-width: none;
}

.ac-ce-index a {
  flex: none;
  color: var(--ac-rose-ink);
  font: 700 0.74rem/1 var(--ac-sans);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.ac-ce-index a:hover {
  color: var(--ac-rose);
}

/* Cuerpo ---------------------------------------------------------------- */
.ac-ce-body {
  max-width: 980px;
  padding-block: clamp(26px, 4vw, 44px);
}

.ac-ce-block {
  margin-bottom: clamp(30px, 4vw, 46px);
  scroll-margin-top: calc(var(--ac-header-h, 72px) + 56px);
}

.ac-ce-block .ac-pbar {
  margin-bottom: 14px;
}

.ac-ce-block a:not(.ac-btn),
.ac-ce-sources a {
  color: var(--ac-rose);
}

/* El índice alineado con el cuerpo. */
.ac-ce-index .ac-container {
  max-width: 980px;
}

/* Preguntas: en tarjeta y alineadas a la izquierda. */
.ac-ce-faq {
  padding: 4px clamp(14px, 2.5vw, 26px);
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background: var(--ac-white);
}

.ac-ce-faq .ac-faq__q,
.ac-ce-faq .ac-faq__qt,
.ac-ce-faq .ac-faq__a {
  text-align: left;
}

.ac-ce-faq .ac-faq__qt {
  flex: 1;
}

.ac-ce-hint {
  color: var(--ac-muted);
  font-size: 0.9rem;
}

.ac-ce-table {
  overflow-x: auto;
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  background: var(--ac-white);
}

.ac-ce-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.ac-ce-table th,
.ac-ce-table td {
  padding: 14px;
  border-bottom: 1px solid var(--ac-line);
  text-align: left;
  vertical-align: top;
}

.ac-ce-table thead th {
  background: var(--ac-plum);
  color: var(--ac-paper);
  font: 700 0.8rem/1.3 var(--ac-sans);
}

.ac-ce-table thead a {
  color: var(--ac-gold-light);
  font-weight: 600;
}

.ac-ce-table tbody th {
  color: var(--ac-rose-ink);
  font-weight: 700;
}

.ac-ce-table td {
  color: var(--ac-rose-ink);
  font: 400 1.15rem/1.3 var(--ac-serif);
}

.ac-ce-table small {
  display: block;
  color: var(--ac-muted);
  font-weight: 400;
}

.ac-ce-table td small {
  margin-top: 4px;
  color: var(--ac-plum);
  font: 700 0.82rem/1.3 var(--ac-sans);
  font-variant-numeric: tabular-nums;
}

.ac-ce-split {
  display: grid;
  gap: 0 clamp(24px, 3vw, 40px);
}

.ac-ce-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-ce-list li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  background: var(--ac-white);
}

.ac-ce-list li::before {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--ac-gold);
  font-weight: 700;
  content: "•";
}

.ac-ce-list--yes li::before {
  color: var(--ac-rose);
  content: "✓";
}

.ac-ce-list--no li::before {
  color: #a3233d;
  content: "✕";
}

.ac-ce-list a {
  white-space: nowrap;
  font-size: 0.85rem;
}

/* Pasos ----------------------------------------------------------------- */
.ac-ce-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ac-ce-steps li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 16px 16px 60px;
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  background: var(--ac-white);
}

.ac-ce-steps__n {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ac-plum);
  color: var(--ac-gold-light);
  font: 400 1.05rem/1 var(--ac-serif);
}

.ac-ce-steps strong {
  color: var(--ac-rose-ink);
}

.ac-ce-steps a {
  font-size: 0.85rem;
}

/* Consultas desplegables de las guías fiscales */
.ac-fiscal-answers {
  display: grid;
  gap: 10px;
}

.ac-fiscal-answers__item {
  border: 1px solid var(--ac-line);
  border-inline-start: 3px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px -12px rgba(42, 15, 30, 0.4);
}

.ac-fiscal-answers__item[open] {
  border-inline-start-color: var(--ac-rose);
  box-shadow: 0 9px 22px -14px rgba(42, 15, 30, 0.44);
}

.ac-fiscal-answers__question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 2.5vw, 22px);
  border-radius: 5px;
  color: var(--ac-rose-ink);
  font: 500 clamp(1.04rem, 1.7vw, 1.22rem)/1.35 var(--ac-serif);
  cursor: pointer;
  list-style: none;
}

.ac-fiscal-answers__question::-webkit-details-marker {
  display: none;
}

.ac-fiscal-answers__question::after {
  content: "+" / "";
  color: var(--ac-rose);
  font: 500 1.2rem/1 var(--ac-sans);
}

.ac-fiscal-answers__item[open] .ac-fiscal-answers__question::after {
  content: "−" / "";
}

.ac-fiscal-answers__question:is(:hover, :focus-visible) {
  background: var(--ac-white);
}

.ac-fiscal-answers__body {
  margin-inline: clamp(14px, 2.5vw, 22px);
  padding: 11px 0 15px;
  border-top: 1px solid var(--ac-line);
}

.ac-fiscal-answers__body p {
  margin: 0 0 6px;
  color: var(--ac-text);
}

.ac-fiscal-answers__body a {
  font-size: 0.85rem;
  font-weight: 650;
}

/* La norma -------------------------------------------------------------- */
.ac-ce-law {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 12px;
  background: var(--ac-plum);
  color: rgba(247, 242, 232, 0.88);
}

.ac-ce-law h2 {
  margin: 6px 0 10px;
  color: var(--ac-paper);
  font: 400 clamp(1.3rem, 2.6vw, 1.7rem) / 1.2 var(--ac-serif);
}

.ac-ce-law__kicker {
  margin: 0;
  color: var(--ac-gold-light);
  font: 700 0.66rem/1 var(--ac-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-ce-law .ac-btn {
  margin-top: 8px;
}

.ac-ce-sources {
  color: var(--ac-muted);
  font-size: 0.86rem;
}

/* Escritorio ------------------------------------------------------------ */
@media (min-width: 720px) {
  .ac-ce-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ac-ce-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ac-ce-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ac-ce-steps li {
    padding: 58px 16px 16px;
  }

}

/* Escritorio ancho: texto a la izquierda, test a la derecha (se ve sin bajar). */
@media (min-width: 980px) {
  .ac-ce-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
    margin-top: 26px;
  }

  .ac-ce-hero__copy {
    position: sticky;
    top: calc(var(--ac-header-h, 72px) + 24px);
  }

  .ac-ce-hero__title,
  .ac-ce-hero__lead {
    margin-inline: 0;
    text-align: left;
  }

  .ac-ce-hero__title {
    margin-top: 6px;
  }

  .ac-ce-facts,
  .ac-ce-rate {
    margin-inline: 0;
  }

  .ac-ce-test {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-ce-meter__fill,
  .ac-ce-meter__you,
  .ac-ce-verdict,
  .ac-ce-rate__dot {
    transition: none;
    animation: none;
  }
}

/* La barra fija de WhatsApp (móvil) se aparta mientras el test está en pantalla. */
@media (max-width: 980px) {
  .ac-wa {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .ac-ce-testing .ac-wa {
    animation: none;
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
  }
}

/* Encabezado del formulario: dice qué es y llama la atención (11/11/2026). */
.ac-test-head {
  margin: calc(-1 * clamp(18px, 3vw, 30px)) calc(-1 * clamp(18px, 3vw, 30px)) 18px;
  padding: clamp(16px, 2.4vw, 22px) clamp(18px, 3vw, 30px);
  border-radius: 6px 6px 0 0;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(217, 178, 106, 0.28) 0%, rgba(217, 178, 106, 0) 55%),
    linear-gradient(120deg, var(--ac-plum) 0%, #4a1631 100%);
  color: rgba(247, 242, 232, 0.86);
}

.ac-test-head p {
  margin: 0;
}

.ac-test-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ac-gold-light);
  color: var(--ac-plum);
  font: 800 0.64rem/1.2 var(--ac-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-test-head__badge span {
  color: #1f8a4c;
  font-size: 0.7rem;
  animation: ac-ce-blink 1.6s ease-in-out infinite;
}

@keyframes ac-ce-blink {
  50% { opacity: 0.3; }
}

.ac-test-head__title {
  margin-top: 10px !important;
  color: var(--ac-paper);
  font: 400 clamp(1.45rem, 3vw, 1.95rem) / 1.12 var(--ac-serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ac-test-head__text {
  margin-top: 8px !important;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .ac-test-head__badge span {
    animation: none;
  }
}

/* Compacto (11/11/2026): el primer paso completo debe verse sin bajar. */
.ac-test-head {
  margin-bottom: 14px;
  padding: 12px clamp(16px, 2.4vw, 24px) 13px;
}

.ac-test-head__title {
  margin-top: 6px !important;
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
}

.ac-test-head__text {
  margin-top: 4px !important;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ac-ce-test .ac-ce-progress {
  margin-bottom: 12px;
}

.ac-ce-test .ac-ce-step legend {
  margin-bottom: 10px;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
}

.ac-ce-test .ac-ce-choices {
  gap: 8px;
}

.ac-ce-test .ac-ce-choices label {
  min-height: 46px;
  padding: 8px 12px;
  font-size: 0.93rem;
  line-height: 1.3;
}

.ac-ce-test .ac-ce-nav {
  margin-top: 12px;
}

@media (min-width: 980px) {
  .ac-ce-hero {
    padding-top: calc(var(--ac-header-h, 72px) + 8px);
  }

  .ac-ce-hero__grid {
    margin-top: 16px;
  }
}

/* Quién te califica en cada escalón (arts. 2 y 3). */
.ac-ce-facts .ac-ce-facts__who {
  margin-top: 6px;
  color: var(--ac-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ac-ce-facts .ac-ce-facts__who a {
  color: var(--ac-rose);
}

.ac-ce-facts dt {
  line-height: 1.35;
}

/* Móvil: el primer paso del test entra en pantalla sin cambiar el diseño. */
@media (max-width: 719px) {
  .ac-test-head__text { display: none; }
  .ac-test-head__title { font-size: 1.12rem; }
  .ac-ce-test .ac-ce-step legend { font-size: 1.05rem; margin-bottom: 8px; }
  .ac-ce-test .ac-ce-choices { gap: 6px; }
  .ac-ce-test .ac-ce-choices label { min-height: 40px; padding: 6px 10px; font-size: 0.86rem; }
  .ac-ce-test .ac-ce-choices input { width: 18px; height: 18px; }
}

/* Títulos de las dos tarjetas de montos («Fuera de la Región Capital» / «Región Capital»):
   todo en negrita, oscuros y legibles en móvil. */
.ac-ce-facts dt {
  color: var(--ac-plum);
  font: 800 0.82rem/1.25 var(--ac-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 719px) {
  .ac-ce-facts dt {
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    padding-bottom: 2px;
  }
}
