/* ==================================================
   1. VARIABLES
================================================== */

:root {
  --font-main:
    "IBM Plex Sans",
    Arial,
    Helvetica,
    sans-serif;

  --page: #f3f2ee;
  --paper: #ffffff;
  --paper-secondary: #ebe9e2;
  --paper-hover: #f7f6f2;

  --ink: #20262b;
  --ink-soft: #4f575e;
  --muted: #737a80;

  --line: #d7d5cf;
  --line-strong: #bbb9b2;

  --navy: #183348;
  --navy-dark: #102534;
  --navy-soft: #e4ebef;

  --green: #466454;
  --green-soft: #e5ede8;

  --amber: #806b3c;
  --amber-soft: #f0eadb;

  --red: #914747;
  --red-soft: #f2e5e5;

  --white: #ffffff;
  --black: #111111;

  --shadow:
    0 4px 18px rgb(25 33 39 / 0.055);

  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;

  --container: 1180px;

  --transition: 180ms ease;
}


/* ==================================================
   2. MODO OSCURO
================================================== */

body.dark-mode {
  --page: #171a1d;
  --paper: #202428;
  --paper-secondary: #292e32;
  --paper-hover: #252a2e;

  --ink: #f2f1ed;
  --ink-soft: #c3c5c5;
  --muted: #969b9e;

  --line: #363c40;
  --line-strong: #4a5156;

  --navy: #99b3c5;
  --navy-dark: #7698af;
  --navy-soft: #273944;

  --green: #8dad9b;
  --green-soft: #26372d;

  --amber: #c3ab76;
  --amber-soft: #3d3525;

  --red: #d08c8c;
  --red-soft: #422a2a;

  --shadow:
    0 5px 20px rgb(0 0 0 / 0.18);
}


/* ==================================================
   3. RESET
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--page);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    color var(--transition),
    background-color var(--transition);
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

ul,
ol {
  list-style-position: inside;
}


/* ==================================================
   4. ACCESIBILIDAD
================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}


/* ==================================================
   5. CONTENEDORES
================================================== */

.container {
  width: min(
    calc(100% - 3rem),
    var(--container)
  );
  margin-inline: auto;
}

main {
  min-height: 60vh;
}


/* ==================================================
   6. TIPOGRAFÍA
================================================== */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.35;
}

p {
  color: var(--ink-soft);
}

.editorial-kicker {
  margin-bottom: 0.9rem;
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.editorial-kicker-light {
  color: #c8d5dd;
}


/* ==================================================
   7. HEADER
================================================== */

.editorial-header {
  position: relative;
  z-index: 200;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.editorial-header-container {
  display: grid;
  grid-template-columns:
    minmax(170px, auto)
    1fr
    auto;
  min-height: 78px;
  align-items: center;
  gap: 2.5rem;
}

.editorial-brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.editorial-brand strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.editorial-brand span {
  margin-top: 0.05rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.editorial-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
}

.editorial-nav-link {
  position: relative;
  padding: 1.75rem 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.editorial-nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background-color: transparent;
}

.editorial-nav-link:hover,
.editorial-nav-link.active {
  color: var(--navy);
}

.editorial-nav-link.active::after {
  background-color: var(--navy);
}

.editorial-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.editorial-theme-button {
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  color: var(--ink-soft);
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.editorial-theme-button:hover {
  color: var(--navy);
  background-color: var(--paper-hover);
  border-color: var(--line-strong);
}

.editorial-install-button {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  color: var(--navy);
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.editorial-install-button:hover {
  color: var(--white);
  background-color: var(--navy);
  border-color: var(--navy);
}

.editorial-install-button[hidden] {
  display: none;
}

.editorial-header-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0.5rem 0.85rem;
  color: var(--white);
  background-color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius-small);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color var(--transition),
    border-color var(--transition);
}

.editorial-header-button:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
}


/* ==================================================
   8. BOTONES
================================================== */

.editorial-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.editorial-button-primary {
  color: var(--white);
  background-color: var(--navy);
  border-color: var(--navy);
}

.editorial-button-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
}

.editorial-button-light {
  color: var(--navy-dark);
  background-color: var(--white);
  border-color: var(--white);
}

.editorial-button-light:hover {
  background-color: #eeeeea;
  border-color: #eeeeea;
}

.editorial-secondary-button,
.editorial-reset-button,
.editorial-print-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  color: var(--navy);
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition);
}

.editorial-secondary-button:hover,
.editorial-reset-button:hover,
.editorial-print-button:hover {
  background-color: var(--paper-hover);
  border-color: var(--navy);
}

.editorial-button:disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.editorial-text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.editorial-text-action span {
  transition: transform var(--transition);
}

.editorial-text-action:hover span {
  transform: translateX(3px);
}

.editorial-text-action:hover {
  text-decoration: underline;
}


/* ==================================================
   9. HERO
================================================== */

.editorial-hero {
  padding: 7rem 0 6.5rem;
  background-color: var(--page);
  border-bottom: 1px solid var(--line);
}

.editorial-hero-container {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(330px, 0.85fr);
  gap: 6rem;
  align-items: center;
}

.editorial-hero-content {
  max-width: 760px;
}

.editorial-hero-content h1 {
  max-width: 750px;
  margin-bottom: 1.5rem;
}

.editorial-hero-description {
  max-width: 650px;
  font-size: 1.02rem;
  line-height: 1.78;
}

.editorial-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.editorial-source-note {
  max-width: 620px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.67rem;
}


/* ==================================================
   10. DIRECTORIO DEL HERO
================================================== */

.editorial-hero-aside {
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.editorial-hero-aside-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.editorial-hero-aside-header span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-hero-aside-header a {
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 600;
  text-decoration: none;
}

.editorial-hero-aside-header a:hover {
  text-decoration: underline;
}

.institution-directory {
  display: flex;
  flex-direction: column;
}

.institution-directory-row {
  display: grid;
  grid-template-columns:
    minmax(140px, 1fr)
    minmax(90px, auto)
    auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    color var(--transition),
    padding var(--transition);
}

.institution-directory-row:hover {
  color: var(--navy);
  padding-left: 0.35rem;
}

.institution-directory-name {
  font-size: 0.86rem;
  font-weight: 600;
}

.institution-directory-type {
  color: var(--muted);
  font-size: 0.69rem;
}

.institution-directory-arrow {
  color: var(--navy);
  font-size: 0.9rem;
}

.editorial-hero-aside-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--muted);
  font-size: 0.62rem;
}
/* ==================================================
   11. ENCABEZADOS DE SECCIÓN
================================================== */

.editorial-section-header {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(260px, 0.65fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.editorial-section-header > div {
  max-width: 760px;
}

.editorial-section-header h2 {
  max-width: 740px;
}

.editorial-section-header > p {
  max-width: 430px;
  font-size: 0.82rem;
  line-height: 1.7;
}

.editorial-section-header-light h2 {
  color: var(--white);
}

.editorial-section-header-light > p {
  color: #c6d0d6;
}


/* ==================================================
   12. HERRAMIENTAS
================================================== */

.editorial-tools-section {
  padding: 6rem 0;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.editorial-tools-list {
  border-top: 1px solid var(--line-strong);
}

.editorial-tool-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.7rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    color var(--transition),
    padding var(--transition);
}

.editorial-tool-row:hover {
  color: var(--navy);
  padding-left: 0.5rem;
}

.editorial-tool-index {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.editorial-tool-row h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.editorial-tool-row p {
  max-width: 660px;
  font-size: 0.77rem;
}

.editorial-tool-arrow {
  color: var(--navy);
  font-size: 1.1rem;
}


/* ==================================================
   13. DIRECTORIO EN FORMATO TABLA
================================================== */

.editorial-directory-section {
  padding: 6rem 0;
  background-color: var(--page);
  border-bottom: 1px solid var(--line);
}

.editorial-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.editorial-directory-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background-color: transparent;
}

.editorial-directory-table th,
.editorial-directory-table td {
  padding: 1.05rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.editorial-directory-table thead th {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.editorial-directory-table tbody th {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.editorial-directory-table tbody td {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.editorial-directory-table tbody tr {
  transition:
    background-color var(--transition);
}

.editorial-directory-table tbody tr:hover {
  background-color: var(--paper-hover);
}

.editorial-directory-table a {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.editorial-directory-table a:hover {
  text-decoration: underline;
}


/* ==================================================
   14. SIMULADOR
================================================== */

.editorial-simulator-section {
  padding: 6.5rem 0;
  color: var(--white);
  background-color: var(--navy-dark);
  scroll-margin-top: 90px;
}

.editorial-simulator-panel {
  overflow: hidden;
  background-color: var(--paper);
  border:
    1px solid
    rgb(255 255 255 / 0.08);
  border-radius: var(--radius-medium);
}

.editorial-form-section {
  padding: 1.8rem;
}

.editorial-form-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.editorial-form-heading span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.editorial-form-heading p {
  font-size: 0.72rem;
}

.editorial-form-divider {
  height: 1px;
  background-color: var(--line);
}

.editorial-form-grid {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.editorial-form-grid-three {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.editorial-form-grid-four {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}


/* ==================================================
   15. CAMPOS DEL FORMULARIO
================================================== */

.form-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.42rem;
}

.form-group label {
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 45px;
  padding: 0.68rem 0.75rem;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--navy);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow:
    0 0 0 3px
    rgb(24 51 72 / 0.1);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  box-shadow:
    0 0 0 3px
    rgb(153 179 197 / 0.12);
}

.hidden-field {
  display: none !important;
}


/* ==================================================
   16. INPUTS MONETARIOS
================================================== */

.editorial-currency-input,
.currency-input {
  position: relative;
}

.editorial-currency-input > span,
.currency-input > span {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  z-index: 1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  transform: translateY(-50%);
  pointer-events: none;
}

.editorial-currency-input input,
.currency-input input {
  padding-left: 2.35rem;
}


/* ==================================================
   17. RESUMEN ECONÓMICO
================================================== */

.economic-preview {
  margin-top: 1.3rem;
  padding: 1rem;
  background-color: var(--paper-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.economic-preview-empty {
  display: flex;
  min-height: 54px;
  align-items: center;
}

.economic-preview-empty p {
  color: var(--muted);
  font-size: 0.73rem;
}

.economic-preview-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.economic-preview-item {
  padding: 0.85rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.economic-preview-item span,
.economic-preview-item strong {
  display: block;
}

.economic-preview-item span {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.economic-preview-item strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.economic-ratio-comfortable {
  border-color:
    rgb(70 100 84 / 0.28);
}

.economic-ratio-comfortable strong {
  color: var(--green);
}

.economic-ratio-medium {
  border-color:
    rgb(128 107 60 / 0.3);
}

.economic-ratio-medium strong {
  color: var(--amber);
}

.economic-ratio-high {
  border-color:
    rgb(145 71 71 / 0.28);
}

.economic-ratio-high strong {
  color: var(--red);
}

.economic-preview-message {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
}


/* ==================================================
   18. PIE DEL SIMULADOR
================================================== */

.editorial-simulator-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.8rem;
  background-color: var(--paper-secondary);
  border-top: 1px solid var(--line);
}

.editorial-simulator-footer p {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.66rem;
}
/* ==================================================
   19. RESULTADOS
================================================== */

.editorial-results-section {
  padding: 6rem 0;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.results-summary {
  margin-bottom: 2.5rem;
}

.results-summary:empty {
  display: none;
}

.results-summary-message {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  background-color: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
}

.summary-message-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  color: var(--navy);
  background-color: var(--navy-soft);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
}

.results-summary-message strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.86rem;
}

.results-summary-message p {
  font-size: 0.73rem;
  line-height: 1.6;
}


/* ==================================================
   20. RESUMEN DEL PERFIL
================================================== */

.evaluation-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.summary-heading h3 {
  font-size: 1.1rem;
}

.summary-disclaimer {
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  color: var(--muted);
  background-color: var(--page);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-summary-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 84px;
  padding: 1rem;
  background-color: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  transition:
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.profile-summary-item:hover {
  background-color: var(--paper-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.profile-summary-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy);
  background-color: var(--navy-soft);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-summary-item small,
.profile-summary-item strong {
  display: block;
}

.profile-summary-item small {
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-summary-item strong {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}


/* ==================================================
   21. RESULTADO DESTACADO
================================================== */

.best-option-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.4rem;
  align-items: stretch;
  padding: 1rem;
  background-color: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
}

.best-option-score {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--white);
  background-color: var(--navy);
  border-radius: var(--radius-small);
  text-align: center;
}

.best-option-score span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.best-option-score strong {
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.25;
}

.best-option-content {
  align-self: center;
}

.best-option-label,
.recommendation-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.best-option-content h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.best-option-content p {
  max-width: 720px;
  font-size: 0.75rem;
  line-height: 1.65;
}


/* ==================================================
   22. RECOMENDACIÓN
================================================== */

.automatic-recommendation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background-color: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
}

.recommendation-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy);
  background-color: var(--navy-soft);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.automatic-recommendation h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.automatic-recommendation p {
  max-width: 780px;
  font-size: 0.73rem;
  line-height: 1.6;
}

.automatic-recommendation small {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.5;
}


/* ==================================================
   23. TARJETAS COMPACTAS DE RESULTADOS
================================================== */

.cards-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-inline: auto;
  align-items: stretch;
}

.guarantee-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;

  background-color: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);

  box-shadow:
    0 5px 18px
    rgb(20 28 34 / 0.045);

  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.guarantee-card:hover {
  background-color: var(--paper-hover);
  border-color: var(--line-strong);

  box-shadow:
    0 10px 26px
    rgb(20 28 34 / 0.07);

  transform: translateY(-2px);
}


/* Línea lateral según resultado */

.result-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
}

.result-recommended::before {
  background-color: var(--green);
}

.result-conditional::before {
  background-color: var(--amber);
}

.result-not-compatible::before {
  background-color: var(--red);
}

.result-information::before {
  background-color: var(--navy);
}


/* ==================================================
   24. ENCABEZADO
================================================== */

.result-card-header {
  padding: 0.8rem 1rem 0;
}

.result-status-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.result-status-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
}

.result-status-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
}
/* ==========================================
   COLORES DE LOS ESTADOS
========================================== */

.result-recommended .result-status-icon {
  color: var(--green);
  background: var(--green-soft);
}

.result-recommended .result-status-label {
  color: var(--green);
  background: var(--green-soft);
}

.result-conditional .result-status-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.result-conditional .result-status-label {
  color: var(--amber);
  background: var(--amber-soft);
}

.result-not-compatible .result-status-icon {
  color: var(--red);
  background: var(--red-soft);
}

.result-not-compatible .result-status-label {
  color: var(--red);
  background: var(--red-soft);
}

.result-information .result-status-icon {
  color: var(--navy);
  background: var(--navy-soft);
}

.result-information .result-status-label {
  color: var(--navy);
  background: var(--navy-soft);
}

/* ==================================================
   25. CONTENIDO
================================================== */

.result-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.8rem 1rem 0.7rem;
}

.result-type {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-type-icon {
  display: grid;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  place-items: center;
  color: var(--navy);
  background-color: var(--navy-soft);
  border-radius: 50%;
  font-size: 0.42rem;
}

.result-title {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.result-description {
  margin-bottom: 0.5rem;
  font-size: 0.69rem;
  line-height: 1.4;
}

.result-summary {
  display: none;
}

.result-summary-text {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.4;
}


/* ==================================================
   26. BLOQUES DE DETALLE
================================================== */

.result-detail-sections {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.result-detail-section {
  padding: 0.55rem 0.65rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.result-detail-heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.result-detail-heading h4 {
  font-size: 0.64rem;
  line-height: 1.2;
}

.result-detail-icon {
  display: grid;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 0.46rem;
  font-weight: 700;
}

.result-detail-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0;
  padding-left: 0.7rem;
}

.result-detail-section li {
  color: var(--ink-soft);
  font-size: 0.59rem;
  line-height: 1.35;
}

/* ==================================================
   27. NOTA INFERIOR
================================================== */

.result-source-note {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.5rem;
  line-height: 1.35;
}

/* ==================================================
   28. BOTÓN DE REQUISITOS
================================================== */

.result-card-footer {
  display: flex;

  justify-content: flex-end;

  margin-top: auto;

  padding:
    0
    1rem
    0.9rem;
}

.result-card-footer .doc-btn {
  width: auto;
  min-width: 0;
  min-height: 34px;

  justify-content: space-between;

  padding:
    0.45rem
    0.7rem;

  gap: 0.55rem;

  font-size: 0.62rem;
}

.doc-btn,
.form-btn,
.btn-outline {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 0.6rem;

  border-radius: var(--radius-small);

  font-weight: 600;

  cursor: pointer;

  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.doc-btn,
.form-btn {
  color: var(--white);

  background-color: var(--navy);

  border: 1px solid var(--navy);
}

.doc-btn:hover,
.form-btn:hover {
  background-color: var(--navy-dark);

  border-color: var(--navy-dark);

  transform: translateY(-1px);
}

.btn-outline {
  color: var(--navy);

  background-color: transparent;

  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  background-color: var(--paper-hover);

  border-color: var(--navy);
}


/* ==================================================
   RESPONSIVE DE TARJETAS
================================================== */

@media (max-width: 1050px) {

  .cards-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 720px) {

  .cards-grid {
    gap: 0.8rem;
  }

  .result-card-header {
    padding:
      0.85rem
      0.85rem
      0;
  }

  .result-card-content {
    padding: 0.85rem;
  }

  .result-card-footer {
    padding:
      0
      0.85rem
      0.85rem;
  }

  .result-card-footer .doc-btn {
    width: 100%;
  }

  .result-title {
    font-size: 1.08rem;
  }

}
/* ==================================================
   29. COMPARADOR
================================================== */

.editorial-comparator-section {
  padding: 6rem 0;
  background-color: var(--page);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.editorial-comparator-panel {
  padding: 1.4rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
}

.editorial-comparator-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.editorial-comparator-label {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.comparator-counter {
  color: var(--muted);
  font-size: 0.68rem;
}

.comparator-counter strong {
  color: var(--navy);
}


/* ==================================================
   30. OPCIONES DEL COMPARADOR
================================================== */

.comparator-options {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.comparator-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.comparator-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.comparator-option-content {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  justify-content: center;
  padding: 0.8rem;
  background-color: var(--page);
  border: 1px solid var(--line);
  transition:
    background-color var(--transition),
    border-color var(--transition);
}

.comparator-option:hover
.comparator-option-content {
  background-color: var(--paper-hover);
  border-color: var(--line-strong);
}

.comparator-option.is-selected
.comparator-option-content {
  background-color: var(--navy-soft);
  border-color: var(--navy);
}

.comparator-checkbox:focus-visible +
.comparator-option-content {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.comparator-checkbox:disabled +
.comparator-option-content {
  opacity: 0.42;
  cursor: not-allowed;
}

.comparator-option-name,
.comparator-option-type {
  display: block;
}

.comparator-option-name {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.comparator-option-type {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.61rem;
}


/* ==================================================
   31. PIE DEL COMPARADOR
================================================== */

.editorial-comparator-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.comparator-actions {
  display: flex;
  gap: 0.6rem;
}

.comparison-message {
  color: var(--muted);
  font-size: 0.66rem;
}


/* ==================================================
   32. RESULTADO DEL COMPARADOR
================================================== */

.comparison-result {
  margin-top: 1.4rem;
  scroll-margin-top: 90px;
}

.comparison-result[hidden] {
  display: none;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  color: var(--muted);
  background-color: var(--paper-secondary);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  width: 24%;
  color: var(--ink-soft);
  background-color: var(--paper-secondary);
  font-size: 0.68rem;
  font-weight: 600;
}

.comparison-table td {
  width: 38%;
  color: var(--ink-soft);
  font-size: 0.69rem;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-brand {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.comparison-table thead small {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 400;
}

.comparison-value {
  display: inline-flex;
  padding: 0.24rem 0.45rem;
  font-size: 0.61rem;
  font-weight: 600;
}

.comparison-value-positive {
  color: var(--green);
  background-color: var(--green-soft);
}

.comparison-value-negative {
  color: var(--red);
  background-color: var(--red-soft);
}

.comparison-value-neutral {
  color: var(--amber);
  background-color: var(--amber-soft);
}

.comparison-conclusion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
  background-color: var(--paper-secondary);
  border: 1px solid var(--line);
}

.comparison-conclusion h3 {
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
}

.comparison-conclusion p {
  margin-top: 0.3rem;
  font-size: 0.68rem;
}

.comparison-conclusion small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.56rem;
}


/* ==================================================
   33. BLOQUE INFORMATIVO
================================================== */

.editorial-information-section {
  padding: 6rem 0;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.editorial-information-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);
  gap: 5rem;
  align-items: start;
}

.editorial-information-grid h2 {
  max-width: 620px;
}

.editorial-information-copy {
  max-width: 620px;
}

.editorial-information-copy p {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  line-height: 1.75;
}


/* ==================================================
   34. AVISO
================================================== */

.editorial-notice-section {
  padding: 2.5rem 0;
  background-color: var(--page);
  border-bottom: 1px solid var(--line);
}

.editorial-notice {
  display: grid;
  grid-template-columns:
    minmax(180px, 0.35fr)
    1fr;
  gap: 2rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.editorial-notice strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.editorial-notice p {
  max-width: 760px;
  font-size: 0.72rem;
}


/* ==================================================
   35. CIERRE
================================================== */

.editorial-closing-section {
  padding: 5rem 0;
  color: var(--white);
  background-color: var(--navy-dark);
}

.editorial-closing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.editorial-closing-container > div {
  max-width: 720px;
}

.editorial-closing-container h2 {
  margin-bottom: 0.6rem;
  color: var(--white);
}

.editorial-closing-container p:last-child {
  color: #c6d0d6;
}


/* ==================================================
   36. MODAL
================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color:
    rgb(10 18 24 / 0.72);
}

.modal[hidden] {
  display: none;
}

.modal-content {
  position: relative;
  width: min(100%, 560px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
}

.modal-content h2 {
  margin-bottom: 1rem;
  padding-right: 2rem;
  font-size: 1.25rem;
}

.close-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  background-color: transparent;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--ink);
  background-color: var(--paper-secondary);
}

.modal-intro {
  margin-bottom: 0.8rem;
  font-size: 0.74rem;
}

.modal-requirements {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.modal-requirements li {
  display: flex;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.modal-requirements li span {
  display: grid;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  place-items: center;
  color: var(--green);
  background-color: var(--green-soft);
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: 700;
}

.notice-box {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--paper-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.notice-box strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.72rem;
}

.notice-box ul {
  padding-left: 1rem;
}

.notice-box li {
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.55;
}

.notice-box li + li {
  margin-top: 0.35rem;
}


/* ==================================================
   37. FOOTER
================================================== */

.editorial-footer {
  color: var(--white);
  background-color: #0d1c27;
}

.editorial-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.45fr)
    repeat(2, minmax(120px, 0.7fr))
    minmax(220px, 1fr);
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 2.8rem;
}

.editorial-footer-brand > a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.editorial-footer-brand p {
  max-width: 360px;
  margin-top: 0.7rem;
  color: #aebbc3;
  font-size: 0.69rem;
}

.editorial-footer-column,
.editorial-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.editorial-footer-column > strong,
.editorial-footer-legal > strong {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 0.69rem;
  font-weight: 600;
}

.editorial-footer-column a {
  margin-bottom: 0.45rem;
  color: #aebbc3;
  font-size: 0.66rem;
  text-decoration: none;
}

.editorial-footer-column a:hover {
  color: var(--white);
  text-decoration: underline;
}

.editorial-footer-legal p {
  color: #aebbc3;
  font-size: 0.64rem;
  line-height: 1.6;
}


/* ==================================================
   38. FOOTER INFERIOR + FIRMA DEL DESARROLLADOR
================================================== */

.editorial-footer-bottom {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(320px, 0.8fr);
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
  padding-top: 2.2rem;
  padding-bottom: 2.4rem;
  border-top:
    1px solid
    rgb(255 255 255 / 0.14);
}

.editorial-footer-bottom-left {
  max-width: 520px;
}

.editorial-footer-bottom-left p {
  margin: 0;
  color:
    rgb(255 255 255 / 0.64);
  font-size: 0.72rem;
  line-height: 1.65;
}

.editorial-footer-bottom-left p:first-child {
  margin-bottom: 0.35rem;
  color: var(--white);
  font-weight: 600;
}

.editorial-footer-bottom-right {
  justify-self: end;
  width: min(100%, 460px);
  padding-left: 2rem;
  border-left:
    1px solid
    rgb(255 255 255 / 0.12);
}

.developer-title {
  margin: 0 0 0.45rem;
  color:
    rgb(255 255 255 / 0.68);
  font-size: 0.72rem;
  line-height: 1.5;
}

.developer-title strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.developer-role {
  margin: 0 0 1rem;
  color:
    rgb(255 255 255 / 0.62);
  font-size: 0.72rem;
  line-height: 1.5;
}

.developer-links {
  display: flex;
  align-items: center;
}

.developer-links a {
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.developer-links a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.developer-location {
  margin-top: 0.8rem;
  color:
    rgb(255 255 255 / 0.46);
  font-size: 0.65rem;
  line-height: 1.5;
}
/* ==================================================
   39. MODO OSCURO
================================================== */

body.dark-mode .editorial-simulator-section,
body.dark-mode .editorial-closing-section {
  background-color: #101820;
}

body.dark-mode .editorial-footer {
  background-color: #0a1015;
}

body.dark-mode select {
  color-scheme: dark;
}

body.dark-mode .editorial-button-light {
  color: #102534;
}

body.dark-mode .comparison-table thead th,
body.dark-mode .comparison-table tbody th {
  background-color: var(--paper-secondary);
}

body.dark-mode .result-detail-positive
.result-detail-icon,
body.dark-mode .result-detail-warning
.result-detail-icon,
body.dark-mode .result-detail-negative
.result-detail-icon {
  background-color:
    rgb(255 255 255 / 0.06);
}


/* ==================================================
   40. RESPONSIVE — TABLET
================================================== */

@media (max-width: 1050px) {

  .editorial-header-container {
    grid-template-columns:
      auto
      1fr;
  }

  .editorial-navigation {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .editorial-header-actions {
    justify-self: end;
  }

  .editorial-hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .editorial-hero-content {
    max-width: 820px;
  }

  .editorial-hero-aside {
    max-width: 720px;
  }

  .editorial-section-header {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .editorial-form-grid-four {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .profile-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .guarantee-card {
    min-height: auto;
  }

  .best-option-card {
    grid-template-columns: 1fr;
  }

  .automatic-recommendation {
    grid-template-columns: 1fr;
  }

  .comparator-options {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .editorial-information-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editorial-footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .editorial-footer-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editorial-footer-bottom-right {
    justify-self: stretch;
    width: 100%;
    padding-top: 1.5rem;
    padding-left: 0;
    border-top:
      1px solid
      rgb(255 255 255 / 0.12);
    border-left: 0;
  }

}


/* ==================================================
   41. RESPONSIVE — CELULAR
================================================== */

@media (max-width: 720px) {

  .container {
    width: min(
      calc(100% - 2rem),
      var(--container)
    );
  }

  h1 {
    font-size: clamp(
      2.35rem,
      12vw,
      3.5rem
    );
  }

  h2 {
    font-size: clamp(
      1.75rem,
      8vw,
      2.3rem
    );
  }


  /* ==================================================
     HERO
  ================================================== */

  .editorial-hero {
    padding: 4.5rem 0;
  }

  .editorial-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .editorial-button {
    width: 100%;
  }

  .editorial-hero-aside-footer,
  .editorial-form-heading,
  .editorial-simulator-footer,
  .editorial-comparator-footer,
  .editorial-closing-container {
    align-items: flex-start;
    flex-direction: column;
  }


  /* ==================================================
     SECCIONES
  ================================================== */

  .editorial-tools-section,
  .editorial-directory-section,
  .editorial-simulator-section,
  .editorial-results-section,
  .editorial-comparator-section,
  .editorial-information-section {
    padding: 4.5rem 0;
  }


  /* ==================================================
     GRILLAS
  ================================================== */

  .editorial-form-grid-three,
  .editorial-form-grid-four,
  .economic-preview-grid,
  .profile-summary-grid,
  .comparator-options {
    grid-template-columns: 1fr;
  }


  /* ==================================================
     TARJETAS
  ================================================== */

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guarantee-card {
    width: 100%;
    min-height: auto;
  }


  /* ==================================================
     SIMULADOR
  ================================================== */

  .editorial-simulator-footer {
    gap: 0.8rem;
  }

  .editorial-print-button {
    width: 100%;
  }

  .best-option-card {
    grid-template-columns: 1fr;
  }

  .automatic-recommendation {
    grid-template-columns: 1fr;
  }

  .summary-heading {
    align-items: flex-start;
    flex-direction: column;
  }


  /* ==================================================
     RESULTADOS
  ================================================== */

  .result-card-header {
    padding:
      0.85rem
      0.85rem
      0;
  }

  .result-card-content {
    padding: 0.85rem;
  }

  .result-card-footer {
    justify-content: stretch;

    padding:
      0
      0.85rem
      0.85rem;
  }

  .result-card-footer .doc-btn {
    width: 100%;
    min-width: 0;
  }

  .result-description {
    font-size: 0.68rem;
  }

  .result-detail-section {
    padding: 0.55rem 0.65rem;
  }


  /* ==================================================
     COMPARADOR
  ================================================== */

  .editorial-comparator-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparator-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .comparator-actions button {
    width: 100%;
  }


  /* ==================================================
     AVISOS
  ================================================== */

  .editorial-notice {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }


  /* ==================================================
     FOOTER
  ================================================== */

  .editorial-footer-grid {
    grid-template-columns: 1fr;
  }

  .editorial-footer-bottom {
    gap: 1.6rem;

    margin-top: 2rem;

    padding-top: 1.8rem;
    padding-bottom: 2rem;
  }

  .developer-links {
    align-items: flex-start;
    flex-direction: column;

    gap: 0.55rem;
  }


  /* ==================================================
     MODAL
  ================================================== */

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    width: 100%;
    max-height: 90vh;

    border-right: 0;
    border-bottom: 0;
    border-left: 0;

    border-radius:
      var(--radius-medium)
      var(--radius-medium)
      0
      0;
  }

}

/* ==================================================
   44. IMPRESIÓN
================================================== */

@media print {

  .editorial-header,
  .editorial-hero-actions,
  .editorial-reset-button,
  .editorial-print-button,
  .editorial-comparator-section,
  .editorial-closing-section,
  .editorial-footer,
  .doc-btn,
  .form-btn,
  .btn-outline,
  .modal {
    display: none !important;
  }

  body {
    color: #000000;
    background-color: #ffffff;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .editorial-simulator-section,
  .editorial-results-section,
  .editorial-information-section {
    padding: 1.5rem 0;
    color: #000000;
    background-color: #ffffff;
  }

  .editorial-simulator-panel,
  .guarantee-card,
  .profile-summary-item,
  .best-option-card,
  .automatic-recommendation,
  .result-detail-section {
    color: #000000;
    background-color: #ffffff;
    border-color: #cccccc;
    break-inside: avoid;
  }

  .cards-grid {
    max-width: none;
    grid-template-columns: 1fr;
  }

  a {
    color: #000000;
    text-decoration: none;
  }

}
/* ==================================================
   GARANTÍASUY
   HEADER RESPONSIVE / MENÚ MOBILE
================================================== */


/* ==================================================
   1. ELEMENTOS MOBILE OCULTOS EN DESKTOP
================================================== */

.mobile-menu-toggle,
.mobile-navigation {
  display: none;
}


/* ==================================================
   2. MOBILE
================================================== */

@media (max-width: 768px) {

  /* ----------------------------------------------
     HEADER
  ---------------------------------------------- */

  .editorial-header {
    position: relative;
    z-index: 1000;
  }


  .editorial-header-container {
    position: relative;

    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding-top: 12px;
    padding-bottom: 12px;
  }


  /* ----------------------------------------------
     MARCA
  ---------------------------------------------- */

  .editorial-brand {
    position: relative;
    z-index: 1002;

    display: flex;
    flex-direction: column;

    min-width: 0;
  }


  .editorial-brand strong {
    font-size: 1.05rem;
    line-height: 1.1;
  }


  .editorial-brand span {
    margin-top: 3px;

    font-size: 0.72rem;
    line-height: 1.2;
  }


  /* ----------------------------------------------
     OCULTAR DESKTOP
  ---------------------------------------------- */

  .editorial-navigation,
  .editorial-header-actions {
    display: none;
  }


  /* ==================================================
     3. BOTÓN HAMBURGUESA
  ================================================== */

  .mobile-menu-toggle {
    position: relative;
    z-index: 1002;

    width: 46px;
    height: 46px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    flex: 0 0 auto;

    padding: 0;

    border: 1px solid var(--line-color, #d8d8d3);
    border-radius: 4px;

    background: transparent;

    cursor: pointer;
  }


  .mobile-menu-toggle span {
    width: 20px;
    height: 1.5px;

    display: block;

    background: currentColor;

    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
  }


  /* ----------------------------------------------
     HAMBURGUESA → X
  ---------------------------------------------- */

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform:
      translateY(6.5px)
      rotate(45deg);
  }


  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }


  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform:
      translateY(-6.5px)
      rotate(-45deg);
  }


  /* ==================================================
     4. PANEL DEL MENÚ
  ================================================== */

  .mobile-navigation {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: 1001;

    display: none;

    width: 100%;

    padding:
      14px
      max(20px, calc((100vw - 1200px) / 2))
      24px;

    background:
      var(--background-color, #f3f2ee);

    border-top:
      1px solid
      var(--line-color, #d8d8d3);

    border-bottom:
      1px solid
      var(--line-color, #d8d8d3);

    box-shadow:
      0 18px 35px
      rgba(0, 0, 0, 0.08);
  }


  .mobile-navigation.is-open {
    display: block;
  }


  /* ==================================================
     5. LINKS DEL MENÚ
  ================================================== */

  .mobile-navigation-links {
    display: flex;
    flex-direction: column;
  }


  .mobile-navigation-link {
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
      14px
      2px;

    border-bottom:
      1px solid
      var(--line-color, #d8d8d3);

    color: inherit;

    text-decoration: none;

    font-size: 1rem;
    font-weight: 500;

    transition:
      opacity 0.2s ease,
      padding-left 0.2s ease;
  }


  .mobile-navigation-link:first-child {
    border-top:
      1px solid
      var(--line-color, #d8d8d3);
  }


  .mobile-navigation-link:hover {
    padding-left: 5px;
  }


  .mobile-navigation-link > span:last-child {
    font-size: 0.68rem;
    font-weight: 500;

    opacity: 0.45;

    letter-spacing: 0.08em;
  }


  .mobile-navigation-link.active {
    font-weight: 700;
  }


  /* ==================================================
     6. ACCIONES MOBILE
  ================================================== */

  .mobile-navigation-actions {
    display: grid;

    grid-template-columns:
      1fr
      1fr;

    gap: 10px;

    margin-top: 22px;
  }


  .mobile-theme-button,
  .mobile-install-button {
    min-height: 46px;

    padding: 10px 14px;

    border:
      1px solid
      var(--line-color, #d8d8d3);

    border-radius: 3px;

    background: transparent;

    color: inherit;

    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;

    cursor: pointer;
  }


  .mobile-install-button[hidden] {
    display: none;
  }


  .mobile-simulator-button {
    grid-column: 1 / -1;

    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding:
      13px
      16px;

    background:
      var(--primary-color, #183348);

    color: #ffffff;

    border-radius: 3px;

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 600;
  }


  /* ==================================================
     7. EVITAR SCROLL HORIZONTAL
  ================================================== */

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

}


/* ==================================================
   8. CELULARES PEQUEÑOS
================================================== */

@media (max-width: 420px) {

  .editorial-header-container {
    min-height: 68px;
  }


  .editorial-brand strong {
    font-size: 1rem;
  }


  .editorial-brand span {
    font-size: 0.68rem;
  }


  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }


  .mobile-navigation {
    padding-left: 20px;
    padding-right: 20px;
  }


  .mobile-navigation-link {
    min-height: 52px;

    font-size: 0.95rem;
  }


  .mobile-navigation-actions {
    grid-template-columns: 1fr;
  }


  .mobile-simulator-button {
    grid-column: auto;
  }

}


/* ==================================================
   9. MODO OSCURO
================================================== */

body.dark-mode .mobile-navigation {
  background: #111a20;

  border-color:
    rgba(255, 255, 255, 0.12);

  box-shadow:
    0 18px 35px
    rgba(0, 0, 0, 0.3);
}


body.dark-mode .mobile-menu-toggle,
body.dark-mode .mobile-navigation-link,
body.dark-mode .mobile-theme-button,
body.dark-mode .mobile-install-button {
  border-color:
    rgba(255, 255, 255, 0.14);
}


body.dark-mode .mobile-simulator-button {
  background: #f3f2ee;
  color: #183348;
}