/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Fondo estilo Animus 3.0 - Tecnológico avanzado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Líneas de código matriz verticales y horizontales */
        linear-gradient(90deg, transparent 0%, rgba(74, 144, 226, 0.05) 1px, transparent 2px),
        linear-gradient(0deg, transparent 0%, rgba(153, 102, 204, 0.03) 1px, transparent 2px),
        /* Nodos de conexión */
        radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.08) 1px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(153, 102, 204, 0.06) 1px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.04) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(74, 144, 226, 0.05) 1px, transparent 2px);
    background-size: 
        80px 80px,
        80px 80px,
        200px 200px,
        180px 180px,
        160px 160px,
        220px 220px;
    animation: animusMatrix 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Efectos de escaneo Animus */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Interferencia digital sutil */
        repeating-linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.01) 1px, transparent 3px),
        /* Pulsos de energía */
        radial-gradient(ellipse at 20% 30%, rgba(74, 144, 226, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(153, 102, 204, 0.03) 0%, transparent 40%);
    background-size: 
        4px 4px,
        400px 400px,
        350px 350px;
    animation: animusPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes animusMatrix {
    0% {
        transform: translate(0, 0);
        opacity: 0.7;
    }
    50% {
        transform: translate(-10px, -5px);
        opacity: 1;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0.7;
    }
}

@keyframes animusPulse {
    0% {
        opacity: 0.6;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.1);
    }
    100% {
        opacity: 0.6;
        filter: brightness(1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #c1c1c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Indicators Section */
.indicators-section {
    margin-bottom: 50px;
    position: relative;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.indicator-btn {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.btn-icon {
    flex-shrink: 0;
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.indicator-btn:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.indicator-btn:hover .btn-icon {
    opacity: 1;
    transform: scale(1.1);
    color: #4a90e2;
}

.indicator-btn.active {
    background: linear-gradient(135deg, #4a90e2, #9966cc);
    border-color: #4a90e2;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

.indicator-btn.active .btn-icon {
    opacity: 1;
    color: #ffffff;
}

/* Comparison Section */
.comparison-section {
    margin-bottom: 50px;
    position: relative;
}

.comparison-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

.comparison-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.president-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.duque-section,
.petro-section {
    justify-content: flex-start;
}

.president-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
}

.president-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.8);
    object-position: center 5%;
}

.duque-img {
    border-color: #87ceeb;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
}

.petro-img {
    border-color: #9966cc;
    box-shadow: 0 8px 25px rgba(153, 102, 204, 0.3);
}

.president-data {
    flex: 1;
}

.president-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.president-period {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 10px;
    font-style: italic;
}

.data-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.data-label {
    color: #b0b0b0;
    font-weight: 400;
}

.data-value {
    font-weight: 600;
    color: #ffffff;
    min-width: 60px;
    text-align: right;
}

/* Progress Bars */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.progress-bar-wrapper {
    flex: 1;
    position: relative;
}

.progress-bar {
    height: 40px;
    background: #2a2a2a;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid #333;
}

.zero-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #666;
    z-index: 2;
    transform: translateX(-50%);
}

.progress-fill {
    height: 100%;
    border-radius: 18px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    overflow: hidden;
}

.progress-fill.negative {
    right: 50%;
    border-radius: 18px 0 0 18px;
}

.progress-fill.positive {
    left: 50%;
    border-radius: 0 18px 18px 0;
}

.duque-fill {
    background: linear-gradient(135deg, #87ceeb 0%, #5fb3d9 100%);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
}

.petro-fill {
    background: linear-gradient(135deg, #9966cc 0%, #7a4fb8 100%);
    box-shadow: 0 4px 15px rgba(153, 102, 204, 0.4);
}

.progress-value {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 70px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.progress-value.positive {
    color: #4ade80;
}

.progress-value.negative {
    color: #f87171;
}

/* Current Indicator Display */
.current-indicator {
    text-align: center;
    margin-bottom: 40px;
}

.current-indicator h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.indicator-description {
    font-size: 1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-top: 1px solid #333;
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-bottom: 30px;
}

.company-section,
.developer-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo,
.developer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
}

.company-logo {
    background: #000000;
}

.company-name,
.developer-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.company-tagline,
.developer-role {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.developer-title {
    color: #4a90e2;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
}

.data-sources {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .indicator-btn {
        padding: 12px 15px;
        font-size: 0.8rem;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }

    .president-section {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .petro-section {
        flex-direction: column;
    }

    .president-info {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .progress-container {
        width: 100%;
        max-width: none;
        flex-direction: column;
        gap: 10px;
    }

    .progress-value {
        order: 2;
        align-self: center;
    }

    .progress-bar-wrapper {
        order: 1;
    }

    .president-img {
        width: 60px;
        height: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .company-section, .developer-section {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .indicators-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .indicator-btn {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 15px 10px;
        text-align: center;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .president-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .data-container {
        align-items: center;
    }

    .data-item {
        justify-content: center;
        gap: 10px;
    }
}
