@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0e0e10;
    --bg-secondary: #1a1b1e;
    --text-primary: #EAEAEA;
    --text-secondary: #a0a0a0;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animaciones */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
}

.pulse-animation {
    animation: pulse-glow 0.5s ease-in-out;
}

/* Tooltip */
.tooltip {
    backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
}

/* Barras del histograma */
.bar-segment {
    transition: all 0.3s ease;
    cursor: pointer;
}

.bar-segment:hover {
    filter: brightness(1.2);
    stroke: white;
    stroke-width: 1;
}

/* Hitos históricos */
.milestone-line {
    stroke: var(--accent-red);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0.7;
}

.milestone-label {
    fill: var(--accent-red);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
}

/* Ejes */
.axis {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.axis line {
    stroke: rgba(255, 255, 255, 0.2);
}

.axis path {
    stroke: rgba(255, 255, 255, 0.2);
}

/* Botones de dimensión */
.dimension-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.category-btn {
    transition: all 0.3s ease;
}

.category-btn.active {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Animación de entrada */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Contenedor de íconos */
.icon-container {
    transition: all 0.3s ease;
}

.icon-container:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Label de valores en barras */
.bar-label {
    font-size: 10px;
    fill: rgba(255, 255, 255, 0.9);
    text-anchor: middle;
    font-weight: 600;
    pointer-events: none;
}