/* =========================================
   NexoNoticias - SAFE ANTIFRAGILE STYLE
   Status: Verified Fixed Header + Isolation
   Updated: CRITICAL FIX - SEPARATING SITE HEADER FROM ARTICLE HEADER
   ========================================= */

:root {
  /* --- PALETTE --- */
  --bg-page: #0f172a;       /* Slate 900 */
  --bg-panel: #1e293b;      /* Slate 800 */
  --bg-ad: #1e293b;         /* Integrated Ad BG */
  
  --line-subtle: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(148, 163, 184, 0.4);
  --accent-blue: #3b82f6;   /* Royal Blue */
  --accent-glow: rgba(59, 130, 246, 0.5); /* Glow Effect */
  --accent-hover: #60a5fa;

  --text-title: #f1f5f9;    /* Slate 100 */
  --text-body: #cbd5e1;     /* Slate 300 */
  --text-muted: #94a3b8;    /* Slate 400 */
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  --header-height: 80px;
  --container-width: 1200px;
  --radius: 6px;
}

/* --- RESET & SAFETIES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-main);
    font-size: 18px; 
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 140px; /* Anti-Overlap Shield */
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
ul { list-style: none; }

/* --- ANIMATIONS (Snappier) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); }
}

/* --- SITE NAVIGATION HEADER (Targeting generic header tag) --- */
/* --- SITE NAVIGATION HEADER --- */
header {
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.85); /* Modern sleek glass */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed; 
    top: 0; left: 0; right: 0;
    z-index: 10000;
}

.header-container {
    max-width: var(--container-width); margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.logo { 
    font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; text-transform: uppercase; 
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.logo span.sync { font-weight: 300; opacity: 0.8; color: var(--accent-blue); }

.nav { display: flex; gap: 8px; align-items: center; }
.nav a { 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    padding: 8px 16px; 
    border-radius: 99px; /* Pill Shape */
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav a:hover, .nav a.active { 
    color: #fff; 
    background: rgba(255, 255, 255, 0.05); 
    border-color: rgba(255, 255, 255, 0.1);
}

.search-container { position: relative; display: flex; align-items: center; }
#search-toggle {
    display: flex; align-items: center; justify-content: center;
    padding: 8px; border-radius: 50%; 
    transition: all 0.2s;
}
#search-toggle:hover { background: rgba(255, 255, 255, 0.05); }
#search-toggle:hover svg { color: #fff !important; }

.search-form { display: none; margin-left: 12px; }
.search-form.active { display: block; animation: fadeIn 0.2s; }
.search-form input {
    background: #0f172a; 
    border: 1px solid #334155; 
    color: #f1f5f9;
    padding: 8px 20px; 
    border-radius: 99px; 
    font-size: 0.85rem; 
    width: 240px;
    outline: none; 
    transition: all 0.2s;
    font-family: var(--font-main);
}
.search-form input:focus { 
    border-color: var(--accent-blue); 
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.search-form input::placeholder { color: #64748b; }
@keyframes fadeIn { from { opacity:0; transform:translateX(10px); } to { opacity:1; transform:translateX(0); } }

/* --- GLOBAL LAYOUT --- */
.container { max-width: var(--container-width); margin: 0 auto 60px; padding: 0 24px; }
h1, h2, h3, h4, h5 { color: var(--text-title); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
p { margin-bottom: 1.5rem; }

/* UTILITY: STEALTH LEGAL DATA */
.dato-discreto {
    color: #64748b; font-size: 0.85rem; font-family: ui-monospace, monospace;
    background: rgba(15, 23, 42, 0.5); padding: 8px 12px; border-radius: 4px;
    display: inline-block; margin-top: 8px; border: 1px dashed rgba(255,255,255,0.1);
}
.dato-discreto span { opacity: 0.8; } /* Obfuscation fragments */

/* --- HOMEPAGE SPECIFIC (Preserved) --- */
.main-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; }
.hero-wrapper { margin-bottom: 60px; border-bottom: 1px solid var(--line-subtle); padding-bottom: 40px; }
.hero-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-img { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; order: 2; transition: transform 0.4s ease; }
.hero-card:hover .hero-img { transform: scale(1.02); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { order: 1; }
.hero-title { font-size: 2.8rem; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* --- HERO CAROUSEL --- */
.hero-wrapper { position: relative; margin-bottom: 60px; border-bottom: 1px solid var(--line-subtle); padding-bottom: 40px; }

/* DYNAMIC HERO PLACEHOLDERS (New Feature) */
.hero-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: #0f172a;
}
.hero-money { background: linear-gradient(135deg, #065f46, #047857); } /* Emerald */
.hero-guide { background: linear-gradient(135deg, #1e40af, #3b82f6); } /* Royal Blue */
.hero-digital { background: linear-gradient(135deg, #4c1d95, #7c3aed); } /* Violet */
.hero-default { background: linear-gradient(135deg, #0f172a, #334155); } /* Slate */

.hero-icon {
    width: 40%; height: 40%; opacity: 0.15; 
    transform: rotate(-10deg) scale(1.2);
    display: flex; align-items: center; justify-content: center;
}
.hero-icon svg { width: 100%; height: 100%; stroke: #fff; stroke-width: 1; }

.hero-slide { display: none; /* Default hidden */ }
.hero-slide.active { display: grid; animation: heroFadeIn 0.8s ease; }

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.carousel-controls {
    position: absolute; bottom: 10px; right: 0; 
    display: flex; gap: 12px; z-index: 10;
}
.carousel-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: none; cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active, .carousel-dot:hover { background: var(--accent-blue); transform: scale(1.2);box-shadow: 0 0 10px var(--accent-glow); }

/* Article List */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-item { 
    padding: 32px 0; 
    border-bottom: 1px solid var(--line-subtle); 
    display: block; /* Text fills width */
    position: relative;
}
.article-item:first-child { border-top: 1px solid var(--line-subtle); }
.article-item:last-child { border-bottom: none; }

.article-info h3 { font-size: 1.5rem; margin-bottom: 12px; transition: color 0.2s; color: #fff; }
.article-item:hover .article-info h3 { color: var(--accent-blue); }
.article-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 800px; } 

/* Thumb removed as per request */


/* --- ARTICLE INTERNALS (RESTORED PREMIUM + SAFE SPACING) --- */
.article-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 60px; 
    max-width: var(--container-width); 
    /* SAFE SPACING */
    margin: 60px auto 60px; 
    padding: 0 24px;
}
.main-column { 
    max-width: 760px; 
    min-width: 0; 
    animation: fadeInUp 0.4s ease-out; 
}

/* 
   !!! CRITICAL FIX !!! 
   Override the global 'header' fixed rule for the article-header.
   This prevents the title from being stuck to the top of the viewport.
*/
/* 
   !!! CRITICAL FIX !!! 
   Using DIV instead of HEADER to avoid global header collisions.
*/
.article-header-wrapper { 
    position: relative; 
    margin-bottom: 50px; 
    text-align: left; 
    display: block;
}

.article-cat { 
    color: var(--accent-blue); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; 
    display: inline-block; margin-bottom: 24px; letter-spacing: 0.15em; border-bottom: 2px solid var(--accent-blue); padding-bottom: 4px;
}
.article-h1 { 
    font-size: 2.8rem; 
    margin-bottom: 32px; letter-spacing: -0.03em; line-height: 1.1; 
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.article-meta-block {
    border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle);
    padding: 20px 0; display: flex; gap: 32px; color: var(--text-muted); font-size: 0.95rem;
}
.article-meta-block strong { color: #fff; }

/* HERO IMAGE (Strict Constraints) */
.head-media, .hero-pattern {
    border-radius: var(--radius); overflow: hidden; margin-bottom: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Strong shadow */
    border: 1px solid var(--line-subtle);
    width: 100%; max-width: 100%;
}
.hero-pattern { aspect-ratio: 21/9; position: relative; }
.hero-svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; object-fit: cover; }
.head-media img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

/* SUMMARY BLOCK DATA PANEL (Premium) */
/* SUMMARY BLOCK DATA PANEL (Premium Hero) */
/* SUMMARY BLOCK DATA STRIP (High End) */
.summary-block {
    background: transparent; 
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    border-left: none; border-right: none; box-shadow: none; border-radius: 0;
    padding: 24px 0; 
    margin: 0 0 50px 0; 
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
/* No decorative sheen needed for strip */
.summary-block::after { display: none; }

/* Summary Item Layout */
.summary-item { 
    display: flex; flex-direction: column; gap: 8px; position: relative; 
    padding-left: 0; border-left: none;
}
/* Separator Line (Tick style) */
.summary-item::after {
    content: ''; position: absolute; right: -16px; top: 10%; height: 80%; width: 1px;
    background: rgba(255,255,255,0.1);
}
.summary-item:last-child::after { display: none; }

.summary-label { 
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; 
    color: var(--text-muted); font-weight: 600; 
    display: flex; align-items: center; gap: 8px;
}
/* SVG styling within label */
.summary-label svg { width: 16px; height: 16px; stroke: var(--accent-blue); opacity: 0.9; }

/* Obsolete CSS icons removed */
.item-amount .summary-label::before, .item-deadline .summary-label::before, 
.item-req .summary-label::before, .item-time .summary-label::before { content: none; }

.summary-val { 
    font-size: 1.1rem; font-weight: 500; color: #fff; line-height: 1.4; 
    word-wrap: break-word; overflow-wrap: break-word; hyphens: auto;
}

@media (max-width: 900px) {
    /* --- STRUCTURE --- */
    .container, .article-grid, .header-container { padding: 0 20px; }
    
    /* STACK THE GRID (Critical Fix) */
    .main-layout, .article-grid { 
        grid-template-columns: 1fr; /* Single Column */
        gap: 40px; 
    }
    
    /* SIDEBAR BEHAVIOR */
    .sidebar { order: 2; } /* Sidebar moves to bottom */
    .sidebar-sticky { position: static; } /* Release sticky on mobile */
    .ad-slot, .widget-title { width: 100%; max-width: 100%; }
    .ad-rect, .ad-sky { width: 100%; max-width: 336px; margin: 0 auto; height: 250px; } /* Adapt ads */

    /* --- TYPOGRAPHY SCALE DOWN --- */
    body { font-size: 16px; }
    .hero-title, .article-h1 { font-size: 2rem !important; margin-bottom: 20px; }
    .article-body h2 { font-size: 1.6rem; padding-left: 15px; margin: 40px 0 20px; }
    .article-body h3 { font-size: 1.3rem; }
    
    /* --- HEADER / NAV MOBILE (Hamburger Drawer) --- */
    .header-container { 
        justify-content: space-between; 
        height: var(--header-height); /* Keep fixed height */
        padding-top: 0; padding-bottom: 0;
        flex-wrap: nowrap; /* No wrapping, maintain row */
    }
    
    .logo { font-size: 1.2rem; order: 2; margin: 0 auto 0 10px; }
    
    /* Hamburger Button */
    #mobile-menu-toggle {
        display: flex !important;
        order: 1;
        cursor: pointer;
        padding: 5px;
    }
    
    .search-container { order: 3; }
    
    /* Mobile Drawer (Hidden by default) */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%; /* Off-screen */
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(255,255,255,0.1);
        overflow-y: auto;
        display: flex; /* Always flex, just moved */
        max-width: none;
        order: 99; /* Detached from flow */
    }
    
    /* Active State (Slide In) */
    .nav.nav-mobile-active {
        left: 0;
    }
    
    .nav a {
        font-size: 1.2rem;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: transparent;
        border-radius: 0;
    }
    .nav a:last-child { border-bottom: none; }
    
    /* Adjust page padding */
    body { padding-top: 100px; }
    
    .logo { font-size: 1.2rem; }
    
    /* --- HERO CARD --- */
    .hero-card { grid-template-columns: 1fr; gap: 20px; }
    .hero-img { height: 200px; order: 1; }
    .hero-content { order: 2; }
    
    /* --- SUMMARY CARD FIX --- */
    .summary-block { grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
    .summary-item::after { display: none; }
    .summary-val { font-size: 1rem; }
    
    /* --- ARTICLE PADDING --- */
    .main-column { max-width: 100%; }
    header.article-header { margin-bottom: 30px; }
    
    /* --- FOOTER --- */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* --- COOKIE BANNER --- */
    #cookie-banner { padding: 20px; }
    .cookie-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .cookie-actions { width: 100%; gap: 12px; }
    .btn-cookie-accept, .btn-cookie-config { flex: 1; text-align: center; padding: 12px; }
}

@media (max-width: 480px) {
    /* ULTRA COMPACT (iPhone SE level) */
    .summary-block { grid-template-columns: 1fr; } /* Stack summary items fully */
    /* Removed conflicting nav rules to ensure drawer works */
}

/* CONTENT BLOCKS */
.article-body { font-size: 1.15rem; color: var(--text-body); }
.article-body h2 { 
    font-size: 2rem; margin: 60px 0 24px; color: #fff; 
    position: relative; padding-left: 20px; 
    border-left: 4px solid var(--accent-blue); 
}
.article-body h3 { font-size: 1.5rem; margin: 40px 0 20px; color: #fff; }
.article-body ul { margin-bottom: 30px; padding-left: 20px; list-style: disc; } 

.expert-tip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.01) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid #f59e0b;
    padding: 32px; border-radius: 8px; margin: 40px 0;
}
.expert-tip h3 { color: #f59e0b; margin-top: 0; display: flex; align-items: center; gap: 10px; }
.expert-tip h3::before { content: '💡'; filter: grayscale(100%); opacity: 0.5; font-size: 1.2rem; }

/* STEPS */
.tutorial-step { 
    display: flex; gap: 32px; position: relative; margin-bottom: 0; padding-bottom: 50px; 
}
.tutorial-step::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--line-subtle); z-index: 0; }
.tutorial-step:last-child::before { display: none; }
.step-number { 
    width: 50px; height: 50px; flex-shrink: 0; z-index: 1;
    background: var(--bg-page); border: 2px solid var(--line-subtle);
    color: var(--text-muted); font-weight: 900; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.3s ease;
}
.tutorial-step:hover .step-number { border-color: var(--accent-blue); color: #fff; }
.step-content { flex: 1; padding-top: 8px; }

/* FAQ ACCORDION (Interactive) */
.faq-section { margin-top: 60px; }
.faq-main-title { font-size: 1.8rem; margin-bottom: 32px; color: #fff; border-bottom: 1px solid var(--line-subtle); padding-bottom: 16px; }

.faq-item {
    background: #1e293b; border: 1px solid var(--line-subtle);
    border-radius: 8px; margin-bottom: 16px;
    transition: all 0.2s ease;
    overflow: hidden;
}
.faq-item:hover { border-color: var(--line-strong); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.faq-item[open] { border-color: var(--accent-blue); }

.faq-summary {
    padding: 20px 24px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none; /* Hide default marker */
}
.faq-summary::-webkit-details-marker { display: none; } /* Safari */

.faq-text { font-weight: 600; color: #f1f5f9; font-size: 1.05rem; }
.faq-icon { transition: transform 0.3s ease; color: var(--text-muted); display:flex; }

/* Rotate icon when open */
.faq-item[open] .faq-summary .faq-icon { transform: rotate(180deg); color: #fff; }

.faq-content {
    padding: 0 24px 24px 24px;
    color: var(--text-body); line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.05); /* Subtle inner separator */
    padding-top: 20px;
}

/* SIDEBAR & FOOTER (Standard) */
.ad-slot { margin-bottom: 40px; border: 1px dashed var(--line-subtle); padding: 20px; display: flex; flex-direction: column; align-items: center; }
.ad-label { font-size: 0.7rem; text-transform: uppercase; margin-bottom: 10px; color: var(--text-muted); opacity: 0.5; }
.ad-billboard { width: 100%; height: 90px; background: #1e293b; border-radius: 4px; }
.ad-rect { width: 336px; height: 250px; background: #1e293b; border-radius: 4px; }
.ad-sky { width: 336px; height: 600px; background: #1e293b; border-radius: 4px; }

.sidebar-sticky { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 50px; }
.widget-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); border-bottom: 1px solid var(--line-subtle); padding-bottom: 12px; margin-bottom: 24px; }
.ranked-item { display: flex; gap: 20px; margin-bottom: 24px; align-items: center; transition: transform 0.2s; }
.ranked-item:hover { transform: translateX(5px); }
.ranked-num { font-size: 2rem; font-weight: 900; color: rgba(255,255,255,0.1); min-width: 30px; line-height: 1; }
.ranked-link { font-size: 1.05rem; color: var(--text-title); font-weight: 600; line-height: 1.4; }
.ranked-link:hover { color: var(--accent-blue); }

footer { 
    background: #020617; 
    border-top: 1px solid var(--line-subtle); 
    padding: 100px 0 60px; /* Increased padding */
    margin-top: 120px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; /* 2:1:1 Layout */
    gap: 80px; 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 24px; 
}

.footer-col h4 { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    color: #fff; 
    margin-bottom: 30px; 
    font-weight: 700;
    opacity: 0.8;
}

.footer-col ul li { 
    margin-bottom: 16px; 
    font-size: 0.95rem; 
    color: var(--text-muted); 
}

.footer-col ul li a {
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover { 
    color: var(--accent-blue); 
    transform: translateX(4px); 
}

.footer-bottom { 
    max-width: var(--container-width); 
    margin: 80px auto 0; 
    padding-top: 30px; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    font-size: 0.85rem; 
    color: #475569; 
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
}

/* --- CORPORATE / LEGAL DOCS (Premium Style) --- */
.page-standard-container {
    margin: 40px auto 60px; /* Reduced top margin from 60px to 40px for better balance */
    max-width: 900px;
    padding: 0 20px;
    width: 100%;
}

.corporate-doc {
    background: #1e293b;
    border: 1px solid var(--line-subtle);
    border-radius: 12px;
    padding: 60px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.corporate-doc::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), #818cf8);
}

.doc-header {
    margin-bottom: 50px; padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: flex-start;
}

.doc-title-block h1 { font-size: 2.2rem; margin: 0 0 10px 0; color: #fff; }
.doc-meta { color: #94a3b8; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

.doc-status {
    background: rgba(16, 185, 129, 0.1); color: #34d399;
    padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.doc-content { color: #cbd5e1; font-size: 1.05rem; line-height: 1.8; }
.doc-content h2 { color: #fff; margin-top: 40px; font-size: 1.4rem; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.doc-content p { margin-bottom: 1.5em; }
.doc-content ul { margin-bottom: 1.5em; padding-left: 20px; }
.doc-content li { margin-bottom: 10px; }
.doc-content a { color: var(--accent-blue); text-decoration: none; border-bottom: 1px solid transparent; transition: border 0.2s; }
.doc-content a:hover { border-bottom-color: var(--accent-blue); }

@media (max-width: 768px) {
    .corporate-doc { padding: 30px 20px; }
    .doc-header { flex-direction: column; gap: 20px; }
    .doc-title-block h1 { font-size: 1.8rem; }
}

/* --- COMPACT CONTACT LAYOUT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}
.contact-info-col {
    padding-right: 20px;
}
.contact-form-col {
    background: rgba(15, 23, 42, 0.4);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
@media (max-width: 850px) {
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-info-col { padding-right: 0; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95); /* High opacity dark glass */
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    z-index: 10001; /* Above everything */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
}

#cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-width);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.cookie-content a {
    color: var(--accent-blue);
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-cookie-accept:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-cookie-config {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--line-strong);
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-config:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 768px) {
    /* --- MOBILE COOKIE BANNER FIX --- */
    #cookie-banner {
        padding: 24px;
        flex-direction: column; 
        align-items: stretch;
        gap: 24px;
        justify-content: flex-end;
        bottom: 0;
    }
    
    .cookie-content {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .cookie-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .cookie-actions {
        width: 100%;
        gap: 12px;
        flex-direction: column;
    }
    
    .btn-cookie-accept {
        order: -1; /* Make Accept button appear first */
    }

    .btn-cookie-accept, .btn-cookie-config {
        width: 100%;
        text-align: center;
        padding: 16px;
        height: auto;
        border-radius: 12px;
    }
}

/* --- SOCIAL SHARE SYSTEM (Premium) --- */
.share-container {
    display: flex; gap: 12px; margin: 30px 0 50px;
    align-items: center; flex-wrap: wrap;
}
.share-label {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); font-weight: 700; margin-right: 12px;
}
.share-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 99px;
    font-weight: 700; font-size: 0.85rem; color: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: none;
    text-transform: uppercase; letter-spacing: 0.05em;
    text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-wa { background: #25D366; }
.btn-x { background: #000; border: 1px solid #333; }
.btn-fb { background: #1877F2; }
.btn-copy { background: #334155; color: #cbd5e1; }
.btn-copy:hover { background: #475569; color: #fff; }

/* MOBILE STICKY BAR */
#mobile-share-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 24px;
    display: none; /* Hidden on desktop */
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    transform: translateY(100%); /* Start hidden */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-share-bar.visible { transform: translateY(0); }

.mobile-share-grid {
    display: flex; gap: 12px; justify-content: center; width: 100%;
}
.mobile-share-btn {
    flex: 1; justify-content: center; padding: 14px;
    font-size: 1rem;
    display: flex; align-items: center; gap: 10px;
    border-radius: 12px;
    border: none; cursor: pointer;
    font-weight: 700; color: #fff;
}
.btn-native { background: var(--accent-blue); box-shadow: 0 0 15px var(--accent-glow); }

/* TOAST NOTIFICATION */
#share-toast {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #10b981; color: #fff; padding: 12px 24px; border-radius: 99px;
    font-weight: 600; font-size: 0.9rem; opacity: 0; pointer-events: none;
    transition: all 0.3s; z-index: 10002; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 8px;
}
#share-toast.active { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
    .share-container.desktop-only { display: none; }
    #mobile-share-bar { display: block; }
    /* Add padding to body so content isn't covered */
    body.article-page { padding-bottom: 80px; } 
}
/* --- FORCED VISUAL OVERRIDES (CACHE BUSTER) --- */

/* 1. DEEP GRADIENT CARDS */
.card { 
    background: linear-gradient(145deg, #0f1525 0%, #1c2533 100%) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3) !important;
}

.card.bg-money { background: linear-gradient(135deg, #064e3b 0%, #022c22 100%) !important; }
.card.bg-docs { background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%) !important; }
.card.bg-tech { background: linear-gradient(135deg, #2e1065 0%, #0f172a 100%) !important; }
.card.bg-alert { background: linear-gradient(135deg, #450a0a 0%, #0f172a 100%) !important; }

/* 2. SOLID BLACK ADS (No Stripes) */
.native-ad-card, .ad-placeholder, .ad-header, .ad-sidebar {
    background-color: #000000 !important;
    background-image: none !important;
    border: 1px dashed #333 !important;
}

.native-ad-card .ad-label { color: #444 !important; }
.ad-header, .ad-sidebar { color: #444 !important; }
