/* ===========================================================
   Streambe · Marketing — hoja de marca compartida
   Tipografías, paleta y cáscara de navegación para todo el sitio.
   Fuente: Manual de Marca corporativa v1.0
   =========================================================== */

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(familjen-grotesk.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(inter.woff2) format('woff2');
}

:root {
  /* paleta de marca */
  --tech: #0253E8;
  --action: #2FB1FE;
  --clear: #B1EDFF;
  --navy: #10192B;
  --good: #29C927;
  --bad: #EB2D2D;
  --steel: #5B7BB4;

  --ink: #141b2b;
  --ink-soft: #42506b;
  --ground: #ffffff;
  --panel: #f5f7fb;
  --panel-2: #eef2f9;
  --line: #dde4f0;
  --shadow: 0 1px 2px rgba(16, 25, 43, .04), 0 6px 20px rgba(16, 25, 43, .06);
  --warn: #8a5a10;

  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf0fb; --ink-soft: #9fb0cf; --ground: #0b1220;
    --panel: #111b30; --panel-2: #0f1830; --line: #22304c;
    --navy: #dbe6ff; --steel: #8fa8cf; --warn: #d3a45a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 26px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --ink: #eaf0fb; --ink-soft: #9fb0cf; --ground: #0b1220;
  --panel: #111b30; --panel-2: #0f1830; --line: #22304c;
  --navy: #dbe6ff; --steel: #8fa8cf; --warn: #d3a45a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 26px rgba(0,0,0,.35);
}
:root[data-theme="light"] {
  --ink: #141b2b; --ink-soft: #42506b; --ground: #ffffff;
  --panel: #f5f7fb; --panel-2: #eef2f9; --line: #dde4f0;
  --navy: #10192B; --steel: #5B7BB4; --warn: #8a5a10;
  --shadow: 0 1px 2px rgba(16,25,43,.04), 0 6px 20px rgba(16,25,43,.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: 'Familjen Grotesk', Helvetica, Arial, sans-serif;
  letter-spacing: -.02em;
  text-wrap: balance;
  font-weight: 500;
}

.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tech);
}

a { color: var(--tech); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--tech); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===================== cáscara de navegación ===================== */

.shell-nav {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.shell-nav .wrap {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap; padding: 10px 24px;
}
.shell-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto; text-decoration: none; color: var(--ink);
}
.shell-brand svg, .shell-brand img { width: 26px; height: 26px; flex: none; object-fit: contain; }
.shell-brand b {
  font-family: 'Familjen Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 600; letter-spacing: -.02em; font-size: 1.02rem;
}
.shell-brand span { color: var(--ink-soft); font-size: .88rem; font-weight: 400; }

.shell-nav a.item {
  font-size: .84rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 7px 12px; border-radius: 999px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.shell-nav a.item:hover { color: var(--ink); background: var(--panel-2); }
.shell-nav a.item[aria-current="page"] {
  color: var(--ink); background: var(--panel-2); font-weight: 600;
}
.shell-nav a.item .lock { width: 11px; height: 11px; opacity: .55; }

.nav-drop { position: relative; }
.nav-drop summary {
  font-size: .84rem; font-weight: 500; color: var(--ink-soft); cursor: pointer;
  padding: 7px 12px; border-radius: 999px; list-style: none;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; opacity: .6;
}
.nav-drop:hover summary, .nav-drop[open] summary { color: var(--ink); background: var(--panel-2); }
.nav-drop[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-drop .menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 95;
  display: flex; flex-direction: column; min-width: 200px; padding: 6px;
  background: var(--ground); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.nav-drop .menu a.item { border-radius: 8px; }

.shell-nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.shell-out {
  font-size: .78rem; color: var(--ink-soft); text-decoration: none;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.shell-out:hover { color: var(--ink); border-color: var(--steel); }
.shell-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }

/* ===================== hero (masthead) ===================== */

.hero {
  background: #10192B; color: #eaf0fb;
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero .wrap { padding: 44px 24px 40px; position: relative; z-index: 2; }
.hero .eyebrow { color: var(--action); }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.04; margin: .5rem 0 0; }
.hero p.lede { max-width: 64ch; color: #c7d4ee; margin-top: .9rem; font-size: .98rem; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.3rem; }
.chip {
  font-size: .8rem; font-weight: 500; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #dbe6ff;
}
.rings {
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px; z-index: 1; opacity: .85; pointer-events: none;
}
@media (max-width: 760px) { .rings { opacity: .22; } }
@media (prefers-reduced-motion: no-preference) {
  .rings circle { transform-box: fill-box; transform-origin: center; animation: drift 9s ease-in-out infinite; }
  .rings circle:nth-child(2) { animation-delay: -3s; }
  .rings circle:nth-child(3) { animation-delay: -6s; }
}
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===================== componentes comunes ===================== */

.section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin: .4rem 0 0; }
.sec-head p { color: var(--ink-soft); max-width: 66ch; margin: .6rem 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 20px 22px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
}
.card.accent::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc, var(--tech));
}
.card h3 { margin: 0; font-size: 1.06rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.card .k {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .n {
  font-family: 'Familjen Grotesk', Helvetica, Arial, sans-serif;
  font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat .l { font-size: .8rem; color: var(--ink-soft); }

.tw {
  overflow-x: auto; border: 1px solid var(--line); border-radius: 14px;
  background: var(--ground); box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
caption {
  text-align: left; padding: 16px 20px; color: var(--ink);
  font-family: 'Familjen Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em;
  border-bottom: 1px solid var(--line);
}
th, td { padding: 11px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; white-space: nowrap;
}
td { color: var(--ink-soft); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
tbody tr:last-child td { border-bottom: none; }

.pill {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.pill.ok   { background: rgba(41,201,39,.14);  color: #1c8a1b; }
.pill.wip  { background: rgba(47,177,254,.16); color: #0a6bb0; }
.pill.wait { background: rgba(91,123,180,.16); color: #43608f; }
.pill.stop { background: rgba(235,45,45,.12);  color: #c02626; }
:root[data-theme="dark"] .pill.ok,   :root:not([data-theme="light"]) .pill.ok   { color: #6fdc6d; }
:root[data-theme="dark"] .pill.wip,  :root:not([data-theme="light"]) .pill.wip  { color: #7cc6ff; }
:root[data-theme="dark"] .pill.wait, :root:not([data-theme="light"]) .pill.wait { color: #a8c0e6; }
:root[data-theme="dark"] .pill.stop, :root:not([data-theme="light"]) .pill.stop { color: #ff8080; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .pill.ok { color: #1c8a1b; }
  :root:not([data-theme="dark"]) .pill.wip { color: #0a6bb0; }
  :root:not([data-theme="dark"]) .pill.wait { color: #43608f; }
  :root:not([data-theme="dark"]) .pill.stop { color: #c02626; }
}

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow); padding: 18px 22px;
  max-width: 70ch; display: flex; flex-direction: column; gap: 9px;
}
.callout b {
  font-family: 'Familjen Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em;
}
.callout p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

footer.shell-foot {
  padding: 26px 0 46px; color: var(--ink-soft); font-size: .82rem;
  border-top: 1px solid var(--line);
}
footer.shell-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between; align-items: center;
}
.sig {
  font-family: 'Familjen Grotesk', Helvetica, Arial, sans-serif;
  color: var(--ink); letter-spacing: -.02em;
}

.hidden { display: none !important; }

@media (max-width: 700px) {
  .shell-nav .wrap { padding: 10px 16px; }
  .shell-brand span { display: none; }
  .wrap { padding: 0 16px; }
}
