/*
Archivo CSS rediseñado para la página de cursos - Estilo minimalista
Autor: S-Team Haus
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #D0E8FE;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Robots Section - Horizontal Layout */
.robots-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.robot-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
    flex: 1;
    max-width: 400px;
    min-width: 320px;
}

.robot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.robot-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 12px;
    background-color: white;
    padding: 1rem;
}

.robot-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.5rem;
}

.robot-description {
    color: black;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: center;
}

.know-more-btn {
    background: #2E3856;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Montserrat", sans-serif;
}

.know-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    background: #2E3856;
    font-family: "Montserrat", sans-serif;
    transform: translateY(-5px);
}

/* Código Section - Nueva sección */
.codigo-section {
    margin-bottom: 3rem;
}

.codigo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: black;
    text-align: center;
}

.codigo-robots {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.codigo-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
    flex: 1;
    max-width: 400px;
    min-width: 320px;
}

.codigo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.codigo-btn {
    background: #2E3856;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);

    text-transform: uppercase;
    letter-spacing: 1px;
}

.codigo-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);

    background: #2E3856;
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    text-align: center;
}

.progress-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: black;
    text-align: center;
}

.progress-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.progress-list {
    flex: 1;
    max-width: 600px;
}

.progress-card {
    position: relative;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2.5px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
    background-color: #deeffe;

}

.progress-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(116, 169, 216, 0.4);
}

.progress-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.progress-bar {
    background-color: #e9ecef;
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-bar > div {
    background: linear-gradient(90deg, #b9c7d3, #2E3856);
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-bar > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}



@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.button-container {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.progress-btn {
    background: #2E3856;
    color: white;
    border-radius: 50px;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);

    text-transform: uppercase;
    letter-spacing: 1px;
    border:none;
}

.progress-btn:hover {
    transform: translateY(-5px);
    background: white;
    color: black;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);

    border:none;
    font-family: "Montserrat", sans-serif;
}


.robot-mascot {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background-color: white;
    padding: 0.8rem;
}

/* Estados especiales para tarjetas sin progreso */
.progress-card.no-progress {
    background: linear-gradient(135deg, #74a9d8, #a8c8e8);
    color: white;
    border: none;
}

.progress-card.no-progress::before {
    background: rgba(255, 255, 255, 0.3);
}

.progress-card.no-progress .progress-subtitle {
    color: white;
}

.progress-card.no-progress p {
    color: rgba(255, 255, 255, 0.9);
}

.progress-card.no-progress .progress-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.progress-card.no-progress .progress-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1.5rem;
    }

    .robots-section {
        flex-direction: column;
        align-items: center;
    }

    .codigo-robots {
        flex-direction: column;
        align-items: center;
    }

    .robot-card,
    .codigo-card {
        max-width: 100%;
        min-width: auto;
    }

    .progress-container {
        flex-direction: column;
        align-items: center;
    }

    .robot-mascot {
        display: none;
    }

    .progress-title {
        font-size: 1.6rem;
    }

    .codigo-title {
        font-size: 1.5rem;
    }

    .progress-section {
        padding: 1.5rem;
    }

    .button-container {
        flex-direction: column;
    }

    .progress-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .robot-card,
    .codigo-card {
        padding: 1.5rem;
    }

    .robot-image {
        width: 140px;
        height: 140px;
    }

    .progress-card {
        padding: 1.5rem;
    }

    .progress-title {
        font-size: 1.4rem;
    }

    .codigo-title {
        font-size: 1.3rem;
    }
}