/* Encabezado principal */
.main-header-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #5FB8E4;
    border-radius: 20px;
    color: white;
    text-align: center;

    h1 {
        margin: 0 !important;
        font-size: 2.5rem;
        padding-bottom: 5px;
        font-weight: bold;
    }

    p {
        margin: 0 !important;
        font-size: 1rem;
    }

    @media (max-width: 768px) {
        h1 {
            font-size: 2rem;
        }

        p {
            font-size: 0.9rem;
        }
    }
}

/* Contenido principal */
.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    @media (max-width: 768px) {
        flex-direction: column;
    }

    .main-left {
        flex: 1 1 65%;

        @media (max-width: 768px) {
            flex: 1 1 100%;
        }

        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .main-right {
        flex: 1 1 30%;

        @media (max-width: 768px) {
            flex: 1 1 100%;
        }

        min-width: 300px;
    }
}

/* Tarjeta de progreso */
.card-progreso {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    .title-card-progreso {
        h2 {
            font-size: 1.25rem;
            color: #010066;
            font-weight: bold;
            margin: 0 !important;
        }

        p {
            margin: 0 !important;
            font-size: 0.9rem;
        }
    }

    .btn-continuar {
        font-family: 'Cocogoose', sans-serif;
        background-color: #010066;
        font-weight: 500;
        border: none;
        color: white;
        padding: 0.5rem;
        text-decoration: none;
        width: 100%;
        max-width: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        border-radius: 10px;

        &:hover {
            background-color: #5FB8E4;
            color: #010066;
            transition: 0.3s;
        }

        @media (max-width: 768px) {
            font-size: 0.9rem;
            max-width: 180px;
            text-align: center;
        }
    }
}

/* Progreso de las secciones */
.progreso-secciones {
    .title-secciones {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;

        h3 {
            font-size: 1.2rem;
        }

        @media (max-width: 768px) {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;

            h3 {
                font-size: 1rem;
            }
        }
    }
}

/* Contenedor de las secciones */
.secciones-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Estilo de cada sección */
.secciones-formulario {
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .seccion-titulo {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;

        .seccion-icon {
            font-size: 24px;
        }

        .title {
            display: flex;
            flex-direction: column;

            span:first-child {
                font-weight: bold;
                color: #2c3e50;
            }

            span:last-child {
                font-size: 14px;
                color: #7f8c8d;
            }
        }
    }

    .btn-seccion {
        text-decoration: none;
        color: #5FB8E4;
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
        padding: 10px;
        border-radius: 5px;
        background-color: #f6f6f6;
        transition: background-color 0.3s ease, color 0.3s ease;

        &:hover {
            background-color: #5FB8E4;
            color: #fff;
        }

        &.disabled {
            pointer-events: none;
            background-color: #e7e7e7;
            color: #bbb;
        }

        @media (max-width: 768px) {
            font-size: 0.9rem;
        }
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 576px) {
    .main-header-titles {
        padding: 10px;
        h1 {
            font-size: 1.8rem;
        }

        p {
            font-size: 0.85rem;
        }
    }

    .secciones-container {
        grid-template-columns: 1fr;
    }

    .btn-seccion {
        font-size: 0.85rem;
        padding: 8px;
    }
}