:root {
  --navy-950: #00143f;
  --navy-900: #001f5f;
  --navy-800: #063179;
  --blue-700: #0a3b8f;
  --blue-600: #1456b8;
  --cyan-500: #00a9d6;
  --cyan-400: #18bde8;

  --text: #061a3a;
  --muted: #64748b;
  --soft: #f5f9fc;
  --soft-2: #eef6fb;
  --white: #ffffff;
  --border: #dbe7f0;
  --border-strong: #bdd5e8;

  --card: #ffffff;
  --shadow: 0 24px 70px rgba(6, 26, 58, .10);
  --shadow-soft: 0 12px 36px rgba(6, 26, 58, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 169, 214, .12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #eef6fb 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header light tipo Data Bureau */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(6, 26, 58, .05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 54px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #42526b;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.nav-links a:hover {
  color: var(--navy-950);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  color: var(--navy-950);
  background: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: 0 8px 22px rgba(6, 26, 58, .06);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan-500);
  box-shadow: 0 14px 34px rgba(6, 26, 58, .10);
}

.btn-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy-950), var(--blue-700));
  box-shadow: 0 16px 36px rgba(0, 31, 95, .24);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(0, 31, 95, .30);
}

.btn-ghost {
  background: #f7fbff;
  color: var(--navy-950);
}

/* Hero claro */
.hero {
  padding: 94px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-950);
  border: 1px solid rgba(0, 169, 214, .22);
  background: rgba(0, 169, 214, .08);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .9rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.45rem);
  line-height: .95;
  margin: 20px 0;
  letter-spacing: -0.065em;
  color: var(--navy-950);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.045em;
  color: var(--navy-950);
}

h3 {
  margin: 0 0 10px;
  color: var(--navy-950);
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero p {
  font-size: 1.12rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Paneles claros */
.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,249,252,.96)),
    radial-gradient(circle at top right, rgba(0,169,214,.16), transparent 42%);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.kpi {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.kpi strong {
  display: block;
  font-size: 2.15rem;
  color: var(--navy-950);
  letter-spacing: -.04em;
}

.kpi span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 60px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

/* Cards claras y legibles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  min-height: 100%;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: rgba(0, 169, 214, .36);
}

.card.featured {
  border-color: rgba(0, 169, 214, .65);
  box-shadow: 0 24px 62px rgba(0, 169, 214, .16);
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.card small,
.muted {
  color: var(--muted);
  font-weight: 700;
}

.price {
  font-size: 2.35rem;
  font-weight: 950;
  letter-spacing: -0.05em;
  margin: 12px 0 0;
  color: var(--navy-950);
}

.price small {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
}

ul.clean {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

ul.clean li {
  color: #334155;
  display: flex;
  gap: 9px;
  line-height: 1.55;
}

ul.clean li::before {
  content: '✓';
  color: var(--cyan-500);
  font-weight: 950;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-card a {
  color: var(--blue-700);
  font-weight: 900;
}

.status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: .78rem;
  font-weight: 900;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 169, 214, .10);
  color: var(--blue-700);
  border: 1px solid rgba(0, 169, 214, .24);
}

/* Formularios claros */
.form-box {
  width: min(720px, calc(100% - 32px));
  margin: 50px auto;
}

form p {
  display: grid;
  gap: 7px;
  margin: 0 0 15px;
}

label {
  color: var(--navy-950);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: 15px;
  padding: 14px 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(6, 26, 58, .03);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(0, 169, 214, .12);
}

.helptext {
  color: var(--muted);
  font-size: .86rem;
}

.errorlist {
  color: #b91c1c;
  font-weight: 700;
}

/* Mensajes */
.messages {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.message {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Dashboard y tablas light */
.dashboard {
  padding: 44px 0 74px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.table th,
.table td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  color: #334155;
  vertical-align: top;
}

.table th {
  color: var(--navy-950);
  background: #eef6fb;
  font-weight: 950;
}

.table tr:last-child td {
  border-bottom: 0;
}

/* Footer claro */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: #ffffff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer img {
  height: 46px;
  max-width: 280px;
  object-fit: contain;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* Ajustes responsive */
@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .logo img {
    max-width: 230px;
    height: auto;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4.5rem);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 54px;
  }

  .nav {
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }

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

/* Accounting module */
.accounting-page .accounting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

.accounting-page h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.accounting-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.accounting-nav a {
  border: 1px solid var(--border, #dbe7f0);
  background: #ffffff;
  color: var(--navy-950, #00143f);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(6, 26, 58, .06);
}

.selector-card {
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border, #dbe7f0);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(6, 26, 58, .08);
}

.inline-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.reconcile-form {
  display: grid;
  gap: 12px;
}

@media (max-width: 920px) {
  .accounting-page .accounting-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .selector-card {
    width: 100%;
  }
}

/* Treasury module */
.treasury-page .treasury-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

.treasury-page h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

@media (max-width: 920px) {
  .treasury-page .treasury-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Treasury module */
.treasury-page .treasury-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

.treasury-page h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

@media (max-width: 920px) {
  .treasury-page .treasury-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
