/* ================================================================
   OLVIDEMONOS DE TODO — investigación abierta sobre la final
   Tono: sobrio, editorial, creíble. Fondo oscuro sin theatrics.
   ================================================================ */

:root {
  --bg:        #0e1013;
  --bg-2:      #14171c;
  --surface:   #171a20;
  --ink:       #eae8e2;   /* texto papel */
  --muted:     #9498a1;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --accent:    #7aa7c7;   /* azul acero: investigación */
  --gold:      #c9a227;   /* dorado de marca, con moderación */
  --hecho:     #5cbf8f;
  --indicio:   #d6a441;
  --inferencia:#7bb0ea;
  --pregunta:  #9aa6b2;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(130% 90% at 50% -20%, #171a20 0%, var(--bg) 60%, #090a0c 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  letter-spacing: .005em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Grano tenue (sutil, no dramático) */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 34px);
}

/* ---------------- Barra superior ---------------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0 18px; border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--mono); font-size: .92rem; letter-spacing: .02em; color: var(--ink); }
.brand span { color: var(--muted); }
.state {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.dotpulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201,162,39,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(201,162,39,.45)} 70%{box-shadow:0 0 0 8px rgba(201,162,39,0)} 100%{box-shadow:0 0 0 0 rgba(201,162,39,0)} }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(48px, 9vw, 92px) 0 clamp(30px, 5vw, 46px); }
.kicker {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 1.14; letter-spacing: -.01em;
  color: var(--ink); text-wrap: balance; max-width: 20ch;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.dek {
  margin-top: 26px; font-size: clamp(1.02rem, 2.1vw, 1.22rem); color: #c8c7c1;
  max-width: 60ch; line-height: 1.7;
}
.dek strong, .frame strong { color: var(--ink); font-weight: 600; }
.frame {
  margin-top: 22px; padding: 14px 18px; max-width: 60ch;
  border-left: 3px solid var(--accent); background: rgba(122,167,199,.07);
  border-radius: 0 6px 6px 0; font-size: .95rem; color: var(--muted);
}

/* ---------------- Títulos de sección ---------------- */
.sec-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.2; letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
}
.sec-sub { margin-top: 8px; color: var(--muted); font-size: .98rem; max-width: 62ch; }

section { padding: clamp(30px, 5vw, 48px) 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }

/* ---------------- Método: etiquetas ---------------- */
.tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 720px){ .tags { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px){ .tags { grid-template-columns: 1fr; } }
.lvl {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; position: relative; overflow: hidden;
}
.lvl::before { content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c);
}
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.lvl p { margin-top: 10px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.l-hecho{--c:var(--hecho)} .l-indicio{--c:var(--indicio)} .l-infer{--c:var(--inferencia)} .l-preg{--c:var(--pregunta)}

/* ---------------- Cards "próximamente" ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 720px){ .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; display: flex; flex-direction: column; gap: 8px; min-height: 168px;
}
.card .num { font-family: var(--mono); font-size: .78rem; color: var(--accent); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.card p { color: var(--muted); font-size: .92rem; flex: 1; }
.soonbadge {
  align-self: flex-start; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,162,39,.35); background: rgba(201,162,39,.08);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------------- Sumate ---------------- */
.join .cta {
  display: inline-block; margin-top: 22px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  color: #0e1013; background: var(--gold); text-decoration: none;
  padding: 13px 26px; border-radius: 8px; transition: transform .15s ease, background .15s ease;
}
.join .cta:hover { transform: translateY(-1px); background: #dab52f; }
.joinnote { margin-top: 16px; font-size: .84rem; color: var(--muted); font-style: italic; }

/* ---------------- Footer ---------------- */
.foot { padding: 34px 0 48px; border-top: 1px solid var(--line); margin-top: 8px; }
.fnote { font-size: .82rem; color: var(--muted); max-width: 68ch; line-height: 1.6; }
.fbrand { margin-top: 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--gold); }

/* ---------------- Card enlazada (portada) ---------------- */
.cardlink { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.cardlink:hover { border-color: var(--line-2); transform: translateY(-2px); }
.soonbadge.live { color: var(--accent); border-color: rgba(122,167,199,.4); background: rgba(122,167,199,.1); }

/* ---------------- Cronología / línea de tiempo ---------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--muted)); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); display: inline-block; }

.tl-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tl-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.tl-order { font-family: var(--mono); font-size: .72rem; color: var(--accent); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: border-color .15s ease; }
.tl-order:hover { border-color: var(--accent); }

.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 96px 28px 1fr; grid-template-areas: "when dot body";
  align-items: start;
}
.tl-when { grid-area: when; text-align: right; padding-top: 2px; }
.tl-date { display: block; font-family: var(--mono); font-size: .74rem; color: var(--ink); }
.tl-time { display: block; font-family: var(--mono); font-size: .66rem; color: var(--muted); margin-top: 3px; }
.tl-dot { grid-area: dot; position: relative; align-self: stretch; }
.tl-dot::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-dot::after { content: ""; position: absolute; left: 7px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--c, var(--muted)); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.tl-item:first-child .tl-dot::before { top: 6px; }
.tl-item:last-child .tl-dot::before { bottom: auto; height: 6px; }
.tl-body { grid-area: body; padding: 0 0 30px 6px; }
.tl-title { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; color: var(--ink); margin: 7px 0 4px; text-wrap: balance; }
.tl-desc { color: var(--muted); font-size: .92rem; max-width: 60ch; line-height: 1.6; }
.tl-embed { margin-top: 14px; max-width: 380px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000; }
.tl-embed iframe { width: 100%; display: block; border: 0; }
.tl-embed.ig iframe { height: 620px; }
.tl-embed.yt { aspect-ratio: 16 / 9; max-width: 560px; }
.tl-embed.yt iframe { height: 100%; }
.tl-embed.fb { max-width: 500px; }
.tl-embed.fb iframe { height: 400px; }
@media (max-width: 560px) { .tl-embed { max-width: 100%; } }
.tl-foot { margin-top: 10px; }
.tl-src { font-family: var(--mono); font-size: .72rem; color: var(--accent); text-decoration: none; }
.tl-src:hover { text-decoration: underline; }
.tl-src.muted { color: var(--muted); }
.tl-loading, .tl-empty { color: var(--muted); font-style: italic; padding: 8px 0; }
.tl-example-note { margin-top: 12px; font-size: .82rem; color: var(--muted); font-style: italic; border-top: 1px dashed var(--line); padding-top: 16px; }

@media (max-width: 560px) {
  .tl-item { grid-template-columns: 28px 1fr; grid-template-areas: "dot when" "dot body"; }
  .tl-when { text-align: left; display: flex; gap: 10px; align-items: baseline; padding-bottom: 6px; }
  .tl-time { margin-top: 0; }
}

/* ---------------- Formulario "Sumá tu evidencia" ---------------- */
.form { max-width: 640px; display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form label { font-size: .86rem; color: var(--ink); font-weight: 500; }
.req { color: var(--indicio); }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.form input, .form textarea, .form select {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 11px 13px; width: 100%;
}
.form input[type="date"], .form input[type="time"] { color-scheme: dark; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(122,167,199,.18);
}
.form textarea { resize: vertical; min-height: 90px; }
.hint { font-size: .78rem; color: var(--muted); }
.form-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.form-note { font-size: .78rem; color: var(--muted); max-width: 60ch; }
button.cta { border: none; cursor: pointer; font-family: var(--sans); }
.form-msg { font-size: .92rem; padding: 12px 15px; border-radius: 8px; max-width: 60ch; }
.form-msg.ok { color: #cdeede; background: rgba(92,191,143,.12); border: 1px solid rgba(92,191,143,.4); }
.form-msg.err { color: #f0cccc; background: rgba(206,92,92,.12); border: 1px solid rgba(206,92,92,.4); }

/* ---------------- Panel de admin ---------------- */
.adm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-tab { font-family: var(--mono); font-size: .72rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.adm-tab:hover { color: var(--ink); }
.adm-tab.is-on { color: var(--ink); border-color: var(--accent); background: rgba(122,167,199,.1); }
.adm-tab .cnt { color: var(--gold); margin-left: 4px; }

.adm-list { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line-2)); border-radius: 10px; padding: 18px; }
.adm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.adm-when { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-left: auto; }
.adm-state { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); }
.adm-state.s-pendiente { color: var(--indicio); border-color: rgba(214,164,65,.4); background: rgba(214,164,65,.1); }
.adm-state.s-aprobado  { color: var(--hecho);   border-color: rgba(92,191,143,.4); background: rgba(92,191,143,.1); }
.adm-state.s-rechazado { color: var(--pregunta); border-color: var(--line-2); background: rgba(255,255,255,.03); }
.adm-card .tl-title { margin: 4px 0; }
.adm-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-btn { font-family: var(--sans); font-size: .82rem; font-weight: 600; cursor: pointer; border-radius: 7px; padding: 8px 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); transition: filter .15s ease, transform .1s ease; }
.adm-btn:hover { transform: translateY(-1px); }
.adm-btn.ok { background: var(--hecho); border-color: var(--hecho); color: #06231a; }
.adm-btn.warn { background: transparent; border-color: rgba(214,164,65,.5); color: var(--indicio); }
.adm-btn.danger { background: transparent; border-color: rgba(206,92,92,.5); color: #d98a8a; }

/* ---------------- SEO oculto ---------------- */
.seo-only { 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) { * { animation: none !important; transition: none !important; } }
