/* ZONA SEIS — hoja de estilos principal */
:root {
  --bg: #0b0a12;
  --bg-2: #13111d;
  --card: #1a1726;
  --line: #2a2640;
  --text: #f1eef8;
  --muted: #a39eb8;
  --pink: #ff3d8b;
  --orange: #ff8a3d;
  --teal: #2de2c6;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, var(--pink), var(--orange));
  --radius: 14px;
  --max: 1200px;
  --head: "Anton", "Impact", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--grad);
  color: #160b12;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
}
.topbar a { text-decoration: underline; }
.topbar a:hover { color: #000; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 18, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo {
  font-family: var(--head);
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1;
}
.logo span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.menu-btn {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer;
}

/* ---------- Huecos de anuncios ---------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  margin: 24px auto;
  background: repeating-linear-gradient(45deg, #15131f, #15131f 10px, #181525 10px, #181525 20px);
  border: 1px dashed #3a3556;
  border-radius: 10px;
  color: #6f6a88;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}
.ad-slot::before {
  content: "Publicidad";
  position: absolute; top: 4px; left: 8px;
  font-size: 10px; letter-spacing: 1px; color: #5a5573;
}
.ad-leaderboard { max-width: 728px; height: 90px; }
.ad-inarticle { width: 100%; min-height: 250px; }
.ad-sidebar { width: 300px; height: 600px; margin: 0; }
.ad-square { width: 300px; height: 250px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  display: flex; align-items: flex-end;
  margin-top: 8px;
  border: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,10,18,.95) 10%, rgba(11,10,18,.2) 60%, transparent);
}
.hero-content { position: relative; z-index: 2; padding: 40px; max-width: 720px; }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--pink); color: #fff;
}
.tag.teal { background: var(--teal); color: #062a25; }
.tag.orange { background: var(--orange); color: #2a1305; }
.tag.violet { background: var(--violet); color: #fff; }
.hero h1 {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.05;
  margin: 14px 0 12px;
  text-transform: uppercase;
}
.hero p { color: #d4cfe4; font-size: 18px; max-width: 600px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

.btn {
  display: inline-block;
  background: var(--grad); color: #1a0c12;
  font-weight: 700; padding: 12px 22px; border-radius: 10px;
  margin-top: 20px; border: 0; cursor: pointer; font-size: 15px;
}
.btn:hover { color: #000; filter: brightness(1.08); }

/* ---------- Tracker de estado ---------- */
.tracker {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 24px 0;
}
.track {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.track small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.track strong { display: block; font-size: 18px; margin-top: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.ok { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.dot.wait { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* ---------- Layout principal ---------- */
.layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
  margin: 32px auto 48px;
}
.section-title {
  font-family: var(--head); font-weight: 400;
  font-size: 28px; text-transform: uppercase; letter-spacing: .5px;
  margin: 8px 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--pink), transparent); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: #4a4370; }
.card:hover h3 { color: var(--pink); }
.thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.thumb svg { width: 100%; height: 100%; }
.thumb .tag { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 16px 18px 18px; }
.card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 8px; transition: color .2s; }
.card p { color: var(--muted); font-size: 14px; }

/* Lista compacta */
.list { display: flex; flex-direction: column; gap: 14px; }
.list-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.num { font-family: var(--head); font-size: 32px; line-height: 1; color: var(--pink); }
.list-item h4 { font-size: 15px; line-height: 1.4; }
.list-item span { color: var(--muted); font-size: 12px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sticky { position: sticky; top: 84px; }
.widget {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.widget h3 { font-family: var(--head); font-weight: 400; font-size: 20px; text-transform: uppercase; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.tags a:hover { border-color: var(--pink); color: var(--text); }

/* Newsletter */
.newsletter {
  background: radial-gradient(circle at 20% 0%, rgba(255,61,139,.25), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(45,226,198,.18), transparent 60%),
              var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; margin: 40px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
.newsletter h2 { font-family: var(--head); font-weight: 400; font-size: 32px; text-transform: uppercase; line-height: 1.1; }
.newsletter p { color: var(--muted); margin-top: 8px; }
.form { display: flex; gap: 8px; }
.form input {
  flex: 1; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 15px;
}
.form input:focus { outline: 2px solid var(--pink); border-color: transparent; }
.form .btn { margin-top: 0; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- Artículo ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 24px 0 12px; }
.breadcrumbs a { color: var(--muted); }
.article h1 {
  font-family: var(--head); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 12px 0;
}
.article .lead { font-size: 20px; color: #d4cfe4; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin: 24px 0; border: 1px solid var(--line); aspect-ratio: 16/8; }
.article .cover svg { width: 100%; height: 100%; }
.prose { font-size: 17px; line-height: 1.75; color: #dcd8ea; }
.prose h2 { font-size: 26px; line-height: 1.3; color: var(--text); margin: 36px 0 12px; }
.prose h3 { font-size: 20px; color: var(--text); margin: 28px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--teal); text-decoration: underline; }
.prose strong { color: var(--text); }
.callout {
  border-left: 4px solid var(--teal); background: var(--card);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0;
}
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0 0 0 18px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--pink); }
.share { display: flex; gap: 8px; margin: 32px 0; flex-wrap: wrap; }
.share a { border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; font-size: 14px; }
.author {
  display: flex; gap: 14px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px;
}
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.author p { color: var(--muted); font-size: 14px; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; margin: 40px auto 64px; }
.legal h1 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: 44px; margin-bottom: 24px; }
.legal section { scroll-margin-top: 90px; }
.placeholder { background: rgba(255,138,61,.15); color: var(--orange); padding: 0 4px; border-radius: 4px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.disclaimer {
  border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px;
  font-size: 12px; color: #6f6a88; line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .ad-sidebar { display: none; }
  .tracker { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .menu-btn { display: block; }
  .hero { min-height: 420px; }
  .hero-content { padding: 22px; }
  .hero p { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 22px; }
  .form { flex-direction: column; }
  .ad-leaderboard { max-width: 320px; height: 100px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article .lead { font-size: 18px; }
}
