
/* =========================================
   TuPromociónNómina
   Hoja de estilos principal
========================================= */

:root {
  --navy: #10243e;
  --navy-light: #1b3658;
  --green: #16a36a;
  --green-light: #e9f8f0;
  --background: #f5f7fa;
  --white: #ffffff;
  --text: #263448;
  --muted: #78869a;
  --border: #e5eaf0;
  --red: #dc5353;
  --orange: #d18b25;
  --shadow: 0 8px 28px rgba(16, 36, 62, .055);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(22, 163, 106, .4);
  outline-offset: 3px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* CABECERA */

.header {
  height: 76px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.7px;
  color: var(--navy);
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.logo-highlight {
  color: var(--green);
}

.navigation {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

/* HERO */

.hero {
  background: linear-gradient(125deg, #10243e 0%, #1a3a5c 100%);
  color: white;
  padding: 85px 0 95px;
  overflow: hidden;
}

.hero-content {
  max-width: 850px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 30px;
  color: #d8e8f6;
  font-size: 13px;
  margin-bottom: 26px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36d994;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 57px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 800;
  margin-bottom: 23px;
}

.hero h1 span {
  color: #48d99a;
}

.hero-description {
  max-width: 660px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: #d1deeb;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover {
  background: #128858;
}

.hero-features {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  color: #d1deeb;
  font-size: 13px;
}

.hero-features div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.feature-icon {
  color: #4de1a1;
  font-weight: 900;
}

/* ESTADÍSTICAS */

.stats-section {
  background: var(--background);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 25px;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* SECCIONES */

.comparison-section {
  background: var(--background);
  padding: 75px 0 80px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(25px, 3vw, 34px);
  color: var(--navy);
  letter-spacing: -.8px;
  margin: 6px 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
}

/* FILTROS */

.filters-card {
  background: var(--white);
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.search-wrapper {
  margin-bottom: 22px;
}

.search-wrapper label,
.filter-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  height: 47px;
  color: var(--muted);
  transition: border .2s;
}

.search-input-wrapper:focus-within {
  border-color: var(--green);
}

.search-input-wrapper span {
  font-size: 25px;
}

.search-input-wrapper input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-input-wrapper input:focus-visible {
  outline: none;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.filter-item select {
  width: 100%;
  height: 43px;
  padding: 0 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.filter-item select:focus {
  border-color: var(--green);
}

.filters-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

#resultados-texto {
  color: var(--muted);
  font-size: 13px;
}

.btn-reset {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-reset:hover {
  text-decoration: underline;
}

/* TABLA */

.table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-header {
  padding: 23px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.table-header h3 {
  font-size: 17px;
  color: var(--navy);
}

.table-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.table-counter {
  color: var(--green);
  background: var(--green-light);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.comparison-table thead {
  background: #f5f7fa;
}

.comparison-table th {
  padding: 15px 12px;
  color: #637187;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .35px;
  font-weight: 800;
  white-space: nowrap;
}

.comparison-table td {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.comparison-table tbody tr:not(.conditions-row):hover {
  background: #f9fbfd;
}

.bank-name {
  text-align: left;
  color: var(--navy);
  font-weight: 700;
}

.bonus-value {
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

.sort-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.sort-button:hover {
  color: var(--green);
}

.sort-icon {
  margin-left: 4px;
  font-size: 14px;
}

.sort-button[aria-sort="ascending"] .sort-icon,
.sort-button[aria-sort="descending"] .sort-icon {
  color: var(--green);
}

.indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.indicator-yes {
  background: #e6f7ef;
  color: #128858;
}

.indicator-no {
  background: #fff0f0;
  color: var(--red);
}

.indicator-unknown {
  background: #fff5e5;
  color: var(--orange);
}

.indicator-special {
  background: #eaf1fb;
  color: #3267a5;
  font-size: 10px;
}

.plan-yes {
  color: var(--green);
  font-weight: 800;
}

.plan-no {
  color: var(--muted);
}

.conditions-button {
  background: #f0f4f8;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 7px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.conditions-button:hover,
.conditions-button[aria-expanded="true"] {
  background: var(--green-light);
  color: var(--green);
  border-color: #bce9d1;
}

.conditions-row td {
  white-space: normal;
  text-align: left;
  background: #f8fafc;
  padding: 15px 22px;
}

.conditions-content {
  color: #526177;
  line-height: 1.7;
  font-size: 13px;
  max-width: 900px;
}

.conditions-content strong {
  color: var(--navy);
}

.empty-message,
.loading-message {
  padding: 35px !important;
  text-align: center;
  color: var(--muted);
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.legend-yes {
  color: var(--green);
}

.legend-no {
  color: var(--red);
}

.legend-unknown {
  color: var(--orange);
}

.legend-special {
  color: #3267a5;
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
}

.disclaimer strong {
  color: var(--navy);
}

/* COMO FUNCIONA */

.how-section {
  padding: 80px 0;
  background: white;
}

.centered {
  display: block;
  text-align: center;
  margin-bottom: 45px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  padding: 30px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #dbe2eb;
  font-size: 27px;
  font-weight: 900;
}

.step-icon {
  font-size: 30px;
  margin-bottom: 18px;
}

.step-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 18px;
}

.step-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* COLABORA */

.collaborate-section {
  padding: 55px 0;
  background: var(--background);
}

.collaborate-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.collaborate-content h2 {
  color: var(--navy);
  font-size: 27px;
  margin: 5px 0;
}

.collaborate-content p {
  color: var(--muted);
  font-size: 14px;
  max-width: 650px;
}

.collaborate-icon {
  font-size: 50px;
}

/* FOOTER */

.footer {
  background: var(--navy);
  color: white;
  padding: 55px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 40px;
}

.footer-logo {
  color: white;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 15px;
  color: #aebed0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-links a {
  color: #aebed0;
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover {
  color: #4de1a1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  color: #aebed0;
  font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .filters-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .navigation {
    gap: 18px;
  }

  .comparison-table {
    min-width: 1050px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .header {
    height: auto;
    min-height: 68px;
  }

  .header-content {
    flex-direction: column;
    padding: 13px 0;
    gap: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .navigation {
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero {
    padding: 65px 0;
  }

  .hero h1 {
    font-size: 37px;
    letter-spacing: -1.4px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-features {
    gap: 13px;
    flex-direction: column;
    align-items: center;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  .comparison-section,
  .how-section {
    padding: 55px 0;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .filters-card {
    padding: 17px;
  }

  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 10px;
  }

  .filter-item select {
    font-size: 12px;
  }

  .filters-footer {
    align-items: flex-start;
  }

  .table-header {
    padding: 18px;
  }

  .table-header h3 {
    font-size: 15px;
  }

  .table-header p {
    font-size: 11px;
  }

  .table-legend {
    gap: 12px;
    padding: 15px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 24px;
  }

  .collaborate-content h2 {
    font-size: 23px;
  }

  .collaborate-icon {
    font-size: 35px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .navigation {
    gap: 14px;
  }

  .nav-link {
    font-size: 11px;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================================
   PÁGINA COLABORA
========================================= */

/* Bloqueo de desplazamiento de fondo cuando la modal está abierta */
body.modal-open {
  overflow: hidden;
}

/* Tarjetas de Planes Amigo */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.plan-card {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.plan-card:hover,
.plan-card:focus-visible {
  transform: translateY(-2px);
  border-color: #10243e;
  box-shadow: 0 10px 24px rgba(16, 36, 62, 0.08);
}

.plan-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-bank-badge,
.modal-bank-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #10243e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0e7c4c;
  background-color: #e8f7f0;
  border: 1px solid #bce8d3;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-block;
  width: fit-content;
}

/* Modal de Código Amigo */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 22, 38, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(10, 22, 38, 0.3);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d9e2ec;
  background: #f8fafc;
  color: #10243e;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-header-bank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
  margin-bottom: 10px;
}

.modal-bonus-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #e8f7f0;
  border: 1px solid #bce8d3;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px 0 18px;
  color: #10243e;
}

.modal-bonus-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0e7c4c;
}

.modal-code-box {
  background-color: #f4f7fa;
  border: 2px dashed #10243e;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}

.modal-code-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #486581;
  margin-bottom: 6px;
}

.modal-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #10243e;
  margin-bottom: 12px;
  word-break: break-all;
}

.copy-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.copy-feedback.is-success {
  color: #0e7c4c;
}

.copy-feedback.is-error {
  color: #b42318;
}

.modal-conditions-box {
  border-top: 1px solid #e4e7eb;
  padding-top: 14px;
  margin-bottom: 14px;
}

.modal-conditions-box h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: #10243e;
}

.modal-official-warning {
  font-size: 0.82rem;
  color: #486581;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
}

.modal-email-box {
  margin: 18px 0;
  text-align: center;
}

.modal-mailto-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.enlace-fintech {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0d8a53;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.enlace-fintech:hover {
  color: #0f2537;
  border-bottom-color: #0f2537;
}

.enlace-fintech:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}

.enlace-fintech__icono {
  transition: transform 0.15s ease;
}

.enlace-fintech:hover .enlace-fintech__icono {
  transform: translateX(3px);
}