/* Sólo en pantalla y en tema oscuro: el claro y la impresión conservan su diseño. */
@media screen {
  main[data-theme="dark"] :is(.start-section, .faq-section) {
    --guia-fondo: #091b30;
    --guia-titulo: #faf5e9;
    --guia-texto: #d4e2ef;
    --guia-numero: #b1c4d6;
    --guia-acento: #83e1f6;
    --guia-linea: #526f87;
    background-color: var(--guia-fondo);
    color: var(--guia-titulo);
  }

  main[data-theme="dark"] :is(.start-section, .faq-section) .eyebrow {
    color: var(--guia-acento);
  }
  main[data-theme="dark"] .start-section .steps p,
  main[data-theme="dark"] .faq-section .section-heading > p,
  main[data-theme="dark"] .faq-section details > p {
    color: var(--guia-texto);
  }
  main[data-theme="dark"] .start-section .steps span,
  main[data-theme="dark"] .faq-section summary span {
    color: var(--guia-numero);
  }
  main[data-theme="dark"] .start-section,
  main[data-theme="dark"] .start-section .steps,
  main[data-theme="dark"] .start-section .steps article + article,
  main[data-theme="dark"] .faq-section .faq-list,
  main[data-theme="dark"] .faq-section details {
    border-color: var(--guia-linea);
  }

  main[data-theme="dark"] .faq-section summary::after,
  main[data-theme="dark"] .faq-section details[open] > summary {
    color: var(--guia-acento);
  }
  @media (hover: hover) {
    main[data-theme="dark"] .faq-section summary:hover {
      color: var(--guia-acento);
    }
  }
  main[data-theme="dark"] .faq-section summary:focus-visible {
    outline: 2px solid var(--guia-acento);
    outline-offset: 3px;
  }
}

/* Alcance deliberado: sólo Planes en el modo claro elegido en la portada. */
main[data-theme="light"] .plans-section {
  --planes-tinta: #112d40;
  --planes-secundario: #435a68;
  --planes-azul: #084b83;
  --planes-interactivo: #075596;
  --planes-linea: #bdcfda;
  --planes-control: #607e92;
  color: var(--planes-tinta);
  background: #f0f5f8;
}

main[data-theme="light"] .plans-section::after {
  background-image: linear-gradient(#155d8610 1px, transparent 1px),
                    linear-gradient(90deg, #155d8610 1px, transparent 1px);
}

main[data-theme="light"] .plans-section .section-heading h2 {
  color: var(--planes-tinta);
}

main[data-theme="light"] .plans-section :is(.section-heading > p, .pricing-note) {
  color: var(--planes-secundario);
}

main[data-theme="light"] .plans-section .eyebrow-dark {
  color: var(--planes-azul);
}

main[data-theme="light"] .plans-section .plan-tabs {
  background: #fff;
  border-color: var(--planes-control);
}

main[data-theme="light"] .plans-section .plan-tabs button {
  color: var(--planes-azul);
  background: transparent;
}

main[data-theme="light"] .plans-section .plan-tabs button:not(.active):hover {
  background: #e5f1f9;
}

main[data-theme="light"] .plans-section .plan-tabs button.active {
  color: #fff;
  background: var(--planes-interactivo);
  box-shadow: none;
}

main[data-theme="light"] .plans-section .promo-banner {
  color: var(--planes-tinta);
  background: #e3f3fb;
  border-color: #abcddb;
  box-shadow: none;
}

main[data-theme="light"] .plans-section .promo-banner span {
  color: #fff;
  background: var(--planes-azul);
}

main[data-theme="light"] .plans-section .promo-banner small {
  color: var(--planes-secundario);
}

main[data-theme="light"] .plans-section .draft-card {
  color: var(--planes-tinta);
  background: #fff;
  border-color: var(--planes-linea);
  box-shadow: 0 8px 26px #193e5610;
}

main[data-theme="light"] .plans-section .draft-card::before {
  background: linear-gradient(90deg, #387fad, transparent);
}

main[data-theme="light"] .plans-section .draft-card.featured {
  background: #eaf5fc;
  border-color: var(--planes-interactivo);
  box-shadow: 0 8px 26px #0e4e7e1a;
}

main[data-theme="light"] .plans-section .draft-card.featured::before {
  background: var(--planes-interactivo);
  opacity: 1;
}

main[data-theme="light"] .plans-section .draft-card:hover {
  border-color: var(--planes-interactivo);
  box-shadow: 0 13px 32px #193e561e;
}

main[data-theme="light"] .plans-section .draft-card :is(h3, .draft-speed, .plan-promo-price strong) {
  color: var(--planes-tinta);
}

main[data-theme="light"] .plans-section .draft-card :is(.draft-plan-line, .draft-use, .draft-base, .plan-promo-price span) {
  color: var(--planes-secundario);
}

main[data-theme="light"] .plans-section .draft-card :is(.draft-speed span, .draft-discount) {
  color: var(--planes-azul);
}

main[data-theme="light"] .plans-section .draft-card .draft-pick {
  color: #fff;
  background: var(--planes-interactivo);
}

main[data-theme="light"] .plans-section .draft-card .draft-pricing {
  border-color: var(--planes-linea);
}

main[data-theme="light"] .plans-section .draft-card .button-outline {
  color: var(--planes-azul);
  background: #fff;
  border-color: var(--planes-control);
}

main[data-theme="light"] .plans-section .draft-card .button-outline:hover {
  background: #e5f1f9;
  border-color: var(--planes-interactivo);
}

main[data-theme="light"] .plans-section .draft-card .button-dark {
  color: #fff;
  background: var(--planes-interactivo);
  border-color: var(--planes-interactivo);
}

main[data-theme="light"] .plans-section .draft-card .button-dark:hover {
  background: #063e70;
  border-color: #063e70;
}

/* Evita interpolar el texto y el fondo por el mismo tono al pasar a claro. */
main[data-theme="light"] .plans-section :is(.draft-card, .draft-card .button, .plan-tabs button) {
  transition-property: transform, box-shadow;
}

main[data-theme="light"] .plans-section :is(.plan-tabs button, .draft-card .button):focus-visible {
  outline: 2px solid #083b68;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

main[data-theme="light"] .plans-section .draft-includes {
  color: var(--planes-secundario);
  background: #fff;
  border-color: var(--planes-linea);
}

main[data-theme="light"] .plans-section .draft-includes strong {
  color: var(--planes-azul);
}
