/* ============================================================
   PROYECTO DIÁSPORA VENEZUELA - STYLES
   Venezuelan flag theme: Yellow #FFCC00, Blue #003893, Red #CF142B
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --vzla-yellow: #FFCC00;
    --vzla-blue: #003893;
    --vzla-red: #CF142B;
    --vzla-yellow-light: #FFE066;
    --vzla-blue-light: #1a5fc7;
    --vzla-red-light: #FF4D6A;

    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1428;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(10, 14, 26, 0.85);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 204, 0, 0.3);

    --chart-vzla: #FFCC00;
    --chart-rest: #4a6fa5;
    --chart-accent: #CF142B;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 8px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Selection ---- */
::selection {
    background: var(--vzla-yellow);
    color: var(--bg-primary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-stars {
    color: var(--vzla-yellow);
    font-size: 8px;
    letter-spacing: 3px;
}

.nav-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(90deg, var(--vzla-yellow), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--vzla-yellow);
    background: rgba(255, 204, 0, 0.08);
}

/* ---- Country Selector ---- */
.country-selector {
    display: flex;
    gap: 6px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.country-btn .country-flag {
    font-size: 14px;
}

.country-btn.active {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
    color: var(--vzla-yellow);
}

.country-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    position: relative;
}

.country-btn.disabled:hover::after {
    content: 'Próximamente';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    z-index: 10;
}

/* ---- Hero Country Label ---- */
.hero-country-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}

.country-flag-lg {
    font-size: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================================
   HERO SECTION WITH FLAG BANNER
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ---- Animated Venezuelan Flag ---- */
.flag-container {
    position: absolute;
    top: 0;
    left: -5%;
    right: -5%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    perspective: 1200px;
    z-index: 1;
}

.flag {
    width: 110%;
    height: 50vh;
    min-height: 320px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    animation: flagWave 8s ease-in-out infinite;
    filter: brightness(0.4) saturate(1.3);
    position: relative;
}

.flag-stripe {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.flag-stripe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.3) 0%,
        rgba(255,255,255,0.05) 30%,
        rgba(0,0,0,0.1) 50%,
        rgba(255,255,255,0.08) 70%,
        rgba(0,0,0,0.3) 100%
    );
    animation: flagShimmer 6s ease-in-out infinite;
}

.flag-yellow { background: var(--vzla-yellow); }
.flag-blue {
    background: var(--vzla-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flag-red { background: var(--vzla-red); }

/* ---- Flag Stars ---- */
.flag-stars {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 2;
}

.star {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(16px, 2.5vw, 30px);
    display: inline-block;
    animation: starPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
    transform-origin: center;
    /* Arrange in arc */
    position: relative;
    top: calc(sin(calc(var(--i) * 0.42 - 1.47)) * 15px);
    margin: 0 clamp(4px, 1vw, 12px);
}

/* ---- Flag Shadow ---- */
.flag-shadow {
    position: absolute;
    bottom: 10%;
    left: 10%;
    right: 10%;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.4), transparent);
    filter: blur(30px);
}

@keyframes flagWave {
    0%, 100% { transform: rotateX(2deg) rotateY(0deg) skewX(0deg); }
    25% { transform: rotateX(1deg) rotateY(2deg) skewX(1deg); }
    50% { transform: rotateX(3deg) rotateY(-1deg) skewX(-0.5deg); }
    75% { transform: rotateX(1deg) rotateY(-2deg) skewX(0.5deg); }
}

@keyframes flagShimmer {
    0%, 100% { opacity: 0.6; transform: translateX(-5%); }
    50% { opacity: 1; transform: translateX(5%); }
}

@keyframes starPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ---- Floating Particles ---- */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    color: var(--vzla-yellow);
    opacity: 0;
    font-size: 10px;
    animation: float linear infinite;
}

@keyframes float {
    0% { opacity: 0; transform: translateY(100vh) rotate(0deg); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) rotate(720deg); }
}

/* ---- Hero Content ---- */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 100px 24px 60px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vzla-yellow);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-badge-beta {
    background: rgba(255, 165, 0, 0.12);
    border-color: rgba(255, 165, 0, 0.35);
    color: #ffa500;
    animation: betaPulse 2.5s ease-in-out infinite;
}

@keyframes betaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(255, 165, 0, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(135deg, var(--vzla-yellow), var(--vzla-yellow-light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ---- Hero Stats ---- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    min-width: 140px;
    transition: var(--transition);
}

.hero-stat:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--vzla-yellow);
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ---- Hero CTA ---- */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--vzla-yellow), #e6b800);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 100px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 204, 0, 0.5);
}

.hero-cta svg {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vzla-yellow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Grids ---- */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

/* ---- Cards ---- */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.chart-card:hover {
    border-color: rgba(255, 204, 0, 0.15);
}

.chart-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chart-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 340px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-tall {
    height: 480px;
}

.chart-narrow {
    flex: 1;
}

/* ---- Stat Cards ---- */
.stats-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    font-size: 28px;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
}

.stat-context {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.highlight-yellow .stat-value { color: var(--vzla-yellow); }
.highlight-blue .stat-value { color: var(--vzla-blue-light); }
.highlight-red .stat-value { color: var(--vzla-red-light); }
.highlight-gold .stat-value { color: var(--vzla-yellow-light); }

.highlight-yellow { border-left: 3px solid var(--vzla-yellow); }
.highlight-blue { border-left: 3px solid var(--vzla-blue-light); }
.highlight-red { border-left: 3px solid var(--vzla-red); }
.highlight-gold { border-left: 3px solid var(--vzla-yellow-light); }

/* ---- Insight Banner ---- */
.insight-banner {
    margin-top: 40px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08), rgba(0, 56, 147, 0.08));
    border: 1px solid rgba(255, 204, 0, 0.15);
    border-radius: var(--radius);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.insight-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.insight-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.insight-text strong {
    color: var(--vzla-yellow);
}

/* ============================================================
   LABOR MARKET SECTION
   ============================================================ */
.labor-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
}

.labor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
}

.labor-bar-group {
    margin-bottom: 24px;
}

.labor-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.labor-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.labor-bar {
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0;
}

.labor-bar.animated {
    width: var(--width);
}

.bar-rest {
    background: linear-gradient(90deg, var(--chart-rest), rgba(74, 111, 165, 0.6));
    color: #fff;
}

.bar-vzla {
    background: linear-gradient(90deg, var(--vzla-yellow), rgba(255, 204, 0, 0.7));
    color: var(--bg-primary);
}

.labor-legend {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.dot-rest { background: var(--chart-rest); }
.dot-vzla { background: var(--vzla-yellow); }

/* ---- Labor Highlights ---- */
.labor-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.highlight-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--vzla-yellow);
    margin-bottom: 4px;
}

.highlight-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.highlight-desc small {
    color: var(--text-muted);
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.map-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.map-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.map-btn.active {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.3);
    color: var(--vzla-yellow);
}

.map-container {
    width: 100%;
    height: 480px;
    position: relative;
}

.map-container svg {
    width: 100%;
    height: 100%;
}

.map-tooltip {
    position: absolute;
    padding: 12px 16px;
    background: rgba(10, 14, 26, 0.95);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 10px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
    backdrop-filter: blur(10px);
    max-width: 240px;
    white-space: nowrap;
}

.map-tooltip.visible {
    opacity: 1;
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--vzla-yellow);
}

.tooltip-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.tooltip-pct {
    font-size: 12px;
    color: var(--text-muted);
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-gradient {
    width: 200px;
    height: 12px;
    border-radius: 6px;
}

/* ---- Map Sidebar ---- */
.map-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.state-ranking {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.state-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    min-width: 24px;
    text-align: right;
}

.rank-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rank-name {
    font-size: 13px;
    font-weight: 500;
}

.rank-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.rank-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vzla-yellow), var(--vzla-red));
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rank-value {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--vzla-yellow);
    min-width: 64px;
    text-align: right;
}

/* ============================================================
   OCCUPATION / INDUSTRY TABS
   ============================================================ */
.tab-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.3);
    color: var(--vzla-yellow);
}

.occ-insights {
    display: flex;
    flex-direction: column;
}

.occ-insight-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.occ-insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: var(--transition);
}

.occ-insight-card:hover {
    border-color: rgba(255, 204, 0, 0.2);
}

.occ-insight-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.occ-insight-bars {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.occ-mini-bar {
    height: 8px;
    border-radius: 4px;
    transition: width 1s ease;
}

.occ-mini-bar.rest { background: var(--chart-rest); }
.occ-mini-bar.vzla { background: var(--vzla-yellow); }

.occ-insight-diff {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.diff-positive {
    background: rgba(255, 204, 0, 0.15);
    color: var(--vzla-yellow);
}

.diff-negative {
    background: rgba(207, 20, 43, 0.15);
    color: var(--vzla-red-light);
}

/* ============================================================
   TRAJECTORY SECTION
   ============================================================ */
.trajectory-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    margin-bottom: 40px;
}

.cohort-timeline {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--vzla-yellow), var(--vzla-blue), var(--vzla-red));
}

.timeline-item {
    position: relative;
    padding: 0 0 24px 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vzla-yellow);
    border: 2px solid var(--bg-primary);
}

.timeline-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--vzla-yellow);
    margin-bottom: 4px;
}

.timeline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-stat {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: var(--text-secondary);
}

.timeline-stat strong {
    color: var(--text-primary);
}

/* ---- Citizenship Row ---- */
.citizenship-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ============================================================
   ABOUT / SOBRE EL PROYECTO
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    align-items: start;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 28px;
}

.about-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--vzla-yellow);
}

.about-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-card strong {
    color: var(--text-primary);
}

/* ---- Pillars ---- */
.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.pillar-card:hover {
    border-color: rgba(255, 204, 0, 0.2);
    transform: translateY(-2px);
}

.pillar-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.pillar-card h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pillar-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Author Card ---- */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vzla-yellow), var(--vzla-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.author-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.author-role {
    font-size: 13px;
    color: var(--vzla-yellow);
    font-weight: 500;
}

.author-bio {
    margin-bottom: 16px;
}

.author-bio p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.author-bio p:last-child {
    margin-bottom: 0;
}

.author-bio strong {
    color: var(--text-primary);
}

.author-links {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.author-link {
    color: var(--vzla-yellow);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.author-link:hover {
    color: var(--vzla-yellow-light);
}

/* ---- Pilot Card ---- */
.pilot-card {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.06), rgba(0, 56, 147, 0.06));
    border: 1px solid rgba(255, 204, 0, 0.15);
    border-radius: var(--radius);
    padding: 24px;
}

.pilot-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 204, 0, 0.12);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vzla-yellow);
    margin-bottom: 12px;
}

.pilot-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.pilot-card p:last-child {
    margin-bottom: 0;
}

.pilot-card strong {
    color: var(--text-primary);
}

.pilot-cta {
    font-style: italic;
    color: var(--text-muted) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-flag {
    display: flex;
    height: 4px;
    margin-bottom: 40px;
    border-radius: 2px;
    overflow: hidden;
}

.footer-stripe {
    flex: 1;
}

.footer-yellow { background: var(--vzla-yellow); }
.footer-blue { background: var(--vzla-blue); }
.footer-red { background: var(--vzla-red); }

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-info strong {
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   ANIMATIONS & REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-2,
    .labor-grid,
    .trajectory-grid,
    .map-wrapper,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-pillars {
        grid-template-columns: 1fr 1fr;
    }

    .citizenship-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .country-selector {
        margin-left: auto;
        margin-right: 12px;
        padding-left: 0;
        border-left: none;
    }

    .country-btn span:not(.country-flag) {
        display: none;
    }

    .country-btn {
        padding: 5px 8px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-glass);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open {
        display: flex;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stat {
        min-width: 120px;
        padding: 12px 16px;
    }

    .hero-stat-number {
        font-size: 22px;
    }

    .section {
        padding: 60px 0;
    }

    .chart-container {
        height: 280px;
    }

    .chart-tall {
        height: 400px;
    }

    .map-container {
        height: 350px;
    }

    .highlight-number {
        font-size: 28px;
    }

    .labor-bar-group {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .hero-stat {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .flag {
        height: 35vh;
    }
}
