/*
Theme Name: Salón Guía
Theme URI: https://example.com/
Author: Your Name
Description: Tema oscuro burdeos y dorado 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: salon-guia
*/

@media screen and (max-width: 782px) {
	.text-headline-hero{font-size:30px!important;}
	.text-headline-lg{font-size:26px!important;}
	.none{display:none!important;}
	.p-space-xl{padding: 1rem!important;}
	.p-space-lg{padding: 1rem!important;}
}

html, body { margin: 0; padding: 0; }
body { overscroll-behavior: none; background: #0B0B0E; }
main > :first-child { margin-top: 0; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Popup: invitación VIP (panel lateral + contenido) ===== */
.sg-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(8, 4, 6, .84); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.sg-overlay.is-open { display: flex; animation: sgIn .25s ease-out; }
@keyframes sgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sgSlide { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes sgSpin { to { transform: rotate(360deg); } }

.sg-invite {
  position: relative; display: flex; width: 100%; max-width: 46rem; overflow: hidden; border-radius: .25rem;
  background: #141419; border: 1px solid #D4AF37; color: #F7F5F0;
  box-shadow: 0 0 0 5px #0B0B0E, 0 0 0 6px rgba(212,175,55,.45), 0 30px 90px rgba(0,0,0,.85);
  font-family: 'Space Grotesk', sans-serif; animation: sgSlide .32s cubic-bezier(.2,.8,.2,1);
}
.sg-x {
  position: absolute; top: .55rem; right: .7rem; z-index: 2; width: 2rem; height: 2rem; border: 0; background: none;
  color: #A29F99; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: color .15s;
}
.sg-x:hover { color: #F3E5AB; }

.sg-invite-side {
  position: relative; flex: 0 0 13.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 2rem 1rem; text-align: center;
  background: radial-gradient(circle at 50% 0%, #7A1C28 0%, #4A0E17 55%, #2a070d 100%);
  border-right: 1px solid rgba(212,175,55,.5);
}
.sg-invite-side::after {
  content: ''; position: absolute; inset: .6rem; border: 1px solid rgba(243,229,171,.22); pointer-events: none;
}
.sg-seal {
  position: relative; width: 4.4rem; height: 4.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #F3E5AB; background: radial-gradient(circle at 35% 30%, #D4AF37, #8d6d12 80%); box-shadow: 0 0 0 3px rgba(243,229,171,.25), 0 8px 22px rgba(0,0,0,.5);
}
.sg-seal::before {
  content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(243,229,171,.55); animation: sgSpin 24s linear infinite;
}
.sg-seal .material-symbols-outlined { font-size: 2.1rem; color: #3d2a00; font-variation-settings: 'FILL' 1, 'wght' 500; }
.sg-side-label { margin-top: .7rem; font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #F3E5AB; opacity: .85; }
.sg-side-name { font-family: 'Playfair Display', serif; font-size: 2.05rem; line-height: 1.05; font-weight: 700; color: #fff; }
.sg-side-rule { width: 2.4rem; height: 1px; background: #D4AF37; }
.sg-side-badge { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #D4AF37; border: 1px solid rgba(212,175,55,.6); padding: .2rem .55rem; }

.sg-invite-body { flex: 1; padding: 2.25rem 2rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.sg-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #D4AF37; }
.sg-invite-body h3 { margin: 0; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.85rem; line-height: 1.15; color: #F7F5F0; letter-spacing: -.01em; }
.sg-invite-body p { margin: 0; color: #A29F99; font-size: .98rem; line-height: 1.6; }
.sg-invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: .6rem; }
.sg-cta {
  display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.4rem; border-radius: .125rem; text-decoration: none;
  background: linear-gradient(90deg, #D4AF37, #ffe088 50%, #D4AF37); color: #241a00;
  font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 0 22px rgba(212,175,55,.4); transition: filter .15s, transform .15s;
}
.sg-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sg-skip { background: none; border: 0; padding: 0; cursor: pointer; color: #F3E5AB; font-family: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.sg-skip:hover { color: #fff; }
.sg-invite-body small { margin-top: .4rem; color: #6C6A66; font-size: .7rem; line-height: 1.4; }

@media (max-width: 40rem) {
  .sg-invite { flex-direction: column; max-width: 24rem; }
  .sg-invite-side { flex: none; flex-direction: row; flex-wrap: wrap; padding: 1.1rem 1rem; gap: .5rem .9rem; border-right: 0; border-bottom: 1px solid rgba(212,175,55,.5); }
  .sg-seal { width: 2.8rem; height: 2.8rem; } .sg-seal .material-symbols-outlined { font-size: 1.4rem; } .sg-seal::before { inset: -5px; }
  .sg-side-label { margin: 0; } .sg-side-name { font-size: 1.5rem; } .sg-side-rule { display: none; }
  .sg-invite-body { padding: 1.4rem 1.25rem 1.25rem; } .sg-invite-body h3 { font-size: 1.45rem; }
}

/* ===== Contenido de artículos (single) ===== */
.sg-content { color: #A29F99; font-size: 1.02rem; line-height: 1.8; }
.sg-content > * + * { margin-top: 1.25rem; }
.sg-content > p:first-of-type { font-size: 1.18rem; color: #F7F5F0; }
.sg-content h2, .sg-content h3, .sg-content h4 { font-family: 'Playfair Display', serif; color: #F7F5F0; font-weight: 700; line-height: 1.18; margin-top: 2.6rem; letter-spacing: -.01em; }
.sg-content h2 { font-size: 2.1rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(212,175,55,.35); }
.sg-content h3 { font-size: 1.55rem; color: #F3E5AB; }
.sg-content h4 { font-size: 1.2rem; font-style: italic; color: #D4AF37; }
.sg-content a { color: #D4AF37; text-decoration: underline; text-underline-offset: 3px; }
.sg-content a:hover { color: #F3E5AB; }
.sg-content strong { color: #F7F5F0; }
.sg-content ul, .sg-content ol { padding-left: 0; list-style: none; counter-reset: sgol; }
.sg-content li { position: relative; padding-left: 1.9rem; margin-top: .65rem; }
.sg-content ul li::before { content: '◆'; position: absolute; left: 0; top: .1em; font-size: .75rem; color: #D4AF37; }
.sg-content ol li { counter-increment: sgol; }
.sg-content ol li::before { content: counter(sgol, decimal-leading-zero); position: absolute; left: 0; top: .12em; font-family: 'Playfair Display', serif; font-weight: 700; color: #D4AF37; }
.sg-content blockquote { padding: 1.4rem 1.7rem; background: #141419; border-left: 3px solid #D4AF37; color: #F3E5AB; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem; border-radius: 0 .25rem .25rem 0; }
.sg-content img { max-width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 20px 50px rgba(0,0,0,.8); }
.sg-content figure { margin-left: 0; margin-right: 0; }
.sg-content figcaption { font-size: .8rem; color: #6C6A66; text-align: center; margin-top: .6rem; }
.sg-content table { width: 100%; border-collapse: separate; border-spacing: 0; background: #141419; border: 1px solid rgba(212,175,55,.28); border-radius: .5rem; overflow: hidden; font-size: .92rem; }
.sg-content th { background: #1C1C24; color: #D4AF37; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; text-align: left; padding: 1rem; }
.sg-content td { padding: 1rem; color: #cfcbc4; border-top: 1px solid rgba(255,255,255,.06); }
.sg-content tr:hover td { background: #1C1C24; }
.sg-content code { background: #1C1C24; padding: .1rem .4rem; border-radius: .2rem; font-size: .9em; color: #F3E5AB; }
.sg-content pre { background: #0E0E11; border-radius: .5rem; padding: 1rem; overflow-x: auto; }
.sg-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.6), 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: #141419;
  border: 1px solid rgba(212,175,55,.25); border-radius: .2rem; color: #A29F99; font-weight: 700; text-decoration: none; transition: all .15s;
}
.sg-pagination a:hover { border-color: #D4AF37; color: #F3E5AB; }
.sg-pagination span.current { background: linear-gradient(90deg, #7A1C28, #4A0E17); border-color: #D4AF37; color: #F3E5AB; box-shadow: 0 0 16px rgba(212,175,55,.35); }
