/* ============================================================
   Predicción Fútbol — theme
   ============================================================ */
:root {
  --bg: #0b1220;
  --bg-2: #0d1727;
  --surface: #121d31;
  --surface-2: #182742;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #eaf0f8;
  --muted: #a4b3c9;
  --muted-2: #75849c;
  --green: #00e59b;
  --green-strong: #00c886;
  --teal: #00c8ff;
  --gold: #ffc23d;
  --danger: #ff5d6c;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 88% -10%, rgba(0, 229, 155, 0.10), transparent 60%),
    radial-gradient(900px 520px at -8% 8%, rgba(0, 200, 255, 0.08), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.22;
  margin: 0 0 0.5em;
  color: #fff;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4rem; }
main { min-height: 60vh; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(0, 229, 155, 0.28); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.02em; }
.brand-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 6px 18px -6px rgba(0, 229, 155, 0.6);
}
.brand-name em { font-style: normal; color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 15px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: 0.95rem; transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: #07120c; background: var(--green); font-weight: 600; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 50% -10%, rgba(0, 229, 155, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(0, 229, 155, 0.10); border: 1px solid rgba(0, 229, 155, 0.30);
  color: var(--green); font-size: 0.85rem; font-weight: 600;
}
.hero-title { font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 800; margin: 22px auto 16px; max-width: 820px; }
.hero-title .accent { background: linear-gradient(90deg, var(--green), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 54px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--font-head); font-size: 1.9rem; color: #fff; }
.stat span { color: var(--muted-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--green), var(--teal)); color: #07120c; box-shadow: 0 12px 30px -10px rgba(0, 229, 155, 0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(0, 229, 155, 0.65); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--green); color: #fff; }

/* ---------- Sections ---------- */
.section-block { padding: 56px 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.kicker { display: inline-block; color: var(--green); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.section-title { font-size: 1.7rem; margin: 0; }
.see-all { color: var(--green); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.empty { color: var(--muted-2); text-align: center; padding: 40px 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(0, 229, 155, 0.12); border: 1px solid rgba(0, 229, 155, 0.28);
  color: var(--green); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
  transition: background .2s;
}
.badge:hover { background: rgba(0, 229, 155, 0.2); }
.badge-lg { font-size: 0.85rem; padding: 6px 15px; }

/* ---------- Post cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(0, 229, 155, 0.4); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-media-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; background: linear-gradient(135deg, rgba(0,229,155,.18), rgba(0,200,255,.14)); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.post-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-dot { color: var(--muted-2); }
.date { color: var(--muted-2); font-size: 0.82rem; }
.post-card-title { font-size: 1.12rem; margin: 0; }
.post-card-title a:hover { color: var(--green); }
.post-card-desc { color: var(--muted); font-size: 0.92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.reading { color: var(--muted-2); font-size: 0.82rem; }
.read-more { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.read-more:hover { text-decoration: underline; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 155, 0.4); }
.cat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #07120c; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
}
.cat-name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.02rem; }
.cat-count { color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Page head ---------- */
.page-head { padding: 56px 0 8px; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 6px; }
.page-desc { color: var(--muted); max-width: 680px; margin: 8px 0 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 26px 0 6px; color: var(--muted-2); font-size: 0.85rem; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span { color: var(--muted-2); }

/* ---------- Single post ---------- */
.post-head { padding: 26px 0 30px; }
.post-head-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.post-head-meta .date, .post-head-meta .reading { font-size: 0.9rem; }
.post-title { font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 0 0 14px; }
.post-subtitle { color: var(--muted); font-size: 1.12rem; max-width: 780px; margin: 0; }
.post-featured { margin: 8px 0 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.post-featured img { width: 100%; height: auto; }

.post-layout { display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding-top: 40px; padding-bottom: 64px; align-items: start; }

/* ---------- Table of contents ---------- */
.toc { position: sticky; top: 92px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; }
.toc-title { font-size: 1rem; margin: 0 0 12px; }
.toc nav ul { list-style: none; padding: 0; margin: 0; }
.toc nav li { margin: 6px 0; }
.toc nav a { color: var(--muted); transition: color .15s; }
.toc nav a:hover { color: var(--green); }
.toc nav ul ul { padding-left: 14px; margin-top: 6px; border-left: 1px solid var(--border); }

/* ---------- Post content ---------- */
.post-content { max-width: 760px; font-size: 1.03rem; }
.post-content h2 { font-size: 1.55rem; margin-top: 2em; }
.post-content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.post-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--teal); }
.post-content blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; color: var(--muted); }
.post-content code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.post-content pre { background: var(--surface-2); padding: 18px; border-radius: var(--radius-sm); overflow: auto; }
.post-content pre code { background: none; padding: 0; }
.post-content img { border-radius: var(--radius-sm); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.92rem; }
.post-content th, .post-content td { border: 1px solid var(--border-strong); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--surface-2); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; font-family: var(--font-head); font-weight: 600; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--green); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-q { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(0, 229, 155, 0.14); color: var(--green); font-size: 0.8rem; font-weight: 800; }
.faq-answer { padding: 0 20px 18px 58px; color: var(--muted); }

/* ---------- Related ---------- */
.related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.related .posts-grid { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 24px 40px; }
.footer-col h4 { font-size: 0.95rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: var(--muted); font-size: 0.92rem; }
.footer-col ul a:hover { color: var(--green); }
.footer-col .count { color: var(--muted-2); font-size: 0.8rem; margin-left: 4px; }
.footer-about p { color: var(--muted); font-size: 0.92rem; max-width: 380px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .disclaimer { color: var(--muted-2); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound-code { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 18vw, 11rem); line-height: 1; background: linear-gradient(90deg, var(--green), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 12px 0 10px; }
.notfound-desc { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px; border: 1px solid var(--border-strong);
    border-radius: 10px; background: var(--surface); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 16px 24px 20px; background: var(--bg-2); border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .posts-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .section-block { padding: 40px 24px; }
  .hero { padding: 64px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .faq-answer { padding-left: 20px; }
}
@media (max-width: 460px) {
  .cat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}



