/* MasterDnD — Guías · Medium-style dark reading experience */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Cinzel:wght@400;600;700&family=Roboto:wght@400;500;600&display=swap');

:root {
  --gold: #F8C662;
  --gold-d: #c89630;
  --dark: #0d0b18;
  --surface: #141220;
  --border: #1e1a2e;
  --border-l: #2a2440;
  --text: #e8e2f8;
  --text-m: #b0aaca;
  --text-d: #9aa0c0;
  --violet: #7c3aed;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--text); font-family: 'Lora', Georgia, serif; font-size: 20px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

/* ── PROGRESS BAR ── */
#g-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--gold); width: 0%; z-index: 1000;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(248,198,98,.5);
}

/* ── NAV ── */
.g-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px; display: flex; align-items: center;
  padding: 0 48px; gap: 32px;
  background: rgba(5,8,26,.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124,58,237,.2);
  font-family: 'Roboto', sans-serif;
}
.g-nav-logo {
  font-family: 'Cinzel', serif; font-size: 14px;
  display: flex; align-items: baseline; gap: 0; text-decoration: none; flex-shrink: 0;
}
.g-nav-logo .llogo-m { font-size: 13px; letter-spacing: .4em; color: rgba(220,230,245,.55); }
.g-nav-logo .llogo-d {
  font-size: 20px; background: linear-gradient(135deg,#f8c662,#e63946);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: .1em; margin-left: 6px;
}
.g-nav-links { display: flex; gap: 2px; margin-left: 12px; }
.g-nav-link {
  padding: 6px 14px; border-radius: 8px; font-size: 13px;
  color: var(--text-m); cursor: pointer; transition: .15s;
  letter-spacing: .5px; text-decoration: none; font-family: 'Roboto', sans-serif;
}
.g-nav-link:hover { color: var(--text); background: rgba(124,58,237,.1); text-decoration: none; }
.g-nav-link.active { color: var(--gold); background: rgba(124,58,237,.1); }
.g-nav-spacer { flex: 1; }
.btn-nav { padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; text-decoration: none; flex-shrink: 0; font-family: 'Roboto', sans-serif; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-m); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e8a820); color: #1a1400; font-weight: 600; }
.btn-gold:hover { filter: brightness(1.08); text-decoration: none; color: #1a1400; }
/* Nav dropdowns (CSS hover) */
.g-nav-dropdown { position: relative; }
.g-nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(10,7,20,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px; padding: 6px; min-width: 200px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; z-index: 300;
  backdrop-filter: blur(12px);
}
.g-nav-dropdown:hover .g-nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.g-nav-dd-trigger { display: inline-flex; align-items: center; }
.g-nav-dd-trigger::after {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-right: 2px solid #9da8cc; border-bottom: 2px solid #9da8cc;
  transform: rotate(45deg); margin-left: 6px;
  flex-shrink: 0; position: relative; top: -2px;
}
.g-nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 8px; font-size: 13px;
  font-weight: 500; color: var(--text-m); cursor: pointer;
  transition: background .15s, color .15s; white-space: nowrap;
  text-decoration: none; font-family: 'Roboto', sans-serif;
}
.g-nav-dd-item:hover { background: rgba(124,58,237,.15); color: var(--text); text-decoration: none; }
.g-nav-dd-icon { font-size: 15px; line-height: 1; }
.g-nav-dd-label { display: flex; flex-direction: column; gap: 1px; }
.g-nav-dd-sub { font-size: 12px; color: var(--text-d); font-weight: 400; }

/* ── ARTICLE HEADER ── */
.g-article-header {
  padding: 104px 24px 48px;
  border-bottom: 1px solid var(--border);
}
.g-article-header-inner { max-width: 680px; margin: 0 auto; }

.g-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
  background: rgba(248,198,98,.08); border: 1px solid rgba(248,198,98,.2);
  border-radius: 20px; padding: 4px 14px; margin-bottom: 24px;
  font-family: 'Roboto', sans-serif;
}
.g-article-header h1 {
  font-family: 'Cinzel', serif; font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 20px;
  letter-spacing: -.02em;
}
.g-article-subtitle {
  font-size: 20px; color: var(--text-m); line-height: 1.65;
  margin-bottom: 32px; font-style: italic;
}
.g-article-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: 'Roboto', sans-serif;
}
.g-author-row { display: flex; align-items: center; gap: 12px; }
.g-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.g-author-name { font-size: 15px; font-weight: 600; color: var(--text); }
.g-author-info { font-size: 14px; color: var(--text-m); margin-top: 1px; }
.g-article-divider { height: 1px; background: var(--border); margin-top: 32px; }

/* ── LIKE BUTTON ── */
.g-like-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 24px;
  border: 1px solid var(--border-l); background: transparent;
  color: var(--text-m); cursor: pointer; font-family: 'Roboto', sans-serif;
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.g-like-btn:hover { border-color: rgba(248,198,98,.4); color: var(--gold); background: rgba(248,198,98,.06); }
.g-like-btn.liked { border-color: rgba(248,198,98,.6); color: var(--gold); background: rgba(248,198,98,.1); }
.g-like-icon { font-size: 18px; line-height: 1; transition: transform .2s; }
.g-like-btn.pulse .g-like-icon { transform: scale(1.4); }
.g-like-count { font-size: 14px; }

/* ── ARTICLE HERO IMAGE ── */
.g-article-hero-img { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.g-article-hero-img img { width: 100%; border-radius: 10px; display: block; object-fit: cover; }

/* ── ARTICLE BODY ── */
.g-article-body { padding: 56px 24px 80px; }
.g-article-content { max-width: 680px; margin: 0 auto; }

/* Breadcrumb */
.g-breadcrumb {
  font-size: 14px; color: var(--text-m); margin-bottom: 48px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: 'Roboto', sans-serif;
}
.g-breadcrumb a { color: var(--text-m); }
.g-breadcrumb a:hover { color: var(--gold); }
.g-breadcrumb-sep { opacity: .4; }

/* TOC */
.g-toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 26px; margin-bottom: 48px;
}
.g-toc-title {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.g-toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.g-toc li a { font-size: 15px; color: var(--text); font-family: 'Roboto', sans-serif; }
.g-toc li a:hover { color: var(--gold); }

/* Content */
.g-article-content h2 {
  font-family: 'Cinzel', serif; font-size: 24px; color: var(--gold);
  margin: 60px 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(248,198,98,.15); line-height: 1.3;
}
.g-article-content h3 {
  font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--text); margin: 36px 0 12px;
}
.g-article-content p { color: var(--text); margin-bottom: 24px; line-height: 1.9; }
.g-article-content p strong { color: var(--text); font-weight: 600; }
.g-article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.g-article-content ul, .g-article-content ol {
  padding-left: 24px; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.g-article-content li { color: var(--text); line-height: 1.8; }
.g-article-content li strong { color: var(--text); }

/* Info box */
.g-box {
  background: var(--surface); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 32px 0;
}
.g-box-title {
  font-weight: 700; color: var(--gold); font-size: 12px;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px;
  font-family: 'Roboto', sans-serif;
}
.g-box p { color: var(--text-m); margin: 0; font-size: 16px; }
.g-box.tip { border-left-color: #10b981; }
.g-box.tip .g-box-title { color: #10b981; }
.g-box.warning { border-left-color: #e63946; }
.g-box.warning .g-box-title { color: #e63946; }

/* Table */
.g-table-wrap { overflow-x: auto; margin: 32px 0; }
.g-table { width: 100%; border-collapse: collapse; font-size: 15px; font-family: 'Roboto', sans-serif; }
.g-table th {
  background: var(--surface); color: var(--gold); font-weight: 600;
  padding: 12px 14px; text-align: left; border-bottom: 2px solid var(--border);
}
.g-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-m); }
.g-table td:first-child { color: var(--text); font-weight: 600; }
.g-table tr:hover td { background: rgba(255,255,255,.02); }

/* Article footer like */
.g-article-footer {
  max-width: 680px; margin: 0 auto;
  padding-top: 48px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: 'Roboto', sans-serif;
}
.g-footer-like-label { font-size: 14px; color: var(--text-d); }

/* ── "CONTINÚA TU AVENTURA" ── */
.g-related {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 64px 24px;
}
.g-related-inner { max-width: 1000px; margin: 0 auto; }
.g-related-heading {
  font-family: 'Cinzel', serif; font-size: 22px; color: var(--gold);
  margin-bottom: 8px;
}
.g-related-sub {
  font-size: 14px; color: var(--text-d); margin-bottom: 36px;
  font-family: 'Roboto', sans-serif;
}
.g-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-related-card {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s, background .2s; display: flex; flex-direction: column;
}
.g-related-card:hover { border-color: rgba(248,198,98,.3); transform: translateY(-4px); background: rgba(248,198,98,.03); text-decoration: none; }
.g-related-card-top { height: 130px; overflow: hidden; }
.g-related-card-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-related-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.g-related-card-tag { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--text-m); text-transform: uppercase; font-family: 'Roboto', sans-serif; }
.g-related-card-title { font-family: 'Cinzel', serif; font-size: 14px; color: var(--text); line-height: 1.45; flex: 1; }
.g-related-card-time { font-size: 12px; color: var(--gold); font-family: 'Roboto', sans-serif; margin-top: 8px; }

/* ── CTA BOX ── */
.g-cta {
  max-width: 680px; margin: 64px auto 0;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(248,198,98,.08));
  border: 1px solid rgba(248,198,98,.25); border-radius: 12px;
  padding: 40px 36px; text-align: center;
}
.g-cta-title { font-family: 'Cinzel', serif; font-size: 22px; color: #fff; margin-bottom: 12px; }
.g-cta-desc { color: var(--text-m); margin-bottom: 28px; font-size: 16px; font-family: 'Roboto', sans-serif; }
.g-cta-btn, .g-article-content .g-cta-btn {
  display: inline-block; padding: 13px 32px; background: var(--gold);
  color: #09070f; font-weight: 700; font-size: 15px; border-radius: 8px;
  transition: .2s; font-family: 'Roboto', sans-serif; text-decoration: none;
}
.g-cta-btn:hover, .g-article-content .g-cta-btn:hover { background: var(--gold-d); text-decoration: none; color: #09070f; }
.g-cta-secondary { display: block; margin-top: 14px; font-size: 13px; color: var(--text-d); font-family: 'Roboto', sans-serif; }
.g-cta-secondary a { color: var(--text-d); }
.g-cta-secondary a:hover { color: var(--gold); }

/* ── FOOTER ── */
.g-footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; font-family: 'Roboto', sans-serif; }
.g-footer-logo { font-family: 'Cinzel', serif; font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 10px; }
.g-footer-logo span { color: var(--gold); }
.g-footer p { font-size: 13px; color: var(--text-d); }
.g-footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 14px; flex-wrap: wrap; }
.g-footer-links a { font-size: 13px; color: var(--text-d); }
.g-footer-links a:hover { color: var(--gold); }

/* ── INDEX PAGE ── */
.g-hero { padding: 120px 20px 64px; text-align: center; border-bottom: 1px solid var(--border); }
.g-hero h1 { font-family: 'Cinzel', serif; font-size: clamp(26px, 4vw, 50px); color: #fff; line-height: 1.15; max-width: 820px; margin: 0 auto 20px; }
.g-hero p { font-size: 18px; color: var(--text-m); max-width: 640px; margin: 0 auto; font-family: 'Roboto', sans-serif; line-height: 1.65; }
.g-index-layout { max-width: 1080px; margin: 0 auto; padding: 64px 24px 96px; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .2s, transform .2s; cursor: pointer; }
.g-card:hover { border-color: rgba(248,198,98,.3); transform: translateY(-3px); }
.g-card-top { height: 190px; overflow: hidden; }
.g-card-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-card-body { padding: 22px 24px 24px; }
.g-card-tag { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-m); margin-bottom: 10px; font-family: 'Roboto', sans-serif; }
.g-card-title { font-family: 'Cinzel', serif; font-size: 16px; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.g-card-desc { font-size: 13px; color: var(--text-d); line-height: 1.65; margin-bottom: 16px; font-family: 'Roboto', sans-serif; }
.g-card-meta { font-size: 12px; color: var(--text-d); display: flex; gap: 14px; font-family: 'Roboto', sans-serif; }

/* Alignment grid (alineamientos article) */
.align-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 28px 0; }
.align-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; }
.align-cell-name { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.align-cell-ex { font-size: 11px; color: var(--text-d); line-height: 1.4; font-family: 'Roboto', sans-serif; }
.align-cell.good { border-top: 3px solid #6ee7b7; }
.align-cell.neutral-y { border-top: 3px solid var(--gold); }
.align-cell.evil { border-top: 3px solid #f87171; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .g-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .g-nav { padding: 0 16px; gap: 12px; }
  .g-nav-links { display: none; }
  .g-article-header { padding: 88px 16px 36px; }
  .g-article-body { padding: 40px 16px 60px; }
  .g-related { padding: 48px 16px; }
  .g-related-grid { grid-template-columns: 1fr; }
  .g-cta { padding: 28px 20px; }
  .align-grid { grid-template-columns: 1fr; }
  .g-hero { padding: 96px 16px 48px; }
  .g-index-layout { padding: 40px 16px 64px; }
  .g-grid { grid-template-columns: 1fr; }
}
