:root {
    /* --- TEMA DARK (Por defecto) --- */
    --bg-main: #0f1214;
    --bg-gradient: radial-gradient(circle at top center, #1a2a3a 0%, #0f1214 80%);
    --text-main: #e0e0e0;
    --text-title: #ffffff;
    --card-bg: rgba(20, 25, 30, 0.85);
    --card-border: rgba(0, 210, 255, 0.25);
    --cyan-primary: #00d2ff;
    --shadow-color: rgba(0, 210, 255, 0.15);
    --timeline-line: rgba(255, 255, 255, 0.15);
    --badge-bg: #1a2a3a;
    --badge-border: #00d2ff;
    --badge-text: #00d2ff;
    --version-tag-bg: rgba(0, 210, 255, 0.12);
}

[data-theme='light'] {
    /* --- TEMA LIGHT --- */
    --bg-main: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --text-main: #495057;
    --text-title: #1a1d21;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --cyan-primary: #00768a;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --timeline-line: rgba(0, 0, 0, 0.1);
    --badge-bg: #e9ecef;
    --badge-border: #00768a;
    --badge-text: #00768a;
    --version-tag-bg: rgba(0, 118, 138, 0.08);
}

body {
    background-color: var(--bg-main) !important;
    background: var(--bg-gradient) !important;
    color: var(--text-main) !important;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem 1rem;
}

.novedades-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.novedades-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.75rem;
}

.novedades-header p {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.85;
}

/* --- ESTILO TIMELINE --- */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: var(--timeline-line);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 3rem;
}

.timeline-badge {
    position: absolute;
    left: 8px;
    top: 5px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--badge-bg);
    border: 2.5px solid var(--badge-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-badge i {
    font-size: 0.85rem;
    color: var(--badge-text);
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.2);
    box-shadow: 0 0 12px var(--badge-border);
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.timeline-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan-primary);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
}

.version-tag {
    background: var(--version-tag-bg);
    color: var(--cyan-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

.date-tag {
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timeline-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 0.75rem;
}

.timeline-card-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividad para pantallas mayores */
@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        padding-left: 0;
        width: 50%;
    }

    .timeline-item-left {
        left: 0;
        padding-right: 40px;
        text-align: right;
    }

    .timeline-item-right {
        left: 50%;
        padding-left: 40px;
    }

    .timeline-badge {
        left: 50%;
        transform: translateX(-50%);
        top: 20px;
    }

    .timeline-item-left .timeline-badge {
        left: 100%;
    }

    .timeline-item-right .timeline-badge {
        left: 0;
    }

    .timeline-card-header {
        flex-wrap: nowrap;
    }

    .timeline-item-left .timeline-card-header {
        flex-direction: row-reverse;
    }
}
