/* Reset local para evitar sobreposición */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0f0f11;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* Header & Navbar */
.cs-header {
    background-color: #16161a;
    border-bottom: 1px solid #22222b;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cs-nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.cs-nav a {
    color: #a0a0b0;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.cs-nav a:hover {
    color: #ffffff;
}

/* Layout principal */
.cs-main {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px;
}

.cs-back-link {
    display: inline-block;
    color: #1793e2;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
}

.cs-category {
    color: #1793e2;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.cs-title-block h1 {
    font-size: 2.1rem;
    color: #ffffff;
    margin: 10px 0 15px 0;
    line-height: 1.25;
}

.cs-subtitle {
    font-size: 1.1rem;
    color: #9090a0;
    margin-bottom: 30px;
}

/* Card Metadata */
.cs-meta-card {
    background: #16161a;
    border: 1px solid #262633;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.cs-meta-info {
    font-size: 0.95rem;
    color: #cccccc;
}

.cs-meta-btns {
    display: flex;
    gap: 10px;
}

.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s, background 0.15s;
}

.cs-btn:hover {
    transform: translateY(-2px);
}

.cs-btn-github {
    background: #24242e;
    color: #ffffff;
    border: 1px solid #3b3b4d;
}

.cs-btn-pdf {
    background: #1793e2;
    color: #ffffff;
}

/* Key Insights */
.cs-insights-box {
    background: rgba(23, 147, 226, 0.08);
    border-left: 4px solid #1793e2;
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 40px;
}

.cs-insights-box h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.cs-insights-box ul {
    margin: 0;
    padding-left: 20px;
}

.cs-insights-box li {
    margin-bottom: 10px;
}

/* Secciones de texto */
.cs-section {
    margin-bottom: 40px;
}

.cs-section h2 {
    color: #ffffff;
    font-size: 1.4rem;
    border-bottom: 1px solid #22222b;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.cs-figure {
    margin: 30px 0;
    text-align: center;
}

.cs-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #262633;
}

.cs-figure figcaption {
    font-size: 0.85rem;
    color: #808090;
    margin-top: 8px;
}

/* CTA Footer */
.cs-cta-box {
    background: #16161a;
    border: 1px solid #262633;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}

.cs-cta-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cs-footer {
    text-align: center;
    padding: 30px 20px;
    color: #606070;
    font-size: 0.85rem;
    border-top: 1px solid #1c1c24;
}
