/* ============================================================
   Gemini 4 Argon — micrositio informativo (versión Claude Code)
   Tema claro editorial. Sin dependencias externas ni CDN.
   ============================================================ */

:root {
  --bg: #FAF9F7;
  --card: #FFFFFF;
  --ink: #3D3929;
  --ink-soft: #6E6656;
  --ink-faint: #948B7A;
  --coral: #C96442;
  --coral-deep: #A94F31;
  --coral-soft: rgba(201, 100, 66, 0.09);
  --coral-mid: rgba(201, 100, 66, 0.22);
  --line: #E7E2D8;
  --line-soft: #EFECE5;
  --m1: #C96442; /* Gemini 4 Argon */
  --m2: #7A7263; /* GPT-6 Astra */
  --m3: #A89D8B; /* Claude Fable 5.1 */
  --m4: #5C5344; /* Claude Opus 5.5 */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(61, 57, 41, 0.05), 0 8px 28px rgba(61, 57, 41, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span {
  font-size: 0.8rem;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.consulta-chip {
  font-size: 0.78rem;
  color: var(--coral-deep);
  background: var(--coral-soft);
  border: 1px solid var(--coral-mid);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero { padding: 58px 0 30px; position: relative; }
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 20ch;
}
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 26px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 8px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 600;
  color: var(--coral-deep);
  line-height: 1.1;
}
.stat .lbl {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.stat .src { font-size: 0.74rem; }

/* ---------- Bloques editoriales ---------- */

.section { padding: 42px 0 10px; }
.section-head { max-width: 70ch; margin-bottom: 22px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 10px;
}
.section-head p { color: var(--ink-soft); margin: 0; }

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  margin: 0 0 8px;
}
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--coral-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.card p + p { margin-top: 8px; }
.card .fn { font-size: 0.78rem; margin-top: 10px; }

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 22px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 12px 16px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--coral-deep);
  border-bottom-color: var(--coral);
  font-weight: 600;
}
[role="tabpanel"][hidden] { display: none; }
[role="tabpanel"]:not([hidden]) { animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Benchmarks ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  appearance: none;
  font: inherit;
  font-size: 0.83rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--coral-mid); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  font-weight: 600;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-left: auto;
  cursor: pointer;
  user-select: none;
}
.switch input { accent-color: var(--coral); width: 16px; height: 16px; cursor: pointer; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
table.bench { border-collapse: collapse; width: 100%; min-width: 780px; }
table.bench caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding: 12px 16px 4px;
}
table.bench th, table.bench td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  font-size: 0.88rem;
}
table.bench thead th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.bench thead th.model-argon { color: var(--coral-deep); }
table.bench tbody tr:last-child td { border-bottom: none; }
table.bench tbody tr:hover { background: var(--bg); }
td.bname strong { font-weight: 600; display: block; }
td.bname .note { font-size: 0.76rem; color: var(--ink-faint); display: block; margin-top: 2px; }
td.cat { font-size: 0.78rem; color: var(--ink-faint); white-space: nowrap; }
.bar-wrap { min-width: 120px; }
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  margin-bottom: 4px;
}
.bar i { display: block; height: 100%; border-radius: 999px; }
.bar.m1 i { background: var(--m1); }
.bar.m2 i { background: var(--m2); }
.bar.m3 i { background: var(--m3); }
.bar.m4 i { background: var(--m4); }
.val { font-variant-numeric: tabular-nums; font-size: 0.83rem; color: var(--ink-soft); }
.pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.pill.lidera { background: var(--coral); color: #fff; }
.pill.empate { background: var(--coral-soft); color: var(--coral-deep); border: 1px solid var(--coral-mid); }
.table-foot {
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding: 12px 16px 14px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.extra-results { margin-top: 22px; }
.extra-results h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 10px; }
.extra-results ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.92rem; }
.extra-results li { margin-bottom: 6px; }

/* ---------- Casos de uso ---------- */

.usecase-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.uc-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.uc-panel h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 4px; }
.uc-panel .uc-sub { color: var(--ink-faint); font-size: 0.85rem; margin: 0 0 16px; }
.uc-panel ul { margin: 0; padding-left: 20px; }
.uc-panel li { margin-bottom: 10px; font-size: 0.95rem; }
.uc-panel li .fn { font-size: 0.78rem; }
.uc-figure { font-family: var(--serif); font-weight: 600; color: var(--coral-deep); }

/* ---------- Cronología ---------- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 18px; }
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--coral);
}
.timeline .t-date {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: block;
  margin-bottom: 3px;
}
.timeline strong { font-weight: 600; }
.timeline p { margin: 4px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.timeline .fn { font-size: 0.78rem; }

/* ---------- Precios ---------- */

table.price { border-collapse: collapse; width: 100%; min-width: 640px; }
table.price th, table.price td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
  text-align: left;
  vertical-align: top;
}
table.price thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
table.price td:first-child strong { font-weight: 600; }
table.price td:first-child .endpoint {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 2px;
}
.price-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.nv {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-faint);
  border: 1px dashed var(--ink-faint);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}

/* ---------- Conclusiones y límites ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.limits li { margin-bottom: 10px; }
.limits ul { margin: 0; padding-left: 20px; font-size: 0.93rem; color: var(--ink-soft); }
.card h3 .ico { color: var(--coral); margin-right: 6px; }

/* ---------- Fuentes ---------- */

.sources ol { margin: 0; padding-left: 22px; font-size: 0.9rem; color: var(--ink-soft); }
.sources li { margin-bottom: 12px; }
.sources .meta { display: block; font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }
.sources code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8em;
  background: var(--coral-soft);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- Pie ---------- */

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.site-footer .authorship { margin-top: 6px; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--coral-deep);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.to-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cards3, .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 8px; }
  .brand span { display: none; }
  .consulta-chip { order: 3; }
  .uc-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
