/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-950: #0a1f38;
  --blue-900: #0c2340;
  --blue-800: #1a3a5c;
  --blue-700: #1d4e89;
  --blue-600: #2563c4;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-900);
  border-bottom: 3px solid var(--teal-500);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--teal-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
}

.nav-links a {
  color: var(--blue-100);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .38rem .65rem;
  border-radius: 6px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.14);
  color: var(--white);
}

.nav-links a.active {
  border-bottom: 2px solid var(--teal-500);
  border-radius: 6px 6px 0 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── PAGE HERO ── */
.hero {
  background: linear-gradient(140deg, var(--blue-950) 0%, var(--blue-800) 50%, var(--teal-700) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(20,184,166,.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(59,130,246,.12) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(20,184,166,.2);
  border: 1px solid rgba(20,184,166,.4);
  color: var(--teal-400);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -.025em;
}

.hero h1 span { color: var(--teal-400); }

.hero-desc {
  font-size: clamp(.98rem, 2vw, 1.1rem);
  color: var(--blue-100);
  max-width: 640px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal-500);
  color: var(--white);
  font-weight: 700;
  font-size: .98rem;
  padding: .85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(20,184,166,.35);
}

.hero-cta:hover {
  background: var(--teal-600);
  transform: translateY(-2px);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--blue-950);
  padding: .65rem 1.5rem;
  font-size: .8rem;
  color: var(--blue-400);
}

.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--blue-400); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb span { color: var(--gray-500); }

/* ── SECTIONS ── */
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--blue-900); color: var(--white); }

.container { max-width: 1080px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: .6rem;
}

.section-dark .section-label { color: var(--teal-400); }

.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

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

.section-header p {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-header p { color: var(--blue-100); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
}

.card:hover {
  box-shadow: 0 4px 22px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.icon-blue  { background: var(--blue-50); }
.icon-teal  { background: var(--teal-100); }
.icon-slate { background: #f1f5f9; }
.icon-green { background: #f0fdf4; }
.icon-amber { background: #fffbeb; }
.icon-red   { background: #fef2f2; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}

.card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.card ul {
  margin-top: .65rem;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.card ul li {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── STEPS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--gray-200);
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  position: relative;
}

.step:last-child { padding-bottom: 0; }

.step-dot {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1;
  position: relative;
}

.step-body { flex: 1; padding-top: .5rem; }

.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .35rem;
}

.step-body p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── DARK STEP ── */
.step-dark {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.step-dark-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 1.5rem;
}

.step-num {
  width: 38px;
  height: 38px;
  background: var(--teal-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .85rem;
}

.step-dark-item h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}

.step-dark-item p {
  font-size: .88rem;
  color: var(--blue-100);
  line-height: 1.65;
}

/* ── INFO BOX ── */
.info-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.4rem;
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-top: 1.5rem;
}

.info-box strong { color: var(--blue-800); }

.info-box-dark {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.info-box-dark-icon { font-size: 1.75rem; flex-shrink: 0; }

.info-box-dark h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}

.info-box-dark p {
  font-size: .88rem;
  color: var(--blue-100);
  line-height: 1.65;
}

/* ── RIGHTS ── */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.right-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}

.right-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

.right-body h4 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .3rem;
}

.right-body p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

table thead {
  background: var(--blue-700);
  color: var(--white);
}

table thead th {
  padding: .9rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}

table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background .15s;
}

table tbody tr:last-child { border-bottom: none; }
table tbody tr:hover { background: var(--blue-50); }

table tbody td {
  padding: .85rem 1.2rem;
  color: var(--gray-700);
}

table tbody td:first-child {
  font-weight: 600;
  color: var(--gray-900);
}

/* ── ESTRATOS ── */
.estratos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
}

.estrato-card {
  border-radius: 12px;
  padding: 1.1rem .75rem;
  text-align: center;
  border: 1px solid transparent;
  transition: transform .15s;
}

.estrato-card:hover { transform: translateY(-2px); }

.estrato-num { font-size: 1.5rem; font-weight: 800; display: block; line-height: 1; margin-bottom: .3rem; }
.estrato-name { font-size: .68rem; font-weight: 600; display: block; margin-bottom: .5rem; line-height: 1.3; }
.estrato-tag { display: inline-block; font-size: .65rem; font-weight: 700; padding: .18rem .5rem; border-radius: 100px; }

.e1 { background: #f0fdf4; border-color: #86efac; }
.e1 .estrato-num { color: #15803d; } .e1 .estrato-name { color: #166534; } .e1 .estrato-tag { background: #dcfce7; color: #15803d; }
.e2 { background: #f0fdf4; border-color: #a3e635; }
.e2 .estrato-num { color: #4d7c0f; } .e2 .estrato-name { color: #3f6212; } .e2 .estrato-tag { background: #ecfccb; color: #4d7c0f; }
.e3 { background: #fefce8; border-color: #fde047; }
.e3 .estrato-num { color: #a16207; } .e3 .estrato-name { color: #92400e; } .e3 .estrato-tag { background: #fef9c3; color: #a16207; }
.e4 { background: #fff7ed; border-color: #fdba74; }
.e4 .estrato-num { color: #ea580c; } .e4 .estrato-name { color: #c2410c; } .e4 .estrato-tag { background: #ffedd5; color: #ea580c; }
.e5 { background: #fef2f2; border-color: #fca5a5; }
.e5 .estrato-num { color: #dc2626; } .e5 .estrato-name { color: #b91c1c; } .e5 .estrato-tag { background: #fee2e2; color: #dc2626; }
.e6 { background: #fdf4ff; border-color: #e879f9; }
.e6 .estrato-num { color: #a21caf; } .e6 .estrato-name { color: #86198f; } .e6 .estrato-tag { background: #fae8ff; color: #a21caf; }

/* ── RELATED PAGES ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
  display: block;
}

.related-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.related-card .related-icon { font-size: 1.5rem; display: block; margin-bottom: .5rem; }

.related-card h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .25rem;
}

.related-card p {
  font-size: .8rem;
  color: var(--blue-200);
  line-height: 1.45;
}

/* ── FOOTER ── */
.footer {
  background: var(--blue-950);
  color: var(--gray-400);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.footer-inner { max-width: 700px; margin: 0 auto; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-weight: 700;
  font-size: .98rem;
  margin-bottom: .9rem;
  text-decoration: none;
}

.footer-disclaimer {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: .8rem 1.2rem;
  font-size: .82rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.footer-disclaimer strong { color: var(--blue-200); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--teal-400); }

.footer-copy { font-size: .78rem; color: var(--gray-500); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s;
  z-index: 50;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-600); }

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .estratos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--blue-900);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: .15rem;
    border-bottom: 3px solid var(--teal-500);
    box-shadow: 0 6px 12px rgba(0,0,0,.2);
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: .65rem 1rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .steps::before { left: 23px; }
  .step-dot { width: 46px; height: 46px; font-size: 1.1rem; }
  .info-box-dark { flex-direction: column; padding: 1.25rem; }
  .estratos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .estratos-grid { grid-template-columns: repeat(2, 1fr); }
}
