/* ============================================================
   eljugadorsabe.com — shared.css
   Tokens, reset y componentes comunes a todas las páginas.
   Cada template puede agregar estilos específicos inline.
============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --green:         #0D9E6E;
  --green-dark:    #076F4D;
  --green-light:   #E4F5EE;
  --green-mid:     #C0E8D5;
  --celeste:       #3AAEE0;
  --celeste-dark:  #1980B4;
  --celeste-light: #DDF0FB;
  --celeste-mid:   #A8D9F5;
  --gold:          #F0A500;
  --gold-light:    #FEF3DA;
  --purple:        #6A0DAD;
  --purple-light:  #F3EEFE;
  --ink:           #0E1C14;
  --ink-mid:       #3A4D42;
  --ink-soft:      #6B7E74;
  --surface:       #F7FAF8;
  --surface-2:     #EDF3EF;
  --border:        #D4E2DA;
  --border-light:  #EAF1EC;
  --white:         #FFFFFF;
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 4px rgba(13,30,20,.06);
  --shadow-md:     0 4px 16px rgba(13,30,20,.08);
  --shadow-lg:     0 12px 40px rgba(13,30,20,.12);
}

/* ── BASE ── */
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a     { color: inherit; text-decoration: none; }
img   { max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── UTILITIES ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; padding: 3px 10px;
  border-radius: 20px; letter-spacing: .02em;
}
.badge-green   { background: var(--green-light);   color: var(--green-dark); }
.badge-celeste { background: var(--celeste-light);  color: var(--celeste-dark); }
.badge-gold    { background: var(--gold-light);     color: #7A5200; }
.badge-gray    { background: var(--surface-2);      color: var(--ink-mid); }
.badge-purple  { background: var(--purple-light);   color: var(--purple); }
.badge-live    { background: #FFEDED; color: #B91C1C; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: var(--radius-md); border: none;
  transition: all .18s ease; white-space: nowrap; cursor: pointer;
  text-decoration: none;
}
.btn-primary  { background: var(--green); color: var(--white); box-shadow: 0 2px 8px rgba(13,158,110,.25); }
.btn-primary:hover  { background: var(--green-dark); box-shadow: 0 4px 14px rgba(13,158,110,.35); transform: translateY(-1px); }
.btn-celeste  { background: var(--celeste); color: var(--white); box-shadow: 0 2px 8px rgba(58,174,224,.25); }
.btn-celeste:hover  { background: var(--celeste-dark); transform: translateY(-1px); }
.btn-outline  { background: var(--white); color: var(--ink-mid); border: 1.5px solid var(--border); }
.btn-outline:hover  { border-color: var(--celeste); color: var(--celeste-dark); }
.btn-lg  { font-size: 15px; padding: 13px 28px; }
.btn-sm  { font-size: 12px; padding: 7px 14px; }
.btn-full { width: 100%; justify-content: center; }
.btn-white-solid {
  background: white; color: var(--green-dark);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  padding: 10px 0; border-radius: var(--radius-md); border: none;
  width: 100%; cursor: pointer; transition: all .15s;
  text-align: center; display: block; text-decoration: none;
}
.btn-white-solid:hover { background: var(--green-light); }
.btn-white-cta {
  background: white; color: var(--celeste-dark);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  padding: 11px 22px; border-radius: var(--radius-md); border: none;
  white-space: nowrap; cursor: pointer; transition: all .15s;
  text-decoration: none; display: inline-flex;
}
.btn-white-cta:hover { background: var(--celeste-light); }

/* ── TOPBAR ── */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  font-size: 12px; padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 16px; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: flex; align-items: center; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--celeste); }
.logo-mark-left, .logo-mark-l  { background: var(--celeste); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.logo-mark-right, .logo-mark-r { background: var(--green);   width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 14px; height: 14px; fill: white; }
.logo-text { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.dot-com { color: var(--celeste); font-size: 13px; font-weight: 500; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--ink-mid); padding: 6px 12px; border-radius: var(--radius-sm); transition: all .15s; }
.nav-link:hover, .nav-link.active { color: var(--green-dark); background: var(--green-light); }

/* Trust pill */
.nav-trust {
  display: flex; align-items: center; gap: 6px;
  background: var(--green-light); border: 1px solid var(--green-mid);
  border-radius: 20px; padding: 5px 12px;
  font-size: 12px; font-weight: 500; color: var(--green-dark);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(13,158,110,.4); }
  70%  { box-shadow: 0 0 0 6px rgba(13,158,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,158,110,0); }
}

/* ── BREADCRUMB ── */
.breadcrumb { padding: 12px 0; font-size: 12.5px; color: var(--ink-soft); }
.breadcrumb a { color: var(--celeste-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── ARTICLE LAYOUT (money pages + slot reviews) ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px; padding: 36px 0 60px; align-items: start;
}
.article-layout > .article-body { min-width: 0; overflow: hidden; }

/* TOC sidebar */
.toc-sidebar { position: sticky; top: 80px; min-width: 0; overflow: hidden; }
.toc-box { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.toc-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.toc-list { list-style: none; }
.toc-list li { border-bottom: 1px solid var(--border-light); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mid); padding: 8px 0; transition: color .13s; }
.toc-list a:hover { color: var(--celeste-dark); }
.toc-num { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--celeste); min-width: 18px; }

/* CTA box sidebar */
.cta-box { background: linear-gradient(135deg, var(--green-dark), var(--green)); border-radius: var(--radius-lg); padding: 20px; color: white; margin-bottom: 20px; }
.cta-box-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.cta-box-sub { font-size: 12.5px; opacity: .8; margin-bottom: 16px; line-height: 1.5; }

/* Trust box sidebar */
.trust-box { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.trust-box-title { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mid); padding: 6px 0; border-bottom: 1px solid var(--border-light); }
.trust-item:last-child { border-bottom: none; }
.trust-icon { font-size: 16px; flex-shrink: 0; }

/* ── ARTICLE BODY ── */
.article-body { min-width: 0; }
.article-body h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 36px 0 14px; padding-top: 8px; scroll-margin-top: 80px; }
.article-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 24px 0 10px; color: var(--ink-mid); }
.article-body p  { font-size: 15px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 16px; }
.article-body li { font-size: 15px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 6px; }
.article-body strong { color: var(--ink); font-weight: 600; }

/* ── INFO BOXES ── */
.info-box { border-radius: var(--radius-lg); padding: 18px 20px; margin: 24px 0; display: flex; gap: 14px; }
.info-box.green   { background: var(--green-light);   border: 1.5px solid var(--green-mid); }
.info-box.celeste { background: var(--celeste-light);  border: 1.5px solid #A8D9F5; }
.info-box.warn    { background: var(--gold-light);     border: 1.5px solid #F5D888; }
.info-box.purple  { background: var(--purple-light);   border: 1.5px solid #D8B4FE; }
.info-icon  { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.info-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.info-box.green .info-title,   .info-box.green .info-text   { color: var(--green-dark); }
.info-box.celeste .info-title, .info-box.celeste .info-text { color: var(--celeste-dark); }
.info-box.warn .info-title,    .info-box.warn .info-text    { color: #7A5200; }
.info-box.purple .info-title,  .info-box.purple .info-text  { color: var(--purple); }
.info-text { font-size: 14px; line-height: 1.7; }

/* ── MID CTA ── */
.mid-cta {
  background: linear-gradient(135deg, var(--celeste-dark), var(--celeste));
  border-radius: var(--radius-xl); padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  margin: 32px 0; gap: 20px;
}
.mid-cta-text .t { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: white; margin-bottom: 4px; }
.mid-cta-text .s { font-size: 13.5px; color: rgba(255,255,255,.8); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin: 20px 0; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; cursor: pointer;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  background: white; transition: background .13s; gap: 12px;
}
.faq-question:hover { background: var(--surface); }
.faq-icon { font-size: 18px; color: var(--celeste-dark); flex-shrink: 0; font-weight: 300; transition: transform .2s; }
.faq-answer { display: none; padding: 14px 18px 16px; font-size: 14.5px; color: var(--ink-mid); line-height: 1.75; background: white; border-top: 1px solid var(--border-light); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon   { transform: rotate(45deg); }

/* ── AUTHOR BOX ── */
.author-box { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; margin: 32px 0; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--celeste-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--celeste-dark); flex-shrink: 0; }
.author-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.author-role { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.author-bio  { font-size: 13.5px; color: var(--ink-mid); line-height: 1.65; }

/* ── RELATED GRID ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; width: 100%; }
.related-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; transition: all .18s; overflow: hidden; min-width: 0; word-break: break-word; }
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-tag   { font-size: 11px; font-weight: 600; color: var(--celeste-dark); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.related-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.related-link  { font-size: 12.5px; color: var(--celeste-dark); font-weight: 500; }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,.6); font-size: 12.5px; margin-top: 60px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 40px; }
.footer-brand p { margin-top: 14px; line-height: 1.7; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-col-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.footer-link { display: block; color: rgba(255,255,255,.55); padding: 4px 0; transition: color .13s; }
.footer-link:hover { color: rgba(255,255,255,.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom-left { display: flex; gap: 16px; align-items: center; }
.plus18 { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.flag-stripe { width: 16px; height: 11px; border-radius: 2px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-layout        { grid-template-columns: 1fr; }
  .toc-sidebar           { display: none; }
  .related-grid          { grid-template-columns: 1fr; }
  .footer-main           { grid-template-columns: 1fr 1fr; }
  .mid-cta               { flex-direction: column; text-align: center; }
  .nav-links             { display: none; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; }
  .hero-title  { font-size: 26px; }
}
