/* ==========================================================================
   RESET & SYSTEM VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #07050f;
    --bg-glass: rgba(18, 14, 33, 0.6);
    --bg-glass-hover: rgba(28, 22, 51, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(214, 51, 132, 0.4);
    
    --primary-violet: #8a2be2;
    --primary-magenta: #e02484;
    --primary-cyan: #00e5ff;
    --primary-orange: #ff7b00;
    --primary-red: #ff3366;
    
    --text-primary: #f5f3f7;
    --text-muted: #9e9aa8;
    --text-bright: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-glow: 0 8px 32px 0 rgba(138, 43, 226, 0.15);
    --shadow-glow-active: 0 8px 32px 0 rgba(224, 36, 132, 0.35);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ==========================================================================
   DYNAMIC GLOWING BACKGROUND ELEMENTS
   ========================================================================== */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    left: -150px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 36, 132, 0.25) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -100px;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 45%;
}

/* ==========================================================================
   HEADER & BRANDING
   ========================================================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 8, 20, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-bright) 30%, var(--primary-magenta) 70%, var(--primary-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-left .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 400;
}

.header-right .logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.logo-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.logo-img {
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #fff;
    padding: 2px;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 5%;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-bright);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.tab-btn.active {
    color: var(--text-bright);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(224, 36, 132, 0.3) 100%);
    border-color: var(--primary-magenta);
    box-shadow: var(--shadow-glow-active);
}

/* ==========================================================================
   MAIN LAYOUT & GENERAL STYLES
   ========================================================================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
    display: block;
}

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

/* Glass Card Definition */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   TAB: DIAGNÓSTICO GENERAL (DASHBOARD)
   ========================================================================== */
/* Hero de bienvenida */
.hero-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.18) 0%, rgba(224, 36, 132, 0.14) 55%, rgba(18, 14, 33, 0.6) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass-active);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 2.2rem 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-glow);
}

.hero-text {
    flex: 1 1 480px;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff 40%, var(--primary-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-primary);
    font-size: 1.02rem;
    max-width: 720px;
}

.hero-text p strong { color: var(--primary-cyan); }

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 240px;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-magenta) 100%);
    color: var(--text-bright);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 1rem 1.6rem;
    border-radius: 16px;
    box-shadow: var(--shadow-glow-active);
    transition: var(--transition-smooth);
    text-align: center;
}

.pdf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(224, 36, 132, 0.5);
}

.hero-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Hallazgos clave */
.findings-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-bright);
    margin: 0 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.findings-title i { color: var(--primary-magenta); }

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.finding-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.finding-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--accent, var(--primary-violet));
}

.finding-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
}

.finding-card .finding-icon {
    font-size: 1.7rem;
    color: var(--accent, var(--primary-violet));
    margin-bottom: 0.7rem;
}

.finding-card h4 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.finding-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

/* Voces de las mujeres */
.voices-section {
    margin-top: 2.5rem;
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.voice-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.6rem;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.voice-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-active);
}

.voice-card .voice-quote-icon {
    font-size: 1.4rem;
    color: var(--primary-magenta);
    opacity: 0.85;
}

.voice-card blockquote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.55;
    border: none;
    margin: 0;
}

.voice-card .voice-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-top: auto;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.15);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-violet), var(--primary-magenta));
    opacity: 0.8;
}

.kpi-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-violet), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.1;
}

.kpi-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 500;
}

.kpi-trend {
    font-size: 0.8rem;
    margin-top: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.text-purple { color: var(--primary-violet); }
.text-magenta { color: var(--primary-magenta); }
.text-cyan { color: var(--primary-cyan); }
.text-red { color: var(--primary-red); }

/* Dashboard Charts Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.chart-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

.chart-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-bright);
}

.chart-card h3 i {
    color: var(--primary-magenta);
}

.chart-card.large-span {
    grid-column: span 2;
}

.charts-row {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.chart-wrapper-half {
    flex: 1;
    min-height: 320px;
    position: relative;
}

.chart-wrapper {
    width: 100%;
    min-height: 320px;
    position: relative;
}

.chart-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.8rem;
    font-style: italic;
}

/* ==========================================================================
   TAB: MAPA DE CALOR CRUZADO
   ========================================================================== */
.heatmap-intro-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.heatmap-intro-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
}

.heatmap-intro-card h2 i {
    color: var(--primary-magenta);
}

.heatmap-intro-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.heatmap-controls {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.02);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}

.control-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.control-group select {
    background: #110e20;
    border: 1px solid var(--border-glass);
    color: var(--text-bright);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-group select:focus {
    border-color: var(--primary-magenta);
    box-shadow: 0 0 10px rgba(224, 36, 132, 0.2);
}

.heatmap-container-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.heatmap-grid-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

#heatmap-matrix-wrapper {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styled Table for Heatmap Matrix */
.heatmap-table {
    border-collapse: separate;
    border-spacing: 8px;
    width: 100%;
    max-width: 650px;
}

.heatmap-table th {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px;
    text-align: center;
    word-break: break-word;
    max-width: 110px;
}

.heatmap-table th.y-label {
    text-align: right;
    max-width: 180px;
    padding-right: 15px;
    font-size: 0.9rem;
}

.heatmap-cell {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    text-align: center;
    vertical-align: middle;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-bright);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.heatmap-cell.active-cell {
    border-color: var(--text-bright);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    z-index: 5;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legend-bar {
    width: 180px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(138,43,226,0.1), rgba(224,36,132,0.8));
    border: 1px solid var(--border-glass);
}

/* Details Drawer Card */
.heatmap-details-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    max-height: 580px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.details-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.details-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
}

.details-header h3 i {
    color: var(--primary-cyan);
}

#selected-cell-label {
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

.details-content {
    flex: 1;
    overflow-y: auto;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    color: var(--text-muted);
    gap: 1.5rem;
}

.empty-state i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-violet), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 250px;
}

.detail-metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
}

.detail-metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-metric-val {
    font-weight: 700;
    color: var(--text-bright);
}

.detail-quotes-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 1.8rem 0 1rem 0;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-quote-item {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--primary-magenta);
    padding: 1rem;
    border-radius: 0 10px 10px 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Consolidated Analysis Box in Heatmap Drawer */
.segment-consolidation-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1.2rem 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.segment-consolidation-box h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-cyan);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.segment-consolidation-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.segment-consolidation-box li {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.segment-consolidation-box li strong {
    color: var(--text-bright);
}

.highlight-cyan {
    color: var(--primary-cyan);
    font-weight: 500;
}

/* ==========================================================================
   TAB: LIENZO JAGA (RUEDA DE LAS REALIDADES — D3)
   ========================================================================== */
.jaga-intro-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.jaga-intro-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
}

.jaga-intro-card h2 i {
    color: var(--primary-magenta);
    animation: jaga-spin-slow 24s linear infinite;
    display: inline-block;
}

.jaga-intro-card > p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
}

.jaga-intro-card > p strong { color: var(--text-primary); }

.jaga-filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: rgba(255,255,255,0.02);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.jaga-filter-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.jaga-reset-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.75rem 1.3rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.jaga-reset-btn:hover {
    background: var(--primary-magenta);
    border-color: var(--primary-magenta);
    color: #fff;
}

.jaga-count-badge {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
}

.jaga-count-badge span {
    color: var(--primary-cyan);
    font-weight: 800;
    font-size: 1.1rem;
}

.jaga-row {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 2rem;
    align-items: stretch;
}

.jaga-wheel-card {
    background: radial-gradient(circle at center, rgba(30, 22, 60, 0.55) 0%, rgba(10, 8, 20, 0.75) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jaga-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    min-height: 34px;
}

.jaga-crumb {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.jaga-crumb:hover { color: var(--text-bright); border-color: var(--primary-magenta); }

.jaga-crumb.current {
    color: var(--text-bright);
    background: linear-gradient(135deg, rgba(138,43,226,0.35), rgba(224,36,132,0.35));
    border-color: var(--primary-magenta);
}

.crumb-sep { font-size: 0.6rem; color: var(--text-muted); }

.jaga-wheel-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.jaga-wheel { position: relative; width: 100%; }

.jaga-svg { width: 100%; height: auto; display: block; }

.jaga-svg .jaga-deco {
    animation: jaga-spin-slow 120s linear infinite;
    transform-origin: 0 0;
}

@keyframes jaga-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.jaga-arcs path {
    stroke: rgba(7, 5, 15, 0.9);
    stroke-width: 1;
    transition: filter 0.25s ease;
}

.jaga-arcs path:hover {
    filter: brightness(1.25) drop-shadow(0 0 8px rgba(255,255,255,0.35));
}

/* Centro HTML superpuesto (los clics pasan al círculo SVG de abajo) */
.jaga-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    width: 20%;
}

.jaga-center-number {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jaga-center-label {
    font-size: clamp(0.55rem, 1vw, 0.78rem);
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.25;
}

.jaga-center-hint {
    font-size: clamp(0.5rem, 0.85vw, 0.68rem);
    color: var(--primary-cyan);
    margin-top: 0.35rem;
    animation: blink 2.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.jaga-legend {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.9rem;
}

.jaga-legend i { color: var(--primary-magenta); margin-right: 0.3rem; }

/* Tooltip flotante */
.jaga-tooltip {
    position: absolute;
    top: 0; left: 0;
    max-width: 280px;
    background: rgba(10, 8, 22, 0.96);
    border: 1px solid var(--border-glass-active);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-primary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.jaga-tooltip .tip-meta { color: var(--primary-cyan); font-size: 0.72rem; }

/* Panel de detalle */
.jaga-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 1.8rem;
    overflow-y: auto;
    max-height: 820px;
}

.jaga-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}

.jaga-panel-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

.jaga-panel-tip {
    margin-top: 1.2rem;
    font-size: 0.8rem;
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.jaga-axis-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

.jaga-axis-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    margin-top: 0.25rem;
    background: var(--axc, var(--primary-violet));
    box-shadow: 0 0 8px var(--axc, var(--primary-violet));
}

.jaga-axis-row strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-bright);
    font-family: var(--font-heading);
}

.jaga-axis-row span:not(.jaga-axis-dot) {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.jaga-bar-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
}

.jaga-bar-label { font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }

.jaga-bar-track {
    height: 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.jaga-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.jaga-bar-val { font-size: 0.75rem; color: var(--text-muted); }

.jaga-ideas-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-bright);
    margin: 1.2rem 0 0.8rem 0;
}

.jaga-ideas-title i { color: var(--primary-orange); }

.jaga-idea-item {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--primary-magenta);
    padding: 0.9rem 1rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.8rem;
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-primary);
}

.jaga-idea-item small {
    display: block;
    margin-top: 0.4rem;
    font-style: normal;
    color: var(--primary-cyan);
    font-size: 0.72rem;
}

.jaga-idea-item.selected {
    font-size: 1rem;
    background: rgba(255,255,255,0.04);
}

/* Insignia de respaldo cuantitativo (● = respuestas similares) */
.jaga-idea-item .jaga-support {
    display: block;
    margin-top: 0.4rem;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--primary-orange);
}

.jaga-svg { touch-action: manipulation; }

@media (max-width: 1024px) {
    .jaga-row { grid-template-columns: 1fr; }
    .jaga-panel { max-height: none; }
    .jaga-filter-side { margin-left: 0; }
}

/* ---------- Optimización móvil completa ---------- */
@media (max-width: 640px) {
    .jaga-intro-card { padding: 1.25rem; }
    .jaga-intro-card h2 { font-size: 1.35rem; }
    .jaga-intro-card > p { font-size: 0.9rem; }

    .jaga-filters { padding: 0.9rem; gap: 0.9rem; }
    .jaga-filters .control-group { min-width: 100%; flex-basis: 100%; }
    .jaga-filters .control-group select { padding: 0.9rem 1rem; font-size: 1rem; }
    .jaga-filter-side { width: 100%; justify-content: space-between; }
    .jaga-reset-btn { padding: 0.85rem 1.2rem; }

    /* Rueda a lo ancho, sin blur pesado (rendimiento en gama baja) */
    .jaga-wheel-card {
        padding: 0.9rem 0.4rem;
        backdrop-filter: none;
        background: radial-gradient(circle at center, rgba(30, 22, 60, 0.7) 0%, rgba(10, 8, 20, 0.9) 100%);
    }
    .jaga-panel { padding: 1.2rem; backdrop-filter: none; background: rgba(18, 14, 33, 0.92); }

    .jaga-breadcrumb { justify-content: center; min-height: 30px; }
    .jaga-crumb { padding: 0.3rem 0.7rem; font-size: 0.72rem; }

    .jaga-center { width: 26%; }
    .jaga-center-number { font-size: 1.15rem; }
    .jaga-center-label { font-size: 0.52rem; }
    .jaga-center-hint { display: none; }

    .jaga-legend { gap: 0.6rem 1rem; font-size: 0.68rem; padding-top: 0.7rem; }

    .jaga-tooltip { font-size: 0.75rem; padding: 0.55rem 0.7rem; }

    /* La rotación decorativa se pausa en móvil (batería/GPU) */
    .jaga-svg .jaga-deco { animation: none; }
}

/* ==========================================================================
   TAB: LIENZO INTERACTIVO PREZI (ESTILOS HISTÓRICOS, YA SIN USO)
   ========================================================================== */
.prezi-container {
    width: 100%;
    height: 600px;
    border-radius: 24px;
    background: radial-gradient(circle at center, #16122d 0%, #07050f 100%);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.prezi-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.prezi-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    width: 450px;
    max-width: 90%;
}

.welcome-card {
    background: rgba(18, 14, 38, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.welcome-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #fff, var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.click-indicator {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-cyan);
    font-weight: 700;
    animation: blink 2.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Panning Nodes */
.prezi-node {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: var(--transition-smooth);
    z-index: 3;
}

.node-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-bright);
    padding: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.node-circle i {
    font-size: 2.2rem;
}

.bg-magenta { background: radial-gradient(circle, #e02484 0%, #aa125e 100%); }
.bg-purple { background: radial-gradient(circle, #8a2be2 0%, #5d17a3 100%); }
.bg-cyan { background: radial-gradient(circle, #00b4d8 0%, #0077b6 100%); }
.bg-orange { background: radial-gradient(circle, #ff7b00 0%, #cc5a00 100%); }
.bg-red { background: radial-gradient(circle, #ff3366 0%, #c4143f 100%); }

.prezi-node:hover .node-circle {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

/* Detail Panels inside Prezi Canvas */
.prezi-detail {
    position: absolute;
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    width: 850px;
    max-width: 95vw;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.prezi-detail.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
}

.detail-card {
    background: rgba(10, 8, 20, 0.95);
    backdrop-filter: blur(25px);
    border: 2px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
}

.border-magenta { border-color: var(--primary-magenta); }
.border-purple { border-color: var(--primary-violet); }
.border-cyan { border-color: var(--primary-cyan); }
.border-orange { border-color: var(--primary-orange); }
.border-red { border-color: var(--primary-red); }

.close-detail-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-bright);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.close-detail-btn:hover {
    background: var(--text-bright);
    color: var(--bg-dark);
}

.detail-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-bright);
}

.detail-card .diagnosis {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1.2rem;
}

/* Detail Split Columns */
.detail-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-split h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Word Cloud */
.word-cloud-container, .quotes-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.5rem;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: center;
    justify-content: center;
    min-height: 200px;
    padding: 10px;
}

.word-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-smooth);
    cursor: default;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.word-tag:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.08);
}

/* Quotes Carousel/Slider */
.quotes-slider {
    min-height: 200px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 8px;
}

.slider-quote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary-magenta);
    padding: 1rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-primary);
}

.prezi-instructions {
    text-align: center;
    margin-top: 1.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.prezi-instructions i {
    color: var(--primary-cyan);
}

/* ==========================================================================
   TAB: PROPUESTA DE POLITICA PUBLICA
   ========================================================================== */
.policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.policy-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.policy-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Accordion Component */
.policy-accordion {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.accordion-item {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    border-color: rgba(255,255,255,0.15);
}

.accordion-header {
    width: 100%;
    padding: 1.3rem 2rem;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.bg-purple-gradient { background: linear-gradient(135deg, rgba(138, 43, 226, 0.4) 0%, rgba(20, 10, 45, 0.4) 100%); }
.bg-magenta-gradient { background: linear-gradient(135deg, rgba(224, 36, 132, 0.4) 0%, rgba(45, 10, 30, 0.4) 100%); }
.bg-red-gradient { background: linear-gradient(135deg, rgba(255, 51, 102, 0.4) 0%, rgba(45, 10, 15, 0.4) 100%); }
.bg-orange-gradient { background: linear-gradient(135deg, rgba(255, 123, 0, 0.4) 0%, rgba(45, 25, 10, 0.4) 100%); }
.bg-cyan-gradient { background: linear-gradient(135deg, rgba(0, 229, 255, 0.4) 0%, rgba(10, 40, 45, 0.4) 100%); }

.accordion-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.accordion-icon {
    font-size: 1.1rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-inner {
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.01);
}

.accordion-inner h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-cyan);
    margin-bottom: 0.6rem;
    margin-top: 1.2rem;
}

.accordion-inner h4:first-of-type {
    margin-top: 0;
}

.accordion-inner p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.accordion-inner ul {
    list-style: none;
    margin-top: 0.8rem;
}

.accordion-inner li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.accordion-inner li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-magenta);
}

/* Phase 2 Validation Survey Form */
.validation-survey-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
}

.survey-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.survey-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.survey-header h3 i {
    color: var(--primary-cyan);
}

.survey-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.question-block {
    margin-bottom: 2.2rem;
    background: rgba(255,255,255,0.01);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
}

.q-number {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--primary-magenta);
    color: var(--text-bright);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.q-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.radio-label:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

.radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-smooth);
}

.radio-label input:checked ~ .radio-custom {
    border-color: var(--primary-magenta);
    background: transparent;
}

.radio-custom::after {
    content: '';
    position: absolute;
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-magenta);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label input:checked ~ .radio-custom::after {
    display: block;
}

.radio-label input:checked ~ .option-text {
    color: var(--text-bright);
    font-weight: 500;
}

.option-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.submit-survey-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-magenta) 100%);
    border: none;
    outline: none;
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-glow-active);
    transition: var(--transition-smooth);
}

.submit-survey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(224, 36, 132, 0.45);
}

.survey-result-msg {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--primary-cyan);
    border-radius: 16px;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.survey-result-msg i {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.survey-result-msg h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.survey-result-msg p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(10, 8, 20, 0.6);
    backdrop-filter: blur(10px);
    margin-top: 4rem;
}

.app-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-footer strong {
    color: var(--primary-cyan);
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .chart-card.large-span {
        grid-column: span 1;
    }
    .charts-row {
        flex-direction: column;
    }
    .heatmap-container-row {
        grid-template-columns: 1fr;
    }
    .detail-split {
        grid-template-columns: 1fr;
    }
    .prezi-container {
        height: 500px;
    }
    .prezi-node {
        transform: translate(-50%, -50%) scale(0.8);
    }
    .prezi-detail {
        width: 90vw;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .nav-tabs {
        flex-wrap: wrap;
    }
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    .prezi-node {
        transform: translate(-50%, -50%) scale(0.65);
    }
}
