/* Estilos compartidos de las páginas interiores (índice, agencias). La portada lleva los suyos en línea. */
:root {
  --ink: #15172b; --ink-2: #4a4c5e; --grey: #8b8c97; --rule: #dcdbe3;
  --paper: #f7f6f2; --white: #ffffff;
  --tv: #ff5a4e; --ia: #6a5cff; --ia-soft: #d9d5ff; --ia-ink: #5243e6; --rs: #12b5a2;
  --gutter: clamp(16px, 4vw, 56px);
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }

header { position: sticky; top: 0; z-index: 10; background: rgba(247,246,242,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 23px; letter-spacing: -.035em; }
.logo span { color: var(--grey); font-weight: 500; }
.logo svg { width: 34px; height: 34px; }
header nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
header nav a { text-decoration: none; }
header nav a:hover, header nav a[aria-current] { color: var(--ia); }

.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; padding: 14px 22px; border-radius: 99px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.btn:hover { background: var(--ia); border-color: var(--ia); }
.btn.ghost { background: none; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.sm { padding: 9px 16px; font-size: 15px; }

.intro { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.chip { display: inline-flex; font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 99px; color: #fff; background: var(--c, var(--ink)); }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; margin-top: 18px; max-width: 16em; }
h1 em, h2 em { font-style: normal; color: var(--c, var(--ia)); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 40em; margin-top: 22px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
section { padding: clamp(40px, 6vw, 80px) 0; }
p.muted, .note { color: var(--ink-2); }
.note { font-size: 14px; color: var(--grey); margin-top: 14px; line-height: 1.45; }

.card { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.insight { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--ia-soft); font-size: 16px; line-height: 1.45; }
.insight b { color: var(--ia-ink); }

.matrix { width: 100%; border-collapse: separate; border-spacing: 4px; margin-top: 18px; font-family: var(--mono); }
.matrix th { font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); padding: 0 0 6px; text-align: center; }
.matrix th:first-child { text-align: left; }
.matrix th.tot { color: var(--ink); font-weight: 600; }
.matrix td { height: 42px; text-align: center; font-size: 14px; border-radius: 6px; }
.matrix td:first-child { text-align: left; font-family: var(--sans); font-weight: 600; font-size: 15px; padding-right: 8px; }
.matrix td.tot { font-family: var(--sans); font-weight: 700; font-size: 17px; }
.matrix td small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--grey); letter-spacing: .04em; }
.scale { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--grey); }
.scale i { display: block; width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f1efff, #6a5cff, #2b2378); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.list { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.list li { display: grid; grid-template-columns: 22px 1fr; color: var(--ink-2); }
.list li::before { content: "→"; font-family: var(--mono); color: var(--grey); }

.cta-band { background: var(--ink); color: var(--paper); border-radius: 20px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta-band p { color: #a9aabb; margin-top: 8px; max-width: 34em; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: var(--ia); color: #fff; border-color: var(--ia); }

footer { border-top: 1px solid var(--rule); margin-top: clamp(40px, 6vw, 80px); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--grey); flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 900px) {
  header nav { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  header .btn { display: none; }
  .matrix td { height: 38px; font-size: 12.5px; }
  .matrix td:first-child { font-size: 13.5px; line-height: 1.2; }
  .matrix td.tot { font-size: 15px; }
}
