:root {
  --stone: #f4f2ee;
  --stone-deep: #e8e4dc;
  --mist: #faf9f7;
  --indigo: #1e2a4a;
  --indigo-soft: #2d3f6b;
  --indigo-muted: rgba(30, 42, 74, 0.12);
  --copper: #c45c26;
  --copper-soft: #d97a4a;
  --copper-bg: #fdf0ea;
  --success: #3d6b5e;
  --text: #1a1a18;
  --text-muted: #5a5a52;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 3px rgba(30, 42, 74, 0.08);
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1080px;
  --header-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--stone);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--indigo);
}

a:hover {
  color: var(--copper);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--indigo);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 238, 0.94);
  border-bottom: 1px solid var(--indigo-muted);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.site-wordmark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  color: var(--indigo);
  text-transform: lowercase;
}

.site-wordmark-accent {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--copper);
  line-height: 1;
}

.site-wordmark--footer {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-wordmark--footer .site-wordmark-name {
  font-size: 0.82rem;
  color: var(--stone);
}

.site-wordmark--footer .site-wordmark-accent {
  font-size: 0.55rem;
  color: var(--copper-soft);
}

.nav-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid var(--indigo-muted);
  background: var(--white);
  color: var(--indigo);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--indigo-soft);
}

.site-nav a:hover {
  border-color: var(--indigo-muted);
  background: var(--white);
  color: var(--indigo);
}

.header-age {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--copper);
  border: 1px solid var(--copper);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.ref-hero {
  padding: 2.5rem 1.25rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 42, 74, 0.06), transparent),
    var(--stone);
  text-align: center;
}

.ref-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-crest {
  width: 72px;
  margin: 0 auto 1rem;
  opacity: 0.92;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.ref-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.15;
  color: var(--indigo);
  font-weight: 600;
}

.hero-lead {
  margin: 0 auto 1.35rem;
  max-width: 640px;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.snapshot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 0;
  list-style: none;
}

.snapshot-strip li {
  background: var(--white);
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius);
  padding: 0.65rem 0.5rem;
  box-shadow: var(--shadow);
}

.snapshot-strip span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.snapshot-strip strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--indigo);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-cta {
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--copper-outline {
  color: var(--copper);
  border-color: var(--copper);
  background: transparent;
}

.btn--copper-outline:hover {
  background: var(--copper-bg);
  color: var(--copper-soft);
}

.btn--copper-fill {
  color: var(--white);
  background: var(--copper);
  border-color: var(--copper);
}

.btn--copper-fill:hover {
  background: var(--copper-soft);
  border-color: var(--copper-soft);
  color: var(--white);
}

.page-section {
  padding: 2.75rem 1.25rem;
}

.page-section--alt {
  background: var(--mist);
}

.page-section--indigo {
  background: var(--indigo);
  color: var(--stone);
}

.section-wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.section-tag {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.page-section--indigo .section-tag {
  color: var(--copper-soft);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.2;
  color: var(--indigo);
  font-weight: 600;
}

.page-section--indigo .section-title {
  color: var(--stone);
}

.section-intro {
  margin: 0 0 1.25rem;
  max-width: 720px;
  color: var(--text-muted);
}

.page-section--indigo .section-intro,
.page-section--indigo p {
  color: rgba(244, 242, 238, 0.88);
}

.dinamica-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.dinamica-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.dinamica-points li {
  padding: 0.75rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dinamica-visual {
  position: relative;
  width: 140px;
  flex-shrink: 0;
}

.dinamica-visual .texture {
  position: absolute;
  inset: -20% -30% auto auto;
  width: 120px;
  opacity: 0.12;
  filter: grayscale(1) sepia(0.3);
  pointer-events: none;
}

.dinamica-visual img:not(.texture) {
  width: 120px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--indigo-muted);
}

.consult-table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.consult-table th,
.consult-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--indigo-muted);
}

.consult-table th {
  width: 42%;
  font-weight: 600;
  color: var(--indigo-soft);
  background: var(--mist);
}

.consult-table tr:nth-child(even) td {
  background: rgba(244, 242, 238, 0.5);
}

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

.consult-table td {
  color: var(--text);
  font-weight: 500;
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.numero-card {
  background: var(--white);
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.numero-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--indigo);
}

.numero-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.board-strip {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius-lg);
}

.board-strip-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.board-reels {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  align-items: flex-end;
}

.board-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.board-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0.35rem;
  background: var(--stone-deep);
  border-radius: var(--radius);
  border: 1px solid var(--indigo-muted);
}

.board-cell {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--indigo-soft);
  opacity: 0.75;
}

.board-col--top .board-stack {
  background: var(--copper-bg);
  border-color: rgba(196, 92, 38, 0.25);
}

.board-col--top .board-cell {
  background: var(--copper);
}

.board-meta {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.board-top-row {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding-left: calc(14px + 0.35rem);
}

.symbol-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.symbol-tile {
  background: var(--white);
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.symbol-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--copper-bg);
  color: var(--copper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.symbol-tile h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--indigo);
}

.symbol-tile p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.decision-fork {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.fork-path {
  background: var(--white);
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.fork-path--risk {
  border-color: rgba(196, 92, 38, 0.35);
  background: var(--copper-bg);
}

.fork-path h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--indigo);
}

.fork-path p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.fork-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.demo-thumb {
  width: 120px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--indigo-muted);
  box-shadow: var(--shadow);
}

.demo-checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.demo-checklist li {
  padding-left: 1.35rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.demo-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--copper);
  border-radius: 2px;
}

.compat-matrix {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compat-matrix th,
.compat-matrix td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--indigo-muted);
}

.compat-matrix th {
  background: var(--indigo);
  color: var(--stone);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compat-matrix tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--indigo-muted);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--indigo);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--stone-deep);
  color: var(--text-muted);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--indigo-muted);
}

.faq-item p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.play-section {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--white);
  border-top: 1px solid var(--indigo-muted);
}

.play-section-inner {
  max-width: 560px;
  margin: 0 auto;
}

.play-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--indigo);
}

.play-section p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.source-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rg-line {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.site-footer {
  background: var(--indigo);
  color: rgba(244, 242, 238, 0.85);
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-age {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--copper-soft);
  border: 1px solid rgba(217, 122, 74, 0.5);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
}

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

.footer-nav a {
  color: rgba(244, 242, 238, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--stone);
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(244, 242, 238, 0.65);
  max-width: 640px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--stone);
    border-bottom: 1px solid var(--indigo-muted);
    padding: 0.75rem 1.25rem 1rem;
    margin-left: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .header-age {
    order: 3;
  }

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

  .dinamica-layout,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .dinamica-visual {
    display: none;
  }

  .symbol-band {
    grid-template-columns: 1fr;
  }

  .decision-fork {
    grid-template-columns: 1fr;
  }

  .fork-divider {
    padding: 0.35rem 0;
  }

  .demo-thumb {
    display: none;
  }
}

@media (max-width: 480px) {
  .ref-hero {
    padding-top: 1.75rem;
  }

  .page-section {
    padding: 2rem 1rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
