/* Container */
.gs-guide-wrapper {
    --gs-text: #334155;
    --gs-dark: #0f172a;
    --gs-blue: #2563eb;
    --gs-border: #e2e8f0;
    
    font-family: 'Inter', sans-serif;
    color: var(--gs-text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
}
.gs-guide-wrapper * { box-sizing: border-box; }

/* HEADER */
.gs-back-container { display: block; width: 100%; margin-bottom: 2rem; }
.gs-back-link { display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 600; color: #64748b; text-decoration: none; transition: color 0.2s; }
.gs-back-link:hover { color: var(--gs-blue); }
.gs-cat-badge { display: inline-block; font-weight: 700; font-size: 0.75rem; padding: 6px 12px; border-radius: 6px; letter-spacing: 1px; margin-bottom: 1.2rem; text-transform: uppercase; }
.gs-main-title { font-size: 2.8rem; font-weight: 800; color: var(--gs-dark); line-height: 1.15; margin: 0 0 1.5rem 0; letter-spacing: -1px; }

/* META */
.gs-meta-row { display: flex; align-items: center; gap: 3rem; font-size: 0.9rem; color: #64748b; font-weight: 500; border-bottom: 1px solid var(--gs-border); padding-bottom: 2rem; margin-bottom: 2rem; }
.gs-meta-group { display: flex; align-items: center; gap: 0.6rem; }
.gs-author-img { width: 32px; height: 32px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--gs-border); }
.gs-meta-icon-svg { width: 16px; height: 16px; color: #94a3b8; }

/* IMAGE */
.gs-featured-img-container { margin-bottom: 3rem; border-radius: 16px; overflow: hidden; background: #f1f5f9; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.gs-feat-img-element { width: 100%; height: 400px; object-fit: cover; display: block; }
.gs-featured-placeholder { width: 100%; height: 400px; background: #f8fafc; display: flex; align-items: center; justify-content: center; color: #cbd5e1; cursor: pointer; border: 2px dashed #e2e8f0; }

/* LAYOUT */
.gs-guide-layout { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }

/* SIDEBAR STICKY */
.gs-guide-sidebar { order: 2; height: 100%; }
.gs-sticky-content { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.5rem; }

.gs-toc-widget, .gs-related-widget { border: 1px solid var(--gs-border); border-radius: 12px; padding: 1.5rem; background: white; }
.gs-toc-widget h4, .gs-related-widget h4 { font-size: 0.7rem; color: #94a3b8; letter-spacing: 1.2px; margin: 0 0 1rem 0; font-weight: 800; text-transform: uppercase; }
.gs-toc-list-target { list-style: none; padding: 0; margin: 0; position: relative; }
.gs-toc-list-target::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #f1f5f9; border-radius: 2px; }
.gs-toc-link { display: block; text-decoration: none; color: #64748b; font-size: 0.85rem; padding: 6px 0 6px 16px; position: relative; transition: all 0.2s; line-height: 1.4; }
.gs-toc-link.active { color: var(--gs-blue); font-weight: 700; }
.gs-toc-link.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--gs-blue); border-radius: 2px; z-index: 2; }
.gs-toc-link:hover { color: var(--gs-dark); }

.gs-mobile-toc { display: none; margin-bottom: 2rem; }
.gs-desktop-toc { display: block; }

/* RELATED GUIDES */
.gs-related-card { display: block; text-decoration: none; padding: 1rem; border-radius: 8px; margin-bottom: 0.8rem; border: 1px solid var(--gs-border); background: white; transition: all 0.2s; }
.gs-related-card:hover { border-color: var(--gs-blue); box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.1); transform: translateY(-2px); }
.gs-rel-cat { font-size: 0.65rem; font-weight: 800; color: #64748b; text-transform: uppercase; display: block; margin-bottom: 4px; letter-spacing: 0.5px; }
.gs-rel-title { font-size: 0.9rem; font-weight: 700; color: var(--gs-dark); line-height: 1.3; }

/* CONTENT */
.gs-guide-content { order: 1; font-size: 1.05rem; line-height: 1.7; color: #334155; }
.gs-guide-content > *:first-child { margin-top: 0; }
.gs-guide-content h2 { font-size: 1.8rem; font-weight: 800; color: var(--gs-dark); margin-top: 3rem; margin-bottom: 1rem; scroll-margin-top: 140px; }
.gs-guide-content p { margin-bottom: 1.5rem; }

/* SEPARATOR / DIVIDER (NUEVO) */
.gs-guide-content hr { border: 0; height: 1px; background: #e2e8f0; margin: 3rem 0; }

/* BLOCKS */
.gs-alert-box { padding: 1.5rem; border-radius: 12px; display: flex; gap: 1rem; margin: 2rem 0; align-items: flex-start; }
.gs-alert-icon { font-size: 1.4rem; line-height: 1; margin-top: 2px; }
.gs-alert-title { margin: 0 0 0.4rem 0; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.gs-alert-content p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

.gs-premium-cta { padding: 2.5rem; border-radius: 16px; margin: 3rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; position: relative; overflow: hidden; }
.gs-premium-cta::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%); pointer-events: none; }
.gs-cta-content { position: relative; z-index: 2; }
.gs-cta-badge { font-size: 0.7rem; font-weight: 800; padding: 5px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 0.8rem; border: 1px solid; }
.gs-cta-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.5rem 0; line-height: 1.1; }
.gs-cta-desc { font-size: 1rem; margin: 0; max-width: 450px; }
.gs-cta-action { position: relative; z-index: 2; }
.gs-cta-btn { padding: 0.9rem 1.8rem; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all 0.2s; display: inline-block; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gs-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.gs-faq-item { border: 1px solid var(--gs-border); border-radius: 8px; margin-bottom: 1rem; overflow: hidden; background: white; }
.gs-faq-question { padding: 1.2rem 1.5rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--gs-dark); user-select: none; background-color: #f8fafc; transition: background 0.2s; }
.gs-faq-question:hover { background: #f1f5f9; }
.gs-faq-answer-edit { display: block; padding: 1.5rem; border-top: 1px solid var(--gs-border); }
.gs-faq-answer { display: none; padding: 1.5rem; color: #475569; font-size: 0.95rem; line-height: 1.6; background: white; border-top: 1px solid var(--gs-border); }
.gs-faq-item.open .gs-faq-answer { display: block; animation: fadeIn 0.3s ease; }
.gs-faq-item.open .gs-faq-icon { transform: rotate(180deg); }
.gs-faq-icon { transition: transform 0.3s; font-size: 1.2rem; color: #94a3b8; }

.gs-disclaimer-box { display: flex; align-items: flex-start; gap: 12px; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem 1.2rem; margin: 2rem 0; color: #64748b; font-size: 0.85rem; line-height: 1.5; }
.gs-disclaimer-text { flex: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 900px) {
    .gs-guide-layout { grid-template-columns: 1fr; }
    .gs-guide-sidebar { order: 2; margin-top: 2rem; }
    .gs-desktop-toc { display: none; }
    .gs-mobile-toc { display: block; }
    .gs-sticky-content { position: static; }
    .gs-premium-cta { flex-direction: column; text-align: center; padding: 2rem; }
    .gs-main-title { font-size: 2rem; }
    .gs-meta-row { flex-wrap: wrap; gap: 1rem; }
}