/* Creando Tu Matrix — Día 2 · palette derived from the El 16% infographic */
:root {
  --bg: #16222E;
  --bg-2: #1D2C3A;
  --grid: #22364A;
  --line: #33475C;
  --cream: #E9E4D8;
  --muted: #8FA3B0;
  --muted-2: #9FB2BF;
  --orange: #E8A33D;
  --blue: #3E5C76;
  --green: #6FBF8F;
  --mono: "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 270px 270px;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

a { color: var(--cream); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--grid);
  background: rgba(22, 34, 46, 0.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 24px; max-width: 1060px; margin: 0 auto;
}
.brand {
  font-family: var(--mono); font-size: 15px; letter-spacing: 2px;
  color: var(--cream); text-decoration: none; white-space: nowrap;
}
.brand .tld { color: var(--orange); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  color: var(--muted); text-decoration: none;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  color: #16222E; background: var(--orange); border-radius: 6px;
  padding: 8px 14px; text-decoration: none; white-space: nowrap; font-weight: bold;
}
.nav-cta:hover { filter: brightness(1.08); }
.lang {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px;
}
.lang:hover { color: var(--cream); border-color: var(--muted); }
@media (max-width: 820px) { .nav-links { display: none; } .nav { gap: 12px; } }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 14px; letter-spacing: 5px;
  color: var(--orange); text-transform: uppercase; margin: 0 0 18px;
}
.eyebrow.dim { color: var(--muted); }
h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.3rem); line-height: 1.05;
  letter-spacing: -0.02em; font-weight: 800; margin: 0 0 24px;
}
h1 .accent { color: var(--orange); }
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15;
  letter-spacing: -0.01em; font-weight: 750; margin: 0 0 14px;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted-2); max-width: 46em; }
.section { padding: 96px 0; border-top: 1px solid var(--grid); }
.section-head { margin-bottom: 44px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: #16222E;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: 15px 28px; border-radius: 8px;
}
.btn:hover { filter: brightness(1.08); }
.btn-sub {
  display: inline-block; margin-left: 18px;
  font-family: var(--mono); font-size: 0.9rem; color: var(--muted);
}
.btn-sub:hover { color: var(--cream); }
.btn-outline {
  display: inline-block; border: 1px solid var(--line); color: var(--cream);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 12px 22px; border-radius: 8px;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 640px) {
  .btn-sub { display: block; margin: 16px 0 0; }
}

/* ---------- hero ---------- */
.hero { padding: 110px 0 90px; }
/* size matches creandotumatrix.com's live .hero-logo (400px CSS width) */
.hero-logo {
  display: block; width: 400px; max-width: 100%; height: auto;
  margin: 0 auto 48px;
}
.hero .statusline {
  font-family: var(--mono); font-size: 13px; letter-spacing: 2px;
  color: var(--muted); margin-top: 40px;
}
.hero .statusline .dot { color: var(--green); }
@media (max-width: 640px) { .hero { padding: 72px 0 64px; } }

/* ---------- proof bar ---------- */
.proofbar {
  border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid);
  background: var(--bg-2);
}
.proofbar-inner {
  display: flex; flex-wrap: wrap; gap: 10px 0;
  justify-content: space-between; align-items: center;
  padding: 22px 24px; max-width: 1060px; margin: 0 auto;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 1px; color: var(--muted);
}
.proofbar-inner span strong { color: var(--cream); font-weight: bold; }
.proofbar-inner .sep { color: var(--line); padding: 0 8px; }
@media (max-width: 820px) {
  .proofbar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .proofbar-inner .sep { display: none; }
}

/* ---------- stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--grid);
  border-radius: 12px; padding: 30px 28px;
}
.stat-card .num {
  font-family: var(--mono); font-weight: bold;
  font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; margin-bottom: 14px;
}
.stat-card .num.orange { color: var(--orange); }
.stat-card .label { font-size: 1.05rem; color: var(--cream); margin-bottom: 6px; font-weight: 600; }
.stat-card .sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 20px; }
.bar-track {
  height: 12px; border-radius: 6px; background: var(--grid);
  position: relative; overflow: hidden;
}
.bar-track.dashed { background: transparent; border: 1.5px dashed var(--orange); overflow: visible; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--blue); }
.bar-fill.orange { background: var(--orange); }
.bar-note {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; margin-top: 8px;
}
.bar-note .l { color: var(--orange); } .bar-note .r { color: var(--muted); }

/* ---------- infographic figure ---------- */
.infographic { margin: 64px auto 0; max-width: 720px; text-align: center; }
.infographic img {
  width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--grid); display: block;
}
.infographic figcaption {
  font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 14px;
}
.infographic figcaption a { color: var(--orange); text-decoration: none; }
.infographic figcaption a:hover { text-decoration: underline; }

/* ---------- questions block ---------- */
.questions {
  margin-top: 72px; background: var(--bg-2);
  border: 1px solid var(--grid); border-left: 3px solid var(--orange);
  border-radius: 12px; padding: 38px 40px;
}
.questions h3 { margin: 0 0 22px; font-size: 1.3rem; }
.questions ol { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.questions li {
  counter-increment: q; position: relative;
  padding: 20px 0 20px 56px; color: var(--muted-2);
  border-top: 1px solid var(--grid);
}
.questions li:first-child { border-top: 0; padding-top: 4px; }
.questions li::before {
  content: "0" counter(q); position: absolute; left: 0; top: 22px;
  font-family: var(--mono); font-weight: bold; color: var(--orange);
}
.questions li:first-child::before { top: 6px; }
.questions li .q {
  margin: 0 0 10px; color: var(--cream); font-weight: 600; line-height: 1.4;
}
.questions li .a {
  margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; max-width: 60ch;
}
.questions .note { margin: 24px 0 0; font-size: 0.95rem; color: var(--muted); }
.questions .note strong { color: var(--cream); }
@media (max-width: 640px) { .questions { padding: 28px 22px; } }

/* ---------- offer ladder ---------- */
.ladder { display: flex; flex-direction: column; gap: 16px; }
.rung {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 24px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--grid); border-radius: 12px;
  padding: 30px 32px;
}
.rung:hover { border-color: var(--line); }
.rung .step { font-family: var(--mono); font-weight: bold; font-size: 1.5rem; color: var(--orange); }
.rung h3 { margin: 0 0 6px; font-size: 1.25rem; }
.rung h3 .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: var(--green); border: 1px solid var(--green); border-radius: 4px;
  padding: 3px 8px; margin-left: 12px; vertical-align: 3px; white-space: nowrap;
}
.rung p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 52em; }
.rung .cta { white-space: nowrap; }
.rung.eng { border-style: dashed; }
.rung.eng .step { color: var(--muted); }
@media (max-width: 820px) {
  .rung { grid-template-columns: 1fr; gap: 14px; padding: 26px 24px; }
  .rung .step { font-size: 1.2rem; }
}

/* ---------- personas ---------- */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .personas { grid-template-columns: 1fr; } }
.persona {
  background: var(--bg-2); border: 1px solid var(--grid);
  border-radius: 12px; padding: 30px 28px;
}
.persona .icon { font-family: var(--mono); font-size: 1.1rem; color: var(--orange); margin-bottom: 16px; }
.persona h3 { margin: 0 0 10px; font-size: 1.2rem; }
.persona p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.member {
  background: var(--bg-2); border: 1px solid var(--grid);
  border-radius: 12px; padding: 34px 32px;
}
.member .photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--grid); margin-bottom: 18px; display: block;
}
.member .role {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  color: var(--orange); margin-bottom: 12px;
}
.member h3 { margin: 0 0 12px; font-size: 1.45rem; }
.member p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.member .links { margin-top: 18px; font-family: var(--mono); font-size: 13px; }
.member .links a { color: var(--muted); text-decoration: none; margin-right: 16px; }
.member .links a:hover { color: var(--orange); }

/* ---------- quote ---------- */
.quote {
  border-left: 3px solid var(--orange); padding: 8px 0 8px 34px; max-width: 780px;
}
.quote blockquote {
  margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45; color: var(--cream); font-weight: 500;
}
.quote figcaption {
  margin-top: 20px; font-family: var(--mono); font-size: 13.5px; color: var(--muted);
}
.quote figcaption strong { color: var(--cream); }
.quote p { margin: 0 0 20px; font-size: 1rem; line-height: 1.7; color: var(--muted-2); max-width: 62ch; }

/* ---------- final cta ---------- */
.final { text-align: center; padding: 110px 0; }
.final h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.final p { max-width: 40em; margin: 0 auto 36px; }
.final .micro {
  margin-top: 26px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 1px; color: var(--muted);
}
.final .micro a { color: var(--muted-2); text-decoration-color: var(--line); }
.final .micro a:hover { color: var(--orange); text-decoration-color: var(--orange); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--grid); background: var(--bg-2); }
.footer-inner {
  max-width: 1060px; margin: 0 auto; padding: 36px 24px;
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--orange); }
.footer-inner .spacer { flex: 1; }
@media (max-width: 640px) { .footer-inner { flex-direction: column; align-items: flex-start; } .footer-inner .spacer { display: none; } }

/* ---------- floating whatsapp pill ---------- */
.wa-pill {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--green); color: #16222E; text-decoration: none;
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 20px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.wa-pill:hover { filter: brightness(1.07); }
.wa-pill svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .wa-pill span { display: none; } .wa-pill { padding: 14px; } }

/* ---------- article pages ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 80px 24px 40px; }
.article .backlink {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  text-decoration: none; display: inline-block; margin-bottom: 40px;
}
.article .backlink:hover { color: var(--orange); }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); }
.article .byline {
  font-family: var(--mono); font-size: 13.5px; color: var(--muted);
  margin: 0 0 48px; padding-bottom: 28px; border-bottom: 1px solid var(--grid);
}
.article .byline strong { color: var(--cream); }
.article p { color: var(--muted-2); margin: 0 0 24px; }
.article p strong { color: var(--cream); }
.article h2 { margin: 52px 0 18px; }
.article ol { color: var(--muted-2); padding-left: 24px; margin: 0 0 24px; }
.article ol li { margin-bottom: 12px; padding-left: 6px; }
.article ol li::marker { font-family: var(--mono); font-weight: bold; color: var(--orange); }
.article .bignum { color: var(--cream); }
.article .bignum strong { color: var(--orange); font-family: var(--mono); }
.article figure { margin: 44px 0; }
.article figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--grid); }
.article .outro {
  font-style: italic; color: var(--muted); border-top: 1px solid var(--grid); padding-top: 28px;
}
.article-cta {
  max-width: 720px; margin: 24px auto 90px; padding: 0 24px;
}
.article-cta .box {
  background: var(--bg-2); border: 1px solid var(--grid); border-left: 3px solid var(--orange);
  border-radius: 12px; padding: 38px 40px;
}
.article-cta h2 { margin-top: 0; }
.article-cta p { color: var(--muted); margin-bottom: 28px; }
@media (max-width: 640px) { .article-cta .box { padding: 28px 22px; } }