:root {
    --primary: #8B0000;
    --primary-dark: #5a0000;
    --ink: #1a1a1a;
    --ink-soft: #2a2a2a;
    --muted: #6b6b6b;
    --line: #d8d2c5;
    --bg: #f5f1ea;
    --paper: #faf8f3;
    --serif: 'Lora', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink-soft);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 17px;
}

a { color: var(--primary); }

/* ── Top breadcrumb bar ───────────────────────────── */
.topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(245,241,234,0.93);
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: gap 0.2s, color 0.2s;
}
.back-link:hover { gap: 0.85rem; color: var(--primary-dark); }
.breadcrumb {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Layout ───────────────────────────────────────── */
.layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 4rem;
}

/* ── Article ──────────────────────────────────────── */
.article {
    animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.article-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.article-divider {
    height: 1px;
    background: var(--ink);
    margin: 1.75rem 0 1.5rem;
    width: 100%;
    transform-origin: left;
    animation: lineGrow 0.9s 0.3s cubic-bezier(.22,1,.36,1) both;
}
@keyframes lineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.article-subtitle {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 2.5rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.article-author-icon {
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1rem;
}
.article-author-info { font-size: 0.92rem; line-height: 1.4; }
.article-author-name { color: var(--ink); font-weight: 600; }
.article-author-date { color: var(--muted); font-size: 0.85rem; }

.article-figure {
    margin: 2rem 0 2.5rem;
    overflow: hidden;
    position: relative;
}
.article-figure img {
    width: 100%;
    display: block;
    transition: transform 8s ease;
}
.article-figure:hover img { transform: scale(1.04); }
.article-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-style: italic;
}

/* Body text */
.article h2 {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    color: var(--ink);
    margin: 2.75rem 0 1rem;
    line-height: 1.25;
}
.article h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2rem 0 0.75rem;
}
.article h4 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.5rem 0 0.5rem;
}
.article p {
    margin-bottom: 1.3rem;
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.75;
}
.article p strong, .article li strong { color: var(--ink); font-weight: 600; }

.article p.lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.article ul, .article ol {
    margin: 0.5rem 0 1.75rem 0;
    padding: 0;
    list-style: none;
}
.article ul li, .article ol li {
    position: relative;
    padding: 0.7rem 0 0.7rem 2rem;
    border-bottom: 1px solid rgba(216,210,197,0.5);
    font-size: 1.02rem;
    line-height: 1.6;
}
.article ul li:last-child, .article ol li:last-child { border-bottom: none; }
.article ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 14px;
    height: 1px;
    background: var(--primary);
}
.article ol { counter-reset: it; }
.article ol li::before {
    counter-increment: it;
    content: counter(it, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.article blockquote {
    margin: 2.25rem 0;
    padding: 0 0 0 1.5rem;
    border-left: 3px solid var(--primary);
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ink);
    font-style: italic;
    font-weight: 500;
}

/* Info boxes (legal/danger) */
.info-box {
    margin: 1.75rem 0;
    padding: 1.4rem 1.5rem;
    background: var(--paper);
    border-left: 3px solid var(--primary);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.info-box.legal { border-color: #2c3e50; }
.info-box.danger { border-color: #c0392b; }
.info-box i {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}
.info-box.legal i { color: #2c3e50; }
.info-box.danger i { color: #c0392b; }
.info-box-content h4 {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
}
.info-box-content p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    margin: 2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat-card {
    padding: 1.25rem 1rem;
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat-card:last-child { border-right: none; }
.stat-card .stat-num {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-card .stat-label {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* Source box */
.source-box {
    margin: 2.5rem 0 0;
    padding: 1.1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}
.source-box i { color: var(--primary); margin-right: 0.4rem; }
.source-box strong { color: var(--ink); }
.source-box a { color: var(--primary); word-break: break-all; }

/* End-of-article CTA */
.article-end-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--ink);
    color: white;
    text-align: center;
}
.article-end-cta h3 {
    font-family: var(--serif);
    color: white;
    font-size: 1.45rem;
    margin: 0 0 0.6rem;
}
.article-end-cta p { color: rgba(255,255,255,0.78); margin-bottom: 1.4rem; font-size: 0.96rem; }
.article-end-cta .btn-row { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.article-end-cta a {
    padding: 0.8rem 1.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
}
.article-end-cta a.primary { background: var(--primary); color: white; }
.article-end-cta a.primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.article-end-cta a.secondary { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.article-end-cta a.secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── Sidebar ──────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; align-self: start; position: sticky; top: 90px; }

.sb-card {
    padding: 1.6rem 1.5rem;
    animation: fadeUp 0.7s 0.2s cubic-bezier(.22,1,.36,1) both;
}
.sb-card.dark {
    background: var(--ink);
    color: white;
}
.sb-card.white {
    background: white;
    border: 1px solid var(--line);
}
.sb-card.rose {
    background: #f9ecec;
    border: 1px solid #f0d4d4;
}

.sb-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}
.sb-card.dark .sb-title { color: white; }
.sb-card.white .sb-title { color: var(--ink); }
.sb-card.rose .sb-title { color: var(--ink); }

.sb-text {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}
.sb-card.dark .sb-text { color: rgba(255,255,255,0.78); }
.sb-card.white .sb-text { color: var(--muted); }
.sb-card.rose .sb-text { color: var(--ink-soft); }

.sb-form { display: flex; flex-direction: column; gap: 0.7rem; }
.sb-form input, .sb-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.85rem 0.95rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: border-color 0.2s;
}
.sb-form input:focus, .sb-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.04);
}
.sb-form input::placeholder, .sb-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.sb-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.95rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 0.3rem;
}
.sb-form button:hover { background: var(--primary-dark); transform: translateY(-2px); }

.sb-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.sb-related-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    display: block;
    transition: color 0.2s, transform 0.2s;
}
.sb-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.sb-related-item:hover { color: var(--primary); transform: translateX(3px); }
.sb-related-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.sb-related-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.sb-rose-btn {
    display: inline-block;
    padding: 0.85rem 1.25rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.4rem;
}
.sb-rose-btn:hover { background: var(--primary); color: white; }

/* Footer */
.article-footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--line);
}
.article-footer a { color: var(--muted); text-decoration: none; }
.article-footer a:hover { color: var(--primary); }

/* WhatsApp float */
.wa-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 26px;
    right: 26px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 99;
    animation: waBounce 2.5s infinite;
}
@keyframes waBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 1.25rem 3rem; }
    .sidebar { position: static; }
    .topbar-inner { padding: 0 1.25rem; }
    .breadcrumb { font-size: 0.65rem; }
    .article ul li, .article ol li { font-size: 0.98rem; }
}
@media (max-width: 520px) {
    .article-end-cta { padding: 1.5rem 1.2rem; }
    .stat-card { padding: 1rem 0.5rem; }
    .stat-card .stat-num { font-size: 1.6rem; }
}
