/*
Theme Name: Cyber Guía
Theme URI: https://example.com/
Author: Your Name
Description: Tema oscuro cyber-luxe para guías y blog de casino online. Tailwind (CDN), blog, artículo y popup configurable de partner.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: cyber-guia
*/

html, body { margin: 0; padding: 0; }
body { overscroll-behavior: none; background: #070B19; }
main > :first-child { margin-top: 0 !important; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.border-glass { border: 1px solid rgba(0, 240, 255, 0.22); }
.border-gold { border: 1px solid rgba(255, 215, 0, 0.35); }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Popup ===== */
.sg-popup-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background: radial-gradient(ellipse at center, rgba(0,240,255,.12), rgba(7,11,25,.88) 60%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sg-popup-overlay.is-open { display: flex; animation: sgFade .2s ease-out; }
@keyframes sgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sgRise { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sgPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,215,0,.45); } 50% { box-shadow: 0 0 0 14px rgba(255,215,0,0); } }
@keyframes sgSheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

.sg-popup {
  position: relative; width: 100%; max-width: 31rem; overflow: hidden;
  border-radius: 1.25rem; padding: 2.25rem 1.75rem 1.5rem; text-align: center;
  background: linear-gradient(180deg, #131c3d 0%, #0D152D 55%, #0a1126 100%);
  border: 1px solid rgba(0,240,255,.35);
  box-shadow: 0 0 0 1px rgba(59,130,246,.18), 0 0 48px rgba(0,240,255,.22), 0 30px 80px rgba(0,0,0,.7);
  color: #F8FAFC; font-family: 'Plus Jakarta Sans', sans-serif;
  animation: sgRise .28s cubic-bezier(.2,.8,.2,1);
}
.sg-popup::before {
  content: ''; position: absolute; top: -90px; left: 50%; transform: translateX(-50%);
  width: 360px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,240,255,.35), transparent); pointer-events: none;
}
.sg-popup-close {
  position: absolute; top: .7rem; right: .7rem; width: 2.25rem; height: 2.25rem; border-radius: .6rem;
  background: rgba(255,255,255,.06); border: 0; color: #94A3B8; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.sg-popup-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.sg-popup-icon {
  position: relative; width: 4.25rem; height: 4.25rem; margin: 0 auto 1rem; border-radius: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,215,0,.22), rgba(245,158,11,.08));
  border: 1px solid rgba(255,215,0,.45); color: #FFD700; animation: sgPulse 2.2s infinite;
}
.sg-popup-icon .material-symbols-outlined { font-size: 2.2rem; font-variation-settings: 'FILL' 1, 'wght' 500; }
.sg-popup-tag {
  display: inline-block; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .75rem;
  background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.3); color: #00F0FF;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.sg-popup h3 {
  position: relative; margin: 0 0 .6rem; font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 1.6rem; line-height: 1.2; color: #fff; letter-spacing: -.01em;
}
.sg-popup .sg-lead { position: relative; margin: 0 0 1.1rem; color: #b9cacb; font-size: .98rem; line-height: 1.55; }
.sg-partner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem; border-radius: .9rem; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,215,0,.35);
  box-shadow: inset 0 0 24px rgba(255,215,0,.05);
}
.sg-partner small { display: block; color: #94A3B8; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.sg-partner strong { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: #FFD700; letter-spacing: .02em; }
.sg-partner-badge {
  padding: .3rem .6rem; border-radius: .5rem; background: rgba(255,215,0,.14); color: #FFD700;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.sg-popup-actions { position: relative; display: flex; flex-direction: column; gap: .6rem; margin-top: 1.1rem; }
.sg-btn-gold, .sg-btn-ghost {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1rem; border-radius: .8rem; text-decoration: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
  border: 0; transition: transform .15s, filter .15s, background .15s;
}
.sg-btn-gold { background: linear-gradient(90deg, #FFDB3C, #FFD700 50%, #F59E0B); color: #3a3000; box-shadow: 0 0 26px rgba(255,215,0,.4); }
.sg-btn-gold:hover { transform: scale(1.02); filter: brightness(1.06); }
.sg-btn-gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40px; background: rgba(255,255,255,.45);
  animation: sgSheen 2.6s infinite;
}
.sg-btn-ghost { background: rgba(255,255,255,.06); color: #dfe1f6; }
.sg-btn-ghost:hover { background: rgba(255,255,255,.12); }
.sg-popup .sg-note { position: relative; margin: 1rem 0 0; color: #6b7a90; font-size: .72rem; line-height: 1.4; }

/* ===== Contenido de artículos (single) ===== */
.sg-content { color: #b9cacb; font-size: 1rem; line-height: 1.75; }
.sg-content > * + * { margin-top: 1.25rem; }
.sg-content > p:first-of-type { font-size: 1.15rem; color: #F8FAFC; }
.sg-content h2, .sg-content h3, .sg-content h4 { font-family: 'Outfit', sans-serif; color: #F8FAFC; font-weight: 700; line-height: 1.2; margin-top: 2.5rem; letter-spacing: -.01em; }
.sg-content h2 { font-size: 2rem; padding-left: 1rem; border-left: 6px solid #00F0FF; border-radius: 3px; box-shadow: -6px 0 14px -6px rgba(0,240,255,.6); }
.sg-content h3 { font-size: 1.5rem; padding-left: 1rem; border-left: 6px solid #FFD700; border-radius: 3px; box-shadow: -6px 0 14px -6px rgba(255,215,0,.5); }
.sg-content h4 { font-size: 1.15rem; color: #00F0FF; }
.sg-content a { color: #00F0FF; text-decoration: underline; text-underline-offset: 3px; }
.sg-content a:hover { color: #FFD700; }
.sg-content strong { color: #F8FAFC; }
.sg-content ul, .sg-content ol { padding-left: 0; list-style: none; counter-reset: sgol; }
.sg-content li { position: relative; padding-left: 1.6rem; margin-top: .6rem; }
.sg-content ul li::before { content: ''; position: absolute; left: .15rem; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 10px rgba(59,130,246,.9); }
.sg-content ol li { counter-increment: sgol; }
.sg-content ol li::before { content: counter(sgol); position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem; border-radius: .4rem; background: #00F0FF; color: #002022; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.sg-content blockquote { padding: 1.25rem 1.5rem; border-radius: 1rem; background: rgba(13,21,45,.7); border: 1px solid rgba(255,215,0,.35); color: #F8FAFC; font-style: italic; box-shadow: 0 12px 32px rgba(7,11,25,.7); }
.sg-content img { max-width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 24px 48px rgba(7,11,25,.9); }
.sg-content figure { margin-left: 0; margin-right: 0; }
.sg-content figcaption { font-size: .8rem; color: #94A3B8; text-align: center; margin-top: .6rem; }
.sg-content .wp-block-table, .sg-content table { width: 100%; }
.sg-content table { border-collapse: separate; border-spacing: 0; border-radius: 1rem; overflow: hidden; background: rgba(13,21,45,.7); box-shadow: 0 16px 40px rgba(7,11,25,.8); font-size: .92rem; }
.sg-content th { background: rgba(37,41,57,.8); color: #00F0FF; text-transform: uppercase; letter-spacing: .06em; font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 700; text-align: left; padding: 1rem; }
.sg-content td { padding: 1rem; color: #dfe1f6; border-top: 1px solid rgba(59,73,75,.35); }
.sg-content tr:hover td { background: rgba(27,31,46,.8); }
.sg-content code { background: #1b1f2e; padding: .1rem .4rem; border-radius: .3rem; font-size: .9em; color: #FFD700; }
.sg-content pre { background: #090e1c; border-radius: .9rem; padding: 1rem; overflow-x: auto; }
.sg-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,240,255,.4), transparent); margin: 2.5rem 0; }

/* ===== Paginación ===== */
.sg-pagination ul { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.sg-pagination a, .sg-pagination span.page-numbers {
  display: inline-flex; min-width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; padding: 0 .8rem;
  background: #171b2a; border-radius: .6rem; color: #b9cacb; font-family: 'Outfit', sans-serif; font-weight: 700; text-decoration: none; transition: all .15s;
}
.sg-pagination a:hover { background: #252939; color: #00F0FF; box-shadow: 0 0 16px rgba(0,240,255,.25); }
.sg-pagination span.current { background: linear-gradient(90deg, #00F0FF, #3B82F6); color: #002022; box-shadow: 0 0 20px rgba(0,240,255,.45); }
