:root {
    --primary: #0079bf;
    --secondary: #5aac44;
    --accent: #ff9f1a;
    --dark: #172b4d;
    --light: #f4f5f7;
    --gray: #5e6c84;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

/* Barra lateral de progreso */
.progress-sidebar {
    width: 5rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.875rem 0;
    z-index: 10;
}

.progress-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--primary);
    margin-bottom: 1.875rem;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.progress-step {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: 0.1875rem solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.progress-step.active {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.progress-step.completed {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.progress-step:hover {
    transform: scale(1.3);
}

.progress-step::after {
    content: '';
    position: absolute;
    height: 1.875rem;
    width: 0.1875rem;
    background-color: #e0e0e0;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
}

.progress-step:last-child::after {
    display: none;
}

/* Contenido principal */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--primary);
}

.slide-controls {
    display: flex;
    gap: 0.9375rem;
}

.nav-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: clamp(2rem, 5vw, 3rem);
    height: clamp(2rem, 5vw, 3rem);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 121, 191, 0.3);
}

.nav-btn:hover:not(:disabled) {
    background-color: var(--dark);
    transform: translateY(-0.125rem);
}

.nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Contenedor de diapositivas */
.slides-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.content-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.9375rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.15);
    max-width: min(90%, 56.25rem);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.content-card::-webkit-scrollbar {
    width: 0.5rem;
}

.content-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.625rem;
}

.content-card::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0.625rem;
}

.icon {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: inline-block;
}

h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
    color: var(--dark);
}

p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--gray);
}

ul {
    list-style-type: none;
    margin-bottom: 1.5625rem;
}

li {
    margin-bottom: 0.625rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

li i {
    color: var(--secondary);
    margin-top: 0.3125rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

.example-container {
    margin: 1.5625rem 0;
    border: 0.0625rem solid #e0e0e0;
    border-radius: 0.625rem;
    overflow: hidden;
}

.step-image, .board-image {
    width: 100%;
    display: block;
    max-height: 50vh;
    object-fit: contain;
}

.example-caption {
    background-color: #f9f9f9;
    padding: 0.625rem 0.9375rem;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--gray);
    text-align: center;
}

.section-title {
    color: var(--primary);
    border-bottom: 0.1875rem solid var(--accent);
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
}

/* Indicador de progreso inferior */
.progress-bar-container {
    padding: clamp(0, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    background-color: rgba(255, 255, 255, 0.9);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.625rem;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--gray);
}

.progress-bar {
    height: 0.5rem;
    background-color: #e0e0e0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 0.25rem;
    width: 0;
    transition: width 0.5s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .progress-sidebar {
        width: 100%;
        height: 4rem;
        flex-direction: row;
        padding: 0 1rem;
        justify-content: center;
    }

    .progress-title {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 0;
        margin-right: 1rem;
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .progress-steps {
        flex-direction: row;
        justify-content: center;
        gap: 0.625rem;
    }

    .progress-step {
        width: 1rem;
        height: 1rem;
    }

    .progress-step::after {
        width: 1rem;
        height: 0.1875rem;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
    }

    .progress-step:last-child::after {
        display: none;
    }

    .content-card {
        padding: clamp(1rem, 2vw, 1.5rem);
    }

    h1 {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }
}

@media (max-width: 768px) {
    .header {
        padding: clamp(0.8rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    }

    .logo {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .nav-btn {
        width: clamp(1.8rem, 4vw, 2.5rem);
        height: clamp(1.8rem, 4vw, 2.5rem);
        font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    }

    .slide {
        padding: clamp(0.8rem, 1.5vw, 1rem);
    }

    .content-card {
        padding: clamp(0.8rem, 1.5vw, 1rem);
    }

    h1 {
        font-size: clamp(1.2rem, 2vw, 1.5rem);
    }

    p, li {
        font-size: clamp(0.8rem, 1.2vw, 1rem);
    }

    .icon {
        font-size: clamp(1.5rem, 3vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .progress-title {
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }

    .progress-step {
        width: 0.8rem;
        height: 0.8rem;
    }

    .progress-step::after {
        width: 0.8rem;
    }
}